Slight simplification of chrome document check for events.

This commit is contained in:
Roy Frostig 2009-07-29 14:05:03 -07:00
parent feea08b89e
commit 544af1f196

View File

@ -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 */