commit | 181de6276daa83aa80bc09106f017c5dc20e0e8c | [log] [tgz] |
---|---|---|
author | Joey Arhar <jarhar@chromium.org> | Wed Sep 28 17:39:48 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Sep 28 17:39:48 2022 |
tree | e4530ad25a2753b937f636debb4cd4185009cfd9 | |
parent | 584badf4a357c706e07fb8cefa55b87a764637b2 [diff] |
Update DisplayLock lifecycle registration for top layer WillStartLifecycleUpdate is only called when the DisplayLockContext is subscribed to lifecycle updates, and the DisplayLockContext should only be subscribed to lifecycle updates when NeedsLifecycleNotifications is true. The DCHECK at the start of WillStartLifecycleUpdate enforces this. has_pending_top_layer_check_ affects NeedsLifecycleNotifications, which means that we need to unsubscribe from lifecycle notifications when it becomes false. This patch adds a line of code to unsubscribe from notifications when it is set to false. Running slot-content-visibility-18-crash.html with --iterations=500 was failing without this patch. Fixed: 1367977 Change-Id: Ib5aa044d32e87f7dc7f4f8c9ed7cf08e979298ee Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3923916 Reviewed-by: Vladimir Levin <vmpstr@chromium.org> Commit-Queue: Joey Arhar <jarhar@chromium.org> Cr-Commit-Position: refs/heads/main@{#1052500}
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.