Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align spec with implementation experience #8

Merged
merged 3 commits into from
Oct 27, 2021
Merged

Align spec with implementation experience #8

merged 3 commits into from
Oct 27, 2021

Conversation

domenic
Copy link
Collaborator

@domenic domenic commented Sep 21, 2021

  • The constructor needs to consume transient user activation, not just check it.
  • We need a reentrancy flag for the cancel event.
  • We need to not fire close if destroy() was called during the cancel event handler.
  • Note the discussion about the Esc key being user activation (Should the Esc key count as user activation? #7).

Preview | Diff

* The constructor needs to _consume_ transient user activation, not just check it.
* We need a reentrancy flag for the cancel event.
* We need to not fire close if destroy() was called during the cancel event handler.
* Note the discussion about the Esc key being user activation (#7).
pull bot pushed a commit to luojiguicai/chromium that referenced this pull request Oct 19, 2021
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 <domenic@chromium.org>
Reviewed-by: Jeremy Roman <jbroman@chromium.org>
Cr-Commit-Position: refs/heads/main@{#932757}
@domenic domenic merged commit 058c696 into main Oct 27, 2021
@domenic domenic deleted the spec-updates branch October 27, 2021 16:22
mjfroman pushed a commit to mjfroman/moz-libwebrtc-third-party that referenced this pull request Oct 14, 2022
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 <domenic@chromium.org>
Reviewed-by: Jeremy Roman <jbroman@chromium.org>
Cr-Commit-Position: refs/heads/main@{#932757}
NOKEYCHECK=True
GitOrigin-RevId: f81bb8a5905014bebe9cb4520cff7a8ac036702d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant