commit | a344dd8167404889d567f253597a28e4460a471d | [log] [tgz] |
---|---|---|
author | Thomas Lukaszewicz <tluk@chromium.org> | Mon Feb 17 17:56:45 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Feb 17 17:56:45 2025 |
tree | b28822c4fbc330e3e19d0e6eada3953a87e8a7dc | |
parent | 14bb922f0cbce735d044e087dcd28038ac945650 [diff] |
[permissions] Correct WebContentsUnloadedOrigin event emission This CL ensures OneTimePermissionsTrackerHelper only emits a call to WebContentsUnloadedOrigin() in the case a discard operation succeeded. The WebContents::Discard() operation may not succeed if attempted on a pending navigation. This CL appropriately updates was_discarded_ maintained on OneTimePermissionsTrackerHelper to ensure this is correctly reflected multiple unload events for the same origin are not recorded. Bug: 396324286 Change-Id: Id63112c72eee5b3f6cd8f4581ff32bc65b583b53 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6265004 Commit-Queue: Thomas Lukaszewicz <tluk@chromium.org> Reviewed-by: Florian Jacky <fjacky@chromium.org> Cr-Commit-Position: refs/heads/main@{#1421110}
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.