From adc5648d296479911c69384d74ac6fcbb4f640d8 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 4 Aug 2026 13:26:47 -0400 Subject: [PATCH] fx153: Restore pass-through clicks on toolbarbutton dropmarkers XULButtonElement only opens a type=menu button's menu when the button is the event's original target, which worked before because xul.css gave .toolbarbutton-menu-dropmarker 'pointer-events: none'. That rule was removed along with the dropmarker element, so clicks on our recreated dropmarker did nothing. --- app/scripts/fetch_xulrunner | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/scripts/fetch_xulrunner b/app/scripts/fetch_xulrunner index 28c7a49d68..065970ab22 100755 --- a/app/scripts/fetch_xulrunner +++ b/app/scripts/fetch_xulrunner @@ -512,6 +512,9 @@ function modify_omni { dropmarker.className = "toolbarbutton-menu-dropmarker"; this.appendChild(dropmarker); }' chrome/toolkit/content/global/elements/toolbarbutton.js + # Let clicks on the dropmarker pass through to the toolbarbutton, which only opens its menu + # when it's the original event target, as xul.css did when Firefox created the dropmarker + echo '.toolbarbutton-menu-dropmarker { pointer-events: none; }' >> chrome/toolkit/content/global/xul.css # Remove non-native text input styles remove_between 'html\|input\:where\(' '^}' chrome/toolkit/skin/classic/global/global-shared.css