commit | bee025669b6d864dcc256169bb74448e0bb59a92 | [log] [tgz] |
---|---|---|
author | David Bertoni <dbertoni@chromium.org> | Fri Oct 20 00:51:51 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Oct 20 00:51:51 2023 |
tree | 5c4d1b5076522a415b1bee6b719e1f5be7259cf2 | |
parent | 62a121645648607aae68e44df224054176b608db [diff] |
[Extensions] Check the BrowserContext for validity in a callback. It's possible for the callback bound for ExtensionWebRequestEventRouter::OnRulesRegistryReady to be run after the BrowserContext is destroyed. This CL checks the context for validity and returns if it's not. Note this is not a regression and it's always possible this could have occurred since the ExtensionWebRequestEventRouter is a global singleton that is never destroyed. Bug: 1491958 Change-Id: Ice68813228427ec206bc43a26515c19fd88c08cd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4956459 Auto-Submit: David Bertoni <dbertoni@chromium.org> Commit-Queue: Devlin Cronin <rdevlin.cronin@chromium.org> Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/main@{#1212499}
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.