/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* eslint-env mozilla/remote-page */
"use strict";
const searchParams = new URLSearchParams(document.documentURI.split("?")[1]);
function initPage() { if (!searchParams.get("e")) {
document.getElementById("error").remove();
}
const hasWWWPrefix = pageUrl.href.startsWith("https://www."); if (!hasWWWPrefix) { // HTTPS-Only generally simply replaces http: with https:; // here we additionally try to add www and see if that allows to upgrade the connection if it is top level
function openSecureWWWButtonClick() {
RPMOpenSecureWWWLink();
}
function onOpenInsecureButtonClick() {
document.reloadWithHttpsOnlyException();
}
function onReturnButtonClick() {
RPMSendAsyncMessage("goBack");
}
/* Utils */
function addAutofocus(selector, position = "afterbegin") { if (window.top != window) { return;
} var button = document.querySelector(selector); var parent = button.parentNode;
button.remove();
button.setAttribute("autofocus", "true");
parent.insertAdjacentElement(position, button);
}
/* Initialize Page */
initPage(); // Dispatch this event so tests can detect that we finished loading the error page. // We're using the same event name as neterror because BrowserTestUtils.sys.mjs relies on that.
let event = new CustomEvent("AboutNetErrorLoad", { bubbles: true });
document.dispatchEvent(event);
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.