Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[M102] Fenced frame: Make window.focus() rules match element.focus()
rules. Original CLs that are in this change: https://chromium-review.googlesource.com/c/chromium/src/+/3594164 https://chromium-review.googlesource.com/c/chromium/src/+/3594041 --- The current rules introduced in the programmatic focus CL are overly strict. This change will tie window.focus() to transient activation the same way element.focus() is tied to transient activation. This will also have window.focus() consume transient user activation for fenced frames. This CL also adds assert messages in the script-focus WPT to make the tests easier to debug. See CL where rule was originally introduced: https://chromium-review.googlesource.com/c/chromium/src/+/3569943 Mark script-focus.https.html as flaky Note that this issue is blocked on https://crbug.com/1066891, so in the meantime the test will be marked as an expected flake. Bug: 1319425 Change-Id: Iac9908d1f06e64cf6191eb31a1e7d079df7757be Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3621213 Commit-Queue: Liam Brady <lbrady@google.com> Reviewed-by: Dominic Farolino <dom@chromium.org> Cr-Commit-Position: refs/branch-heads/5005@{#393} Cr-Branched-From: 5b4d945-refs/heads/main@{#992738}
- Loading branch information
Liam Brady
authored and
Chromium LUCI CQ
committed
May 3, 2022
1 parent
82c0da5
commit d330bed
Showing
4 changed files
with
70 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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