Skip to content
Snippets Groups Projects
Verified Commit f00cfadc authored by Malte Jürgens's avatar Malte Jürgens Committed by Pier Angelo Vendrame
Browse files

Bug 1850200 - Add delay to HTTPS-Only "Continue to HTTPS Site" button r=freddyb

parent 6463c5a8
Branches
Tags
1 merge request!1223Bug 43167: Rebased stable onto 115.16.0esr
......@@ -67,6 +67,7 @@
<button
id="openInsecure"
data-l10n-id="about-httpsonly-button-continue-to-site"
inert
></button>
</div>
<div class="suggestion-box" hidden>
......
......@@ -34,6 +34,11 @@ function initPage() {
.getElementById("openInsecure")
.addEventListener("click", onOpenInsecureButtonClick);
const delay = RPMGetIntPref("security.dialog_enable_delay", 1000);
setTimeout(() => {
document.getElementById("openInsecure").removeAttribute("inert");
}, delay);
if (window.top == window) {
document
.getElementById("goBack")
......
......@@ -66,6 +66,7 @@ export let RemotePageAccessManager = {
},
"about:httpsonlyerror": {
RPMGetFormatURLPref: ["app.support.baseURL"],
RPMGetIntPref: ["security.dialog_enable_delay"],
RPMSendAsyncMessage: ["goBack", "openInsecure"],
RPMAddMessageListener: ["WWWReachable"],
RPMTryPingSecureWWWLink: ["*"],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment