commit | 65a85834865ebffd0d2ce8d1b3b5f13cb4016f51 | [log] [tgz] |
---|---|---|
author | Michael Giuffrida <michaelpg@chromium.org> | Thu Feb 22 23:47:53 2018 |
committer | Michael Giuffrida <michaelpg@chromium.org> | Thu Feb 22 23:47:53 2018 |
tree | 773a4a6d73728419b3e69ad3388b9bd0627c65a1 | |
parent | 64461531b578e20751309ffabcbe67493c934ced [diff] |
WindowActivityWatcher: Verify browser window exists It's apparently possible for BrowserList::SetLastActive(Browser* browser) to be called before |browser| is added to the BrowserList. This might happen, e.g., if a BrowserView's widget receives an activation event before CreateBrowserWindow() returns. This will cause WindowActivityWatcher's CreateMetrics() helper function to dereference the null pointer at browser->window(). (cherry picked from commit 3c2815cfbf41f0c76d74c64800d6d60c328d3d7b) Bug: 811243,811191 Change-Id: Ia377a810b73494f88d1cd2b4532367950f35b1f7 Reviewed-on: https://chromium-review.googlesource.com/924353 Commit-Queue: Michael Giuffrida <michaelpg@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#537825} Reviewed-on: https://chromium-review.googlesource.com/932008 Cr-Commit-Position: refs/branch-heads/3325@{#562} Cr-Branched-From: bc084a8b5afa3744a74927344e304c02ae54189f-refs/heads/master@{#530369}
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.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .