commit | 19578e9da2337ae3fa0950b35c379ad2699d62ed | [log] [tgz] |
---|---|---|
author | Dave Tapuska <dtapuska@chromium.org> | Mon Aug 09 17:14:02 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Aug 09 17:14:02 2021 |
tree | fd6b94af1907ba07c81b5b0706137dc1ec38d199 | |
parent | 9b25a6f9e235fd02ff8b0b8f8a830a3ae8f4bfc6 [diff] |
Make sure RunBeforeUnloadConfirm is a no-op for non-active pages. We should never receive a request to confirm a before unload handler for a prerender because that is gated on having sticky User Activation. It is possible to receive it in other scenarios so we respond false if we receive it. This code use to exist in WebContentsImpl but this makes it consistent with the other JavaScriptDialog method which checks IsActive inside RFHI. Remove unused WillRunBeforeUnloadConfirm callback. Add a test as well. BUG=1237034 Change-Id: I34ea029b79252016f051016d68682dd16c304cc7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3075200 Commit-Queue: Dave Tapuska <dtapuska@chromium.org> Reviewed-by: Alex Moshchuk <alexmos@chromium.org> Reviewed-by: Alexander Timin <altimin@chromium.org> Cr-Commit-Position: refs/heads/master@{#909842}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.