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

Issue 739793003: Close bubbles not on UpdateToolbar but when the activated tab is changed (Closed)

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

Description

Close 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 3 chunks +4 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (2 generated)
hajimehoshi
PTAL
6 years, 1 month ago (2014-11-19 08:20:26 UTC) #2
Peter Kasting
https://codereview.chromium.org/739793003/diff/1/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/739793003/diff/1/chrome/browser/ui/browser.cc#newcode1018 chrome/browser/ui/browser.cc:1018: window_->CloseTranslateBubble(); Why do we need a special call for ...
6 years, 1 month ago (2014-11-19 09:18:12 UTC) #3
hajimehoshi
Thank you! https://codereview.chromium.org/739793003/diff/1/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/739793003/diff/1/chrome/browser/ui/browser.cc#newcode1018 chrome/browser/ui/browser.cc:1018: window_->CloseTranslateBubble(); On 2014/11/19 09:18:12, Peter Kasting wrote: ...
6 years, 1 month ago (2014-11-19 10:02:08 UTC) #4
Peter Kasting
Yeah, let's move the zoom bubble closure, I wasn't thinking about subframe navigations. https://codereview.chromium.org/739793003/diff/20001/chrome/browser/ui/views/frame/browser_view.cc File ...
6 years, 1 month ago (2014-11-19 19:23:20 UTC) #5
hajimehoshi
Thank you! https://codereview.chromium.org/739793003/diff/20001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/739793003/diff/20001/chrome/browser/ui/views/frame/browser_view.cc#newcode811 chrome/browser/ui/views/frame/browser_view.cc:811: if (change_tab_contents) { On 2014/11/19 19:23:20, Peter ...
6 years, 1 month ago (2014-11-20 05:12:30 UTC) #6
Peter Kasting
LGTM https://codereview.chromium.org/739793003/diff/20001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/739793003/diff/20001/chrome/browser/ui/views/frame/browser_view.cc#newcode811 chrome/browser/ui/views/frame/browser_view.cc:811: if (change_tab_contents) { On 2014/11/20 05:12:30, hajimehoshi wrote: ...
6 years, 1 month ago (2014-11-20 06:27:44 UTC) #7
hajimehoshi
Thanks! https://codereview.chromium.org/739793003/diff/40001/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://codereview.chromium.org/739793003/diff/40001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode1156 chrome/browser/ui/views/location_bar/location_bar_view.cc:1156: On 2014/11/20 06:27:44, Peter Kasting wrote: > Nit: ...
6 years, 1 month ago (2014-11-20 06:48:27 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/739793003/60001
6 years, 1 month ago (2014-11-20 06:49:20 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 1 month ago (2014-11-20 07:31:50 UTC) #11
commit-bot: I haz the power
6 years, 1 month ago (2014-11-20 07:32:37 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/76a935cd3b88e675746a8299bd222ac5cdcf402f
Cr-Commit-Position: refs/heads/master@{#304990}

Powered by Google App Engine
This is Rietveld 408576698