DescriptionReset 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. #
Messages
Total messages: 17 (2 generated)
|