зеркало из https://github.com/mozilla/gecko-dev.git
Bug 305912: Popup notification bar doesn't appear on first load (e.g. if your homepage tries to open a popup) , and doesn't correctly list all blocked popups, r=mconnor
This commit is contained in:
Родитель
8caff06cab
Коммит
8f87ca30b9
|
@ -282,7 +282,10 @@ const gPopupBlockerObserver = {
|
|||
|
||||
if (gBrowser.selectedBrowser.pageReport) {
|
||||
this._reportButton.setAttribute("blocked", "true");
|
||||
if (gPrefService && gPrefService.getBoolPref("privacy.popups.showBrowserMessage")) {
|
||||
if (!gPrefService)
|
||||
gPrefService = Components.classes["@mozilla.org/preferences-service;1"]
|
||||
.getService(Components.interfaces.nsIPrefBranch);
|
||||
if (gPrefService.getBoolPref("privacy.popups.showBrowserMessage")) {
|
||||
var bundle_browser = document.getElementById("bundle_browser");
|
||||
var brandBundle = document.getElementById("bundle_brand");
|
||||
var brandShortName = brandBundle.getString("brandShortName");
|
||||
|
@ -786,8 +789,9 @@ function delayedStartup()
|
|||
os.addObserver(gXPInstallObserver, "xpinstall-install-edit-permissions", false);
|
||||
os.addObserver(gMissingPluginInstaller, "missing-plugin", false);
|
||||
|
||||
gPrefService = Components.classes["@mozilla.org/preferences-service;1"]
|
||||
.getService(Components.interfaces.nsIPrefBranch);
|
||||
if (!gPrefService)
|
||||
gPrefService = Components.classes["@mozilla.org/preferences-service;1"]
|
||||
.getService(Components.interfaces.nsIPrefBranch);
|
||||
BrowserOffline.init();
|
||||
|
||||
if (gURLBar && document.documentElement.getAttribute("chromehidden").indexOf("toolbar") != -1) {
|
||||
|
|
|
@ -468,13 +468,13 @@
|
|||
<![CDATA[
|
||||
if (!this.pageReport) {
|
||||
this.pageReport = new Array();
|
||||
this.updatePageReport();
|
||||
}
|
||||
|
||||
var obj = { requestingWindowURI: evt.requestingWindowURI,
|
||||
popupWindowURI: evt.popupWindowURI,
|
||||
popupWindowFeatures: evt.popupWindowFeatures };
|
||||
this.pageReport.push(obj);
|
||||
this.updatePageReport()
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
|
Загрузка…
Ссылка в новой задаче