Fix crash when ExtensionPopup::host_ is nullptr.
If a user uninstalls multiple extensions simultaneously, where the first one has an extension popup open, the second notification will cause a crash because the bubble will try to access |host_|, which is already nullptr. To fix this, we unregister from further notifications when destroying |host_|. Also adds a test. Bug: 1099456 Change-Id: Ia89e5d1e25e801d83bae49c858ff8f95488cd311 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2292330 Commit-Queue: Bret Sepulveda <bsep@chromium.org> Reviewed-by:Devlin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/master@{#790302}
Showing
Please register or sign in to comment