summaryrefslogtreecommitdiff
path: root/browser/components/nsBrowserGlue.js
diff options
context:
space:
mode:
Diffstat (limited to 'browser/components/nsBrowserGlue.js')
-rw-r--r--browser/components/nsBrowserGlue.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/browser/components/nsBrowserGlue.js b/browser/components/nsBrowserGlue.js
index 38a5a3921..2133eacab 100644
--- a/browser/components/nsBrowserGlue.js
+++ b/browser/components/nsBrowserGlue.js
@@ -1777,12 +1777,14 @@ ContentPermissionPrompt.prototype = {
});
}
- var options = {
- learnMoreURL: Services.urlFormatter.formatURLPref("browser.geolocation.warning.infoURL"),
- };
+ var requestingWindow = aRequest.window.top;
+ var chromeWin = this._getChromeWindow(requestingWindow).wrappedJSObject;
+ var link = chromeWin.document.getElementById("geolocation-learnmore-link");
+ link.value = browserBundle.GetStringFromName("geolocation.learnMore");
+ link.href = Services.urlFormatter.formatURLPref("browser.geolocation.warning.infoURL");
this._showPrompt(aRequest, message, "geo", actions, "geolocation",
- "geo-notification-icon", options);
+ "geo-notification-icon", null);
},
_promptWebNotifications : function(aRequest) {