Desktop Page Info/Mac: Fix cookie updates crashing on transition to full screen.
Whenever the Page Info bubble needs to update the number of cookies being used on a site, it will update the text in the Page Info bubble to reflect this, which will then trigger a layout update and reanchor the bubble. However, if this occurs while the browser window is moving into full screen mode, the Page Info parent window will be null and this operation will crash. Fix by checking whether the parent window exists before trying to reanchor. Moving into full screen will also close the Page Info bubble, so the reanchor is unnecessary anyway - it will be correctly positioned the next time it is opened. Bug: 773283 Change-Id: I6f7418fcc96a95b8e3f0a3276ac009cef6eda92e Reviewed-on: https://chromium-review.googlesource.com/720579 Commit-Queue: Patti <patricialor@chromium.org> Reviewed-by:Trent Apted <tapted@chromium.org> Cr-Commit-Position: refs/heads/master@{#510240}
Showing
Please register or sign in to comment