diff --git a/browser/app/profile/all.js b/browser/app/profile/all.js index 6cf2a925ebfd..dcfce62119fd 100644 --- a/browser/app/profile/all.js +++ b/browser/app/profile/all.js @@ -300,7 +300,7 @@ pref("javascript.options.strict", false); pref("javascript.options.showInConsole", false); // popups.policy 1=allow,2=reject -pref("privacy.popups.policy", 2); +pref("privacy.popups.policy", 1); pref("privacy.popups.usecustom", false); // advanced prefs diff --git a/browser/app/profile/firebird.js b/browser/app/profile/firebird.js index 6cf2a925ebfd..dcfce62119fd 100644 --- a/browser/app/profile/firebird.js +++ b/browser/app/profile/firebird.js @@ -300,7 +300,7 @@ pref("javascript.options.strict", false); pref("javascript.options.showInConsole", false); // popups.policy 1=allow,2=reject -pref("privacy.popups.policy", 2); +pref("privacy.popups.policy", 1); pref("privacy.popups.usecustom", false); // advanced prefs diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 454acc04bee9..68082c56f804 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -205,8 +205,15 @@ function RegisterTabOpenObserver() service.addObserver(observer, "open-new-tab-request", false); } +function PopupBlocked(event) +{ + alert("A popup was blocked."); +} + function Startup() { + addEventListener("DOMPopupBlocked", PopupBlocked, false); + // init globals gNavigatorBundle = document.getElementById("bundle_browser"); gBrandBundle = document.getElementById("bundle_brand");