Bug 1229763 - Update a11y + e10s support url. r?mconley
--- a/browser/components/nsBrowserGlue.js
+++ b/browser/components/nsBrowserGlue.js
@@ -3203,19 +3203,30 @@ var E10SAccessibilityCheck = {
};
// secondary option: a restart now button. When we restart e10s will be disabled due to
// accessibility having been loaded in the previous session.
let secondaryActions = [{
label: win.gNavigatorBundle.getString("e10s.accessibilityNotice.enableAndRestart.label"),
accessKey: win.gNavigatorBundle.getString("e10s.accessibilityNotice.enableAndRestart.accesskey"),
callback: restartCallback,
}];
+ // https://support.mozilla.org/1/firefox/WINNT///accessibility-ppt
+ let supportUrl = "https://support.mozilla.org/1/firefox/%VERSION%/%OS%/%LOCALE%/accessibility-ppt";
+ let locale = "";
+ try {
+ locale = gPrefService.getComplexValue("intl.accept_languages",
+ Ci.nsIPrefLocalizedString).data;
+ }
+ catch (e) { }
+ supportUrl = supportUrl.replace(/%LOCALE%/, escape(locale))
+ .replace(/%VERSION%/, Services.appinfo.version)
+ .replace(/%OS%/, Services.appinfo.OS);
let options = {
popupIconURL: "chrome://browser/skin/e10s-64@2x.png",
- learnMoreURL: "https://support.mozilla.org/kb/accessibility-and-ppt",
+ learnMoreURL: supportUrl,
persistWhileVisible: true,
hideNotNow: true,
};
notification =
win.PopupNotifications.show(browser, "a11y_enabled_with_e10s",
promptMessage, null, mainAction,
secondaryActions, options);