tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit c699ca97134e31e8cba3849941d3375e7339b6d1
parent e978c3b07a7e69f2ac8b4e7ceab296cbbb970842
Author: Blink WPT Bot <blink-w3c-test-autoroller@chromium.org>
Date:   Thu,  6 Nov 2025 21:38:12 +0000

Bug 1997302 [wpt PR 55760] - NavigateEvent.sourceElement can be cross-window, a=testonly

Automatic update from web-platform-tests
NavigateEvent.sourceElement can be cross-window (#55760)

chromium incorrectly refuses to set `sourceElement` if it is from
a different browsing context.

navigation-api/navigate-event/navigate-anchor-with-target.html
incorrectly asserts the chromium behavior.

Change-Id: I84af5b3379d1fbfbd52ebb752d991395a1897553
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7096859
Reviewed-by: Noam Rosenthal <nrosenthal@google.com>
Commit-Queue: Nate Chapin <japhet@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1537972}

Co-authored-by: Nate Chapin <japhet@chromium.org>
--

wpt-commits: cff0b18c201d3a5b94d8c5d0b2a5e0a2c76aa423
wpt-pr: 55760

Diffstat:
Mtesting/web-platform/tests/navigation-api/navigate-event/navigate-anchor-with-target.html | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/testing/web-platform/tests/navigation-api/navigate-event/navigate-anchor-with-target.html b/testing/web-platform/tests/navigation-api/navigate-event/navigate-anchor-with-target.html @@ -20,10 +20,10 @@ async_test(t => { assert_equals(new URL(e.destination.url).pathname, "/navigation-api/navigate-event/foo.html"); assert_false(e.destination.sameDocument); - assert_equals(e.destination.key, ""); - assert_equals(e.destination.id, ""); + assert_equals(e.destination.key, ""); + assert_equals(e.destination.id, ""); assert_equals(e.destination.index, -1); - assert_equals(e.sourceElement, null); + assert_equals(e.sourceElement, a); e.preventDefault(); }); a.click();