mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Bug 1658323: HTTPS-Only Mode: Have console message link to SUMO page r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D86577
This commit is contained in:
parent
58b2da72ab
commit
bc8e540bb5
@ -9,6 +9,13 @@
|
||||
|
||||
"use strict";
|
||||
|
||||
// Worker contexts do not support Services; in that case we have to rely
|
||||
// on the support URL redirection.
|
||||
const Services = require("Services");
|
||||
const supportBaseURL = !isWorker
|
||||
? Services.urlFormatter.formatURLPref("app.support.baseURL")
|
||||
: "https://support.mozilla.org/kb/";
|
||||
|
||||
const baseErrorURL =
|
||||
"https://developer.mozilla.org/docs/Web/JavaScript/Reference/Errors/";
|
||||
const params =
|
||||
@ -129,6 +136,7 @@ const ErrorCategories = {
|
||||
"source map": SOURCE_MAP_LEARN_MORE,
|
||||
TLS: TLS_LEARN_MORE,
|
||||
requestStorageAccess: REQUEST_STORAGE_ACCESS_LEARN_MORE,
|
||||
HTTPSOnly: supportBaseURL + "https-only-prefs",
|
||||
};
|
||||
|
||||
const baseCorsErrorUrl =
|
||||
|
Loading…
x
Reference in New Issue
Block a user