diff --git a/mobile/chrome/content/InputHandler.js b/mobile/chrome/content/InputHandler.js index 34b54a7424e..2533afd3ff0 100644 --- a/mobile/chrome/content/InputHandler.js +++ b/mobile/chrome/content/InputHandler.js @@ -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 */