Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(787)

Issue 712993004: Don't re-use a zoom bubble unless it has the same web-contents. (Closed)

Created:
6 years, 1 month ago by wjmaclean
Modified:
6 years, 1 month ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, inferno
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Reset singleton ZoomBubbleView::zoom_bubble_ in ::Close() The current implementation of ZoomBubbleView is capable of attempting to re-use a zoom bubble with a stale WebContents*. This CL resets ZoomBubbleView::zoom_bubble_ in the ZoomBubbleView::Close() method to avoid inadvertent reuse. It also adds a DCHECK to make sure WebContents* are never mis-matched in calls to ZoomBubbleView::ShowBubble(). BUG=428561 Committed: https://crrev.com/d1b6f4d89d002808689a156b739f8d7fd80104fb Cr-Commit-Position: refs/heads/master@{#303945}

Patch Set 1 #

Patch Set 2 : Reset singleton pointer and webcontents* on Close(). #

Patch Set 3 : Fix test. #

Total comments: 4

Patch Set 4 : Restore WindowClosing(), improve comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M chrome/browser/ui/views/location_bar/zoom_bubble_view.cc View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/zoom_bubble_view_browsertest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (2 generated)
wjmaclean
sky@ - Regardless of whether the Clusterfuzz bug repros or not, I think this is ...
6 years, 1 month ago (2014-11-10 23:57:23 UTC) #2
sky
Seems that all the call sites use the active web contents. How could it be ...
6 years, 1 month ago (2014-11-11 00:50:52 UTC) #3
wjmaclean
On 2014/11/11 00:50:52, sky wrote: > Seems that all the call sites use the active ...
6 years, 1 month ago (2014-11-11 13:23:31 UTC) #4
wjmaclean
On 2014/11/11 00:50:52, sky wrote: > > I can't see the bug, stupid persmissions. inferno@ ...
6 years, 1 month ago (2014-11-11 13:24:11 UTC) #5
sky
Mark gave me access to the bug. I think the real issue here is zoom_bubble_ ...
6 years, 1 month ago (2014-11-11 17:16:36 UTC) #6
wjmaclean
On 2014/11/11 17:16:36, sky wrote: > Mark gave me access to the bug. I think ...
6 years, 1 month ago (2014-11-11 20:53:43 UTC) #7
wjmaclean
On 2014/11/11 17:16:36, sky wrote: > Mark gave me access to the bug. I think ...
6 years, 1 month ago (2014-11-11 21:04:06 UTC) #8
sky
It's kind of two fold. When the WebContents changes (including being destroyed) LocationBarView closes the ...
6 years, 1 month ago (2014-11-12 00:24:18 UTC) #9
wjmaclean
sky@ - I'm running this revised patch on the trybots, let me know if it ...
6 years, 1 month ago (2014-11-12 20:00:51 UTC) #10
sky
https://codereview.chromium.org/712993004/diff/40001/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc File chrome/browser/ui/views/location_bar/zoom_bubble_view.cc (left): https://codereview.chromium.org/712993004/diff/40001/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc#oldcode353 chrome/browser/ui/views/location_bar/zoom_bubble_view.cc:353: void ZoomBubbleView::WindowClosing() { You should still keep this. The ...
6 years, 1 month ago (2014-11-12 21:48:55 UTC) #11
wjmaclean
PTAL? https://codereview.chromium.org/712993004/diff/40001/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc File chrome/browser/ui/views/location_bar/zoom_bubble_view.cc (left): https://codereview.chromium.org/712993004/diff/40001/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc#oldcode353 chrome/browser/ui/views/location_bar/zoom_bubble_view.cc:353: void ZoomBubbleView::WindowClosing() { On 2014/11/12 21:48:55, sky wrote: ...
6 years, 1 month ago (2014-11-12 22:00:01 UTC) #12
sky
LGTM
6 years, 1 month ago (2014-11-12 22:02:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/712993004/60001
6 years, 1 month ago (2014-11-13 00:08:24 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 1 month ago (2014-11-13 00:56:25 UTC) #16
commit-bot: I haz the power
6 years, 1 month ago (2014-11-13 00:56:47 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d1b6f4d89d002808689a156b739f8d7fd80104fb
Cr-Commit-Position: refs/heads/master@{#303945}

Powered by Google App Engine
This is Rietveld 408576698