Closed
Bug 1519905
Opened 6 years ago
Closed 6 years ago
Either set [clickthrough=never] on XUL browser elements or modify NodeAllowsClickThrough to automatically return false for browsers so they don't respond to mouse events when in an unfocused window
Categories
(Toolkit :: UI Widgets, defect)
Toolkit
UI Widgets
Tracking
()
RESOLVED
FIXED
mozilla66
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: bgrins, Assigned: bgrins)
References
Details
Attachments
(1 file)
See https://bugzilla.mozilla.org/show_bug.cgi?id=1441935#c46. I forgot to do this in Bug 1441935.
Assignee | ||
Comment 1•6 years ago
|
||
I'm going to try the NodeAllowsClickThrough change as opposed to setting the attribute on browser elements since it seems a bit simpler.
It appears this attribute is only used by XUL trees, scrollbars, resizers, and browsers so a potential follow up could be to remove support for the attribute altogether and change the attribute lookup at https://searchfox.org/mozilla-central/rev/b29663c6c9c61b0bf29e8add490cbd6bad293a67/dom/events/EventStateManager.cpp#2823
into an IsAnyOfXULElements
check.
Assignee | ||
Comment 2•6 years ago
|
||
This prevents mouse events from firing on browsers in unfocused windows. It used to be done
with the [clickthrough=never] attribute set from XBL content.
Pushed by bgrinstead@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/36b1b39a9775
Always return false in NodeAllowsClickThrough for browser elements;r=mstange
Comment 4•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in
before you can comment on or make changes to this bug.
Description
•