mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Slight simplification of chrome document check for events.
This commit is contained in:
parent
feea08b89e
commit
544af1f196
@ -291,9 +291,7 @@ InputHandler.prototype = {
|
||||
return;
|
||||
|
||||
/* ignore all events that belong to other windows or documents (e.g. content events) */
|
||||
if (aEvent.target != window
|
||||
&& aEvent.target != document
|
||||
&& (!aEvent.target.ownerDocument || aEvent.target.ownerDocument != document))
|
||||
if (aEvent.view != window)
|
||||
return;
|
||||
|
||||
/* changing URL or selected a new tab will immediately stop active input handlers */
|
||||
|
Loading…
Reference in New Issue
Block a user