Activation across navigation: add a WPT for cross-origin redirection#59293
Merged
DanielRyanSmith merged 1 commit intomasterfrom Apr 29, 2026
Merged
Activation across navigation: add a WPT for cross-origin redirection#59293DanielRyanSmith merged 1 commit intomasterfrom
DanielRyanSmith merged 1 commit intomasterfrom
Conversation
This CL adds a new WPT for user activation states after a cross-origin redirection, using `RemoteContext` API in dispatcher.js. This behavior is not fully defined in the spec [1], and the test was written based on the behavior expected in a PR discussion [2]. This CL also simplifies the existing same-origin test using the same API, and fixes the visibility of 3 private methods in utils.js. [1] https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigation-and-session-history:~:text=Welcome%20to%20the%20dragon%27s%20maw. [2] whatwg/html#11454 Bug: 480993679 Change-Id: I9c7e5ad836404d7b1bf8e484a89fc2824b7c0364 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7769229 Commit-Queue: Mustaq Ahmed <mustaq@chromium.org> Reviewed-by: Vladimir Levin <vmpstr@chromium.org> Cr-Commit-Position: refs/heads/main@{#1616504}
f84a6b4 to
a48e87e
Compare
wpt-pr-bot
approved these changes
Apr 17, 2026
Collaborator
wpt-pr-bot
left a comment
There was a problem hiding this comment.
The review process for this patch is being conducted in the Chromium project.
Member
|
FYI @annevk and @foolip, this PR should unblock whatwg/html#11454. |
Contributor
|
Looks like touching @DanielRyanSmith Can you force merge this please? Thanks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This CL adds a new WPT for user activation states after a cross-origin
redirection, using
RemoteContextAPI in dispatcher.js. This behavioris not fully defined in the spec [1], and the test was written based on
the behavior expected in a PR discussion [2].
This CL also simplifies the existing same-origin test using the same
API, and fixes the visibility of 3 private methods in utils.js.
[1]
https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigation-and-session-history:~:text=Welcome%20to%20the%20dragon%27s%20maw.
[2] whatwg/html#11454
Bug: 480993679
Change-Id: I9c7e5ad836404d7b1bf8e484a89fc2824b7c0364
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7769229
Commit-Queue: Mustaq Ahmed <mustaq@chromium.org>
Reviewed-by: Vladimir Levin <vmpstr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1616504}