[wpt-sync] Sync PR 63121 - Reland "Add focus requirement to insert content into clipboard"
Categories
(Remote Protocol :: WebDriver BiDi, task, P4)
Tracking
(firefox160 fixed)
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63121 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63121
Details from upstream follow.
Gaston Rodriguez <gastonr@microsoft.com> wrote:
Reland "Add focus requirement to insert content into clipboard"
This is a reland of commit c50edc4214d81e4f944c3415d55104a49e46d214
The original CL was reverted due to tests that failed with the new focus
requirement which did not run on my CQ Dry Run. I made the tests require
focus now, and they pass. Added (win/linux/mac)-webdriver-bidi-rel bot
runs to CQ to ensure there are no other missing tests that would fail
with these changes.Original change's description:
Add focus requirement to insert content into clipboard
Currently, focus is not required to insert content into the clipboard
under certain circumstances (running on x11). The new async clipboard
API requires focus for a script to inject content into the clipboard.This seems reasonable since a webpage may require you to open a second
window to process additional input (like a SSO page), and injecting
content from an unfocused page could be a vector of attack to an
unassuming user.This CL adds the requirement for focus on the non-async path and a unit
test that verifies that this is enforced.Additionally, I was able to repro the issue on the provided html in the
linked bug and verified that this CL patches the repro.Bug: 563021080
Change-Id: I928f5769e75f4c3d1c4ba9e69976f14dd85c50e6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8422732
Reviewed-by: Dan Clark \<daniec@microsoft.com>
Reviewed-by: James Cook \<jamescook@chromium.org>
Commit-Queue: Gaston Rodriguez \<gastonr@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1706539}Bug: 563021080
Change-Id: I6314dcff954ec3a8a004742d5873d346f39ee253Reviewed-on: https://chromium-review.googlesource.com/8488666
WPT-Export-Revision: ccc30a63d6411b789c49a7e3826bad03dd6b607f
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=99654
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 2 tests and 4 subtests
Status Summary
Firefox
OK : 2
PASS : 8
Chrome
OK : 2
PASS : 8
Safari
OK : 2
ERROR: 8
Links
Updated•1 month ago
|
https://hg.mozilla.org/mozilla-central/rev/e387edfa478c
https://hg.mozilla.org/mozilla-central/rev/27c917a47a36
Description
•