mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 11:58:55 +00:00
Bug 1882316 - Removed invalid button nested inside anchor in aboutNetError.html r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D226590
This commit is contained in:
parent
f67d38981a
commit
7cb81cb75e
@ -91,16 +91,11 @@
|
||||
|
||||
<div id="openInNewWindowContainer" class="button-container" hidden="">
|
||||
<p>
|
||||
<a
|
||||
<button
|
||||
id="openInNewWindowButton"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<button
|
||||
class="primary"
|
||||
data-l10n-id="open-in-new-window-for-csp-or-xfo-error"
|
||||
></button
|
||||
></a>
|
||||
class="primary"
|
||||
data-l10n-id="open-in-new-window-for-csp-or-xfo-error"
|
||||
></button>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
@ -377,7 +377,10 @@ function initPage() {
|
||||
const openInNewWindowButton = document.getElementById(
|
||||
"openInNewWindowButton"
|
||||
);
|
||||
openInNewWindowButton.href = document.location.href;
|
||||
openInNewWindowButton.addEventListener("click", function () {
|
||||
const url = document.location.href;
|
||||
window.open(url, "_blank", "noopener,noreferrer");
|
||||
});
|
||||
|
||||
// Add a learn more link
|
||||
learnMore.hidden = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user