Bug 1462675 - Fix permissions popup dialog opened from browser.js. r?johannh
MozReview-Commit-ID: AwOikE81KpP
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -791,24 +791,23 @@ var gPopupBlockerObserver = {
} else {
// For host-less URIs like file://, prePath would effectively allow
// popups everywhere on file://. Use the full spec:
prefillValue = principalURI.spec;
}
}
} catch (e) { }
- var bundlePreferences = document.getElementById("bundle_preferences");
var params = { blockVisible: false,
sessionVisible: false,
allowVisible: true,
prefilledHost: prefillValue,
permissionType: "popup",
- windowTitle: bundlePreferences.getString("popuppermissionstitle2"),
- introText: bundlePreferences.getString("popuppermissionstext") };
+ };
+
var existingWindow = Services.wm.getMostRecentWindow("Browser:Permissions");
if (existingWindow) {
existingWindow.initWithParams(params);
existingWindow.focus();
} else
window.openDialog("chrome://browser/content/preferences/permissions.xul",
"_blank", "resizable,dialog=no,centerscreen", params);
},