Closed Bug 1519905 Opened 5 years ago Closed 5 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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: bgrins, Assigned: bgrins)

References

Details

Attachments

(1 file)

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.

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
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: