DescriptionClose bubbles not on UpdateToolbar but when the activated tab is changed
Now Browser::UpdateToolbar is called not only when the activated tab is
changed but also when, for example, a provisional document loader is
canceled. As a result of this, the Translate bubble is closed when a
navigation in an iframe happens. This is not an expected behavior. Apart
from a provisional document, I found some unexpected conditions where
the bubble is closed (e.g.
Browser::OnWebContentsInstantSupportDisabled calls UpdateToolbar).
This CL changes the logic to avoid closing the bubble on UpdateToolbar.
Instead, the logic is changed to close the bubble when the activated
tab is changed (Browser::ActivateTabChanged).
BUG=433272
TEST=manual
Committed: https://crrev.com/76a935cd3b88e675746a8299bd222ac5cdcf402f
Cr-Commit-Position: refs/heads/master@{#304990}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Move updating the zoom bubble; Move impelementation to OnActiveTabChanged #
Total comments: 5
Patch Set 3 : Add calling ZoomBubbleView::CloseBubble() #
Total comments: 2
Patch Set 4 : nits #
Dependent Patchsets: Messages
Total messages: 12 (2 generated)
|