Bug 1462675 - Fix permissions popup dialog opened from browser.js. r?johannh draft
authorZibi Braniecki <zbraniecki@mozilla.com>
Mon, 04 Jun 2018 17:21:09 -0700
changeset 804167 a93092e95dc8693dac2489e312f176511b208749
parent 802528 42880a726964a0bd66e2f636931e8322eae86ef7
push id112317
push userbmo:gandalf@aviary.pl
push dateTue, 05 Jun 2018 16:25:13 +0000
reviewersjohannh
bugs1462675
milestone62.0a1
Bug 1462675 - Fix permissions popup dialog opened from browser.js. r?johannh MozReview-Commit-ID: AwOikE81KpP
browser/base/content/browser.js
--- 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);
   },