Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make dialog light dismiss and dialog.requestClose not need UA
See the conversation here: openui/open-ui#1128 (comment) Previously, both dialog light dismiss and dialog.requestClose() would be subject to CloseWatcher's abuse prevention logic, which requires user activation. But that doesn't make sense, as pointed out in the thread above, since neither of those are "abusive" things - they're not keeping a user from navigating back. So this CL adds a parameter to CloseWatcher.requestClose() that allows callers to proceed with requesting close even if there isn't sufficient user activation. Note that this CL does not change the existing behavior for other CloseWatchers - those will still require user activation for now. See crbug.com/383593252 for that. Bug: 376516550,383593252 Change-Id: Ibf5ccc835794aba2aa627ddec7caafa6c9c26e55 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6085724 Commit-Queue: Mason Freed <masonf@chromium.org> Auto-Submit: Mason Freed <masonf@chromium.org> Reviewed-by: David Baron <dbaron@chromium.org> Cr-Commit-Position: refs/heads/main@{#1395143}
- Loading branch information