diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /docshell/test/browser/browser_targetTopLevelLinkClicksToBlank.js | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'docshell/test/browser/browser_targetTopLevelLinkClicksToBlank.js')
-rw-r--r-- | docshell/test/browser/browser_targetTopLevelLinkClicksToBlank.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docshell/test/browser/browser_targetTopLevelLinkClicksToBlank.js b/docshell/test/browser/browser_targetTopLevelLinkClicksToBlank.js index 9d5a91bef9..3bd8815e81 100644 --- a/docshell/test/browser/browser_targetTopLevelLinkClicksToBlank.js +++ b/docshell/test/browser/browser_targetTopLevelLinkClicksToBlank.js @@ -246,7 +246,7 @@ add_task(async function skip_blank_target_for_some_loads() { await SpecialPowers.spawn(currentBrowser, [TEST_PAGE], async newPageURL => { let anchor = content.document.querySelector(`a[href=".."]`); anchor.href = "javascript:void(0);"; - anchor.addEventListener("click", e => { + anchor.addEventListener("click", () => { content.location.href = newPageURL; }); let userInput = content.windowUtils.setHandlingUserInput(true); @@ -268,7 +268,7 @@ add_task(async function skip_blank_target_for_some_loads() { await SpecialPowers.spawn(currentBrowser, [TEST_PAGE], async newPageURL => { let anchor = content.document.querySelector(`a[href=".."]`); anchor.href = `javascript:"string-to-navigate-to"`; - anchor.addEventListener("click", e => { + anchor.addEventListener("click", () => { content.location.href = newPageURL; }); let userInput = content.windowUtils.setHandlingUserInput(true); |