commit | d32aa3d9d76b42234c49496757bb2e089a45bbe5 | [log] [tgz] |
---|---|---|
author | Patrick Monette <pmonette@chromium.org> | Wed Nov 13 21:12:31 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Nov 13 21:12:31 2024 |
tree | 1579c5e92e376fa44112b5ed9f99b5a7bcbb091c | |
parent | 60ce2582f8f3eb48505a6d005a80a15d6dffa716 [diff] |
[IndexedDB] Treat frozen clients as inactive Before this CL, a client is inactive iff it is inside the BF cache. To support freezing, IDBDatabase now listens for the ContextLifecycleStateChanged notification, which invokes DidBecomeInactive when the frame is frozen, just like when the frame enters BFCache. In addition, whenever a transaction ends, we check if any of the remaining transactions are blocking other clients to determine if the client is now eligible for freezing. Bug: 362464956 Change-Id: I4d8092bef3189e4d42124c2cb169015570e5df96 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5958727 Commit-Queue: Charlie Reis <creis@chromium.org> Commit-Queue: Patrick Monette <pmonette@chromium.org> Reviewed-by: Evan Stade <estade@chromium.org> Reviewed-by: Charlie Reis <creis@chromium.org> Auto-Submit: Patrick Monette <pmonette@chromium.org> Cr-Commit-Position: refs/heads/main@{#1382575}
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.