From 544af1f196570034d3a936a3938a48acaa67ee48 Mon Sep 17 00:00:00 2001 From: Roy Frostig Date: Wed, 29 Jul 2009 14:05:03 -0700 Subject: [PATCH] Slight simplification of chrome document check for events. --- mobile/chrome/content/InputHandler.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 */