commit 0e7e9b8f9226819fe4048085ea36ec2e6d210654
parent 9c14ce38a449da59f3600a6d2489678b79b0e196
Author: Emilio Cobos Álvarez <emilio@crisal.io>
Date: Sun, 21 Dec 2025 22:06:12 +0000
Bug 2007274 - Call EnableDragDrop on menupopups. r=tnikkel,layout-reviewers
This call used to happen before bug 1933181, via InitializeWindow(),
also right after widget creation time.
It seems to me all our widgets want d&d behavior, and Windows is the
only platform where we don't do that by default, for some reason... I'll
look into just removing this API in a follow-up bug, but for now this
one-liner restores behavior.
Differential Revision: https://phabricator.services.mozilla.com/D277300
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/layout/xul/nsMenuPopupFrame.cpp b/layout/xul/nsMenuPopupFrame.cpp
@@ -332,6 +332,7 @@ void nsMenuPopupFrame::CreateWidget() {
return;
}
mWidget->SetWidgetListener(this);
+ mWidget->EnableDragDrop(true);
// TODO(emilio): Make all widgets look at widgetData.mTransparencyMode
// (maybe in BaseCreate?) then remove this call.
mWidget->SetTransparencyMode(mode);