зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1298394 - Add Learn More link for MimeTypeMisMatch error messages. r=bgrins
This commit is contained in:
Родитель
e3ceaf61be
Коммит
7dc1c779a7
|
@ -56,6 +56,7 @@ const INSECURE_PASSWORDS_LEARN_MORE = "https://developer.mozilla.org/docs/Web/Se
|
|||
const PUBLIC_KEY_PINS_LEARN_MORE = "https://developer.mozilla.org/docs/Web/Security/Public_Key_Pinning";
|
||||
const STRICT_TRANSPORT_SECURITY_LEARN_MORE = "https://developer.mozilla.org/docs/Web/Security/HTTP_strict_transport_security";
|
||||
const WEAK_SIGNATURE_ALGORITHM_LEARN_MORE = "https://developer.mozilla.org/docs/Web/Security/Weak_Signature_Algorithm";
|
||||
const MIME_TYPE_MISMATCH_LEARN_MORE = "https://developer.mozilla.org/docs/Web/HTTP/Headers/X-Content-Type-Options";
|
||||
const ErrorCategories = {
|
||||
"Insecure Password Field": INSECURE_PASSWORDS_LEARN_MORE,
|
||||
"Mixed Content Message": MIXED_CONTENT_LEARN_MORE,
|
||||
|
@ -64,6 +65,7 @@ const ErrorCategories = {
|
|||
"Invalid HSTS Headers": STRICT_TRANSPORT_SECURITY_LEARN_MORE,
|
||||
"SHA-1 Signature": WEAK_SIGNATURE_ALGORITHM_LEARN_MORE,
|
||||
"Tracking Protection": TRACKING_PROTECTION_LEARN_MORE,
|
||||
"MIMEMISMATCH": MIME_TYPE_MISMATCH_LEARN_MORE,
|
||||
};
|
||||
|
||||
exports.GetURL = (error) => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче