[wpt-sync] Sync PR 44828 - Re-do close watcher user activation tracking
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox125 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 44828 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/44828
Details from upstream follow.
Domenic Denicola <domenic@chromium.org> wrote:
Re-do close watcher user activation tracking
Our previous approach for close watcher user activation tracking had
cases where we could allow the cancel event to fire, but we were not
allowing it.Fixing this is nontrivial. We need to more closely track the allowed
number of close watchers, and use it when making decisions about
creating ungrouped close watchers or firing cancel events. This allows
us to pass test cases like:
A close watcher stack that is relatively empty compared to the amount
of user activations so far, needs to allow cancel events.A close watcher stack that is full compared to the amount of user
activations so far, needs to prevent cancel events.Additionally, our previous mechanism of tracking groups by using
booleans on the close watchers was buggy when a close watcher was
destroyed. Instead, properly track the groups as a vector of vectors.Spec PR: https://github.com/whatwg/html/pull/10168
Bug: 1512224
Change-Id: I6d7ccdc27c69f457455f517dcdbcc71d615b4290Reviewed-on: https://chromium-review.googlesource.com/5232387
WPT-Export-Revision: e65096fb710bf15d02d9a0b0fa916969b99d5c53
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 1 subtests
Status Summary
Firefox
OK : 1
PASS: 1
Chrome
OK : 1
FAIL: 1
Safari
OK : 1
PASS: 1
Links
Comment 4•1 year ago
|
||
| bugherder | ||
Description
•