Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A CHECK is hit when the CookieControlsObserver fires an update event in close proximity to the close of the CookieControlsBubbleView. In particular, this can occur when the active tab changes to a tab which has cookie controls disabled (such as a chrome:// URL). When this happens, it breaks the expectation that the UI is not shown over such pages, and the CHECK enforcing that expectation is hit. The UI is not _really_ shown, as it is in the process of closing (i.e. WindowClosing() has already been called), but an attempt to update the title is made based on the new CookieControlsObserver information is made anyway. This CL ensures that the bubble stops observing the CookieControls when CloseBubble is called, preventing future updates be handled. The test introduced in this CL reliably fails without the associated fix. (cherry picked from commit 77610c2) Bug: 1459383 Change-Id: I3bb6fc01c1057ac606c0136ace5a303036e58eb9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4660440 Commit-Queue: Theodore Olsauskas-Warren <sauski@google.com> Reviewed-by: Christian Dullweber <dullweber@chromium.org> Reviewed-by: Olesia Marukhno <olesiamarukhno@google.com> Cr-Original-Commit-Position: refs/heads/main@{#1164622} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4661099 Cr-Commit-Position: refs/branch-heads/5845@{#283} Cr-Branched-From: 5a5dff6-refs/heads/main@{#1160321}
- Loading branch information