diff --git a/mozilla/toolkit/content/widgets/browser.xml b/mozilla/toolkit/content/widgets/browser.xml index feb166071b3..5b7a4ae5461 100644 --- a/mozilla/toolkit/content/widgets/browser.xml +++ b/mozilla/toolkit/content/widgets/browser.xml @@ -577,7 +577,7 @@ // Listen for first load for lazy attachment to form fill controller this.addEventListener("pageshow", this.onPageShow, true); this.addEventListener("pagehide", this.onPageHide, true); - this.addEventListener("DOMPopupBlocked", this.onPopupBlocked, false); + this.addEventListener("DOMPopupBlocked", this.onPopupBlocked, true); ]]> diff --git a/mozilla/xpfe/browser/resources/content/navigator.js b/mozilla/xpfe/browser/resources/content/navigator.js index 5fa67bd9077..c15fb778631 100644 --- a/mozilla/xpfe/browser/resources/content/navigator.js +++ b/mozilla/xpfe/browser/resources/content/navigator.js @@ -688,8 +688,8 @@ function Startup() // initiated by a web page script addEventListener("fullscreen", onFullScreen, false); - addEventListener("PopupWindow", onPopupWindow, false); - addEventListener("DOMPopupBlocked", onPopupBlocked, false); + addEventListener("PopupWindow", onPopupWindow, true); + addEventListener("DOMPopupBlocked", onPopupBlocked, true); // does clicking on the urlbar select its contents? gClickSelectsAll = pref.getBoolPref("browser.urlbar.clickSelectsAll");