From 2f9f8978ad2f13a3f02e068702d52e753a758237 Mon Sep 17 00:00:00 2001 From: Pale Moon Date: Sun, 9 Oct 2016 16:31:59 +0200 Subject: Provide a "more information" link in the geolocation doorhanger. --- browser/app/profile/firefox.js | 2 +- browser/components/nsBrowserGlue.js | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'browser') diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js index c4d0d63dd..8406a6b8e 100644 --- a/browser/app/profile/firefox.js +++ b/browser/app/profile/firefox.js @@ -734,8 +734,8 @@ pref("goanna.handlerService.schemes.ircs.3.uriTemplate", "chrome://browser-regio // By default, we don't want protocol/content handlers to be registered from a different host, see bug 402287 pref("goanna.handlerService.allowRegisterFromDifferentHost", false); -pref("browser.geolocation.warning.infoURL", "https://www.mozilla.org/%LOCALE%/firefox/geolocation/"); pref("browser.mixedcontent.warning.infoURL", "http://support.mozilla.org/1/%APP%/%VERSION%/%OS%/%LOCALE%/mixed-content/"); +pref("browser.geolocation.warning.infoURL", "http://www.palemoon.org/info-url/geolocation.shtml"); pref("browser.EULA.version", 3); pref("browser.rights.version", 3); 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) { -- cgit v1.2.3