-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: whatwg/html#10168 Bug: 1512224 Change-Id: I6d7ccdc27c69f457455f517dcdbcc71d615b4290 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5232387 Reviewed-by: Joey Arhar <[email protected]> Commit-Queue: Domenic Denicola <[email protected]> Cr-Commit-Position: refs/heads/main@{#1268262}
- Loading branch information
Showing
13 changed files
with
108 additions
and
95 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
5 changes: 0 additions & 5 deletions
5
...watcher/external/wpt/close-watcher/user-activation/nynn-destroy_CloseWatcher-expected.txt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...close-watcher/external/wpt/close-watcher/user-activation/nynn-destroy_dialog-expected.txt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...tual/close-watcher/external/wpt/close-watcher/user-activation/y_CloseWatcher-expected.txt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...ts/virtual/close-watcher/external/wpt/close-watcher/user-activation/y_dialog-expected.txt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...ual/close-watcher/external/wpt/close-watcher/user-activation/yy_CloseWatcher-expected.txt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...s/virtual/close-watcher/external/wpt/close-watcher/user-activation/yy_dialog-expected.txt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...r/external/wpt/close-watcher/user-activation/yyy-CloseWatcher-dialog-popover-expected.txt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...al/close-watcher/external/wpt/close-watcher/user-activation/yyy_CloseWatcher-expected.txt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
.../virtual/close-watcher/external/wpt/close-watcher/user-activation/yyy_dialog-expected.txt
This file was deleted.
Oops, something went wrong.