forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement user activation gating for CloseWatcher cancel events
This matches the spec after WICG/close-watcher#8. Note the outstanding question at WICG/close-watcher#7 about the Esc key; since Chromium currently does not count the Esc key as user activation, we have one particular behavior. The tracking of last user activation time ensures that any user activation allows the CloseWatcher to, in the future, fire a cancel event---not just during the transient activation duration time window. This gives the desired semantics outlined in https://github.com/WICG/close-watcher#asking-for-confirmation and https://github.com/WICG/close-watcher#abuse-analysis. Bug: 1171318 Change-Id: I34212f29539d5796b4a9bdc4c7351b9d8ea5880d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3168969 Commit-Queue: Domenic Denicola <[email protected]> Reviewed-by: Jeremy Roman <[email protected]> Cr-Commit-Position: refs/heads/main@{#932757}
- Loading branch information
Showing
7 changed files
with
209 additions
and
43 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
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
Oops, something went wrong.