diff --git a/mobile/chrome/content/bindings/browser.js b/mobile/chrome/content/bindings/browser.js index d0bfbf659135..b60c28a2ef51 100644 --- a/mobile/chrome/content/bindings/browser.js +++ b/mobile/chrome/content/bindings/browser.js @@ -192,6 +192,9 @@ let DOMEvents = { case "pageshow": case "pagehide": { + if (aEvent.target.defaultView != content) + break; + let util = aEvent.target.defaultView.QueryInterface(Ci.nsIInterfaceRequestor) .getInterface(Ci.nsIDOMWindowUtils); diff --git a/mobile/chrome/content/bindings/browser.xml b/mobile/chrome/content/bindings/browser.xml index 369c3174e3ed..ef05ace32b89 100644 --- a/mobile/chrome/content/bindings/browser.xml +++ b/mobile/chrome/content/bindings/browser.xml @@ -332,8 +332,7 @@ if (this.feeds && aMessage.target == this) this.feeds = null; - if (aMessage.windowId == this.contentWindowId) - this.scale = 1; + this.scale = 1; ]]>