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

Issue 7205026: Don't rely on user gestures for deciding when to dismiss infobars. (Closed)

Created:
9 years, 6 months ago by abarth-chromium
Modified:
9 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, Avi (use Gerrit), jam, brettw-cc_chromium.org, Elliot Glaysher
Visibility:
Public.

Description

Don't rely on user gestures for deciding when to dismiss infobars. Previously, we looked at the user gesture state when deciding whether to dismiss infobars. Now that WebKit's user gesture state doesn't lie, we can tell that this behavior is incorrect. Page-specific infobars, like translate, should close whenever the main frame navigates to a new page, regardless of whether that navigation was conducted from a user gesture. BUG=86417 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=89864

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 1

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -43 lines) Patch
M chrome/browser/omnibox_search_hint.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/confirm_infobar_delegate.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/confirm_infobar_delegate.cc View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/infobar_delegate.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/tab_contents/infobar_delegate.cc View 1 2 3 4 5 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/translate/translate_infobar_delegate.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_init.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_list.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/keystone_infobar.mm View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/tab_contents/navigation_controller.cc View 1 2 3 4 5 1 chunk +0 lines, -15 lines 0 comments Download
M content/browser/tab_contents/navigation_controller_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/tab_contents/navigation_details.h View 1 2 3 4 5 2 chunks +5 lines, -14 lines 0 comments Download
M content/browser/tab_contents/navigation_details.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
abarth-chromium
9 years, 6 months ago (2011-06-20 03:46:30 UTC) #1
darin (slow to review)
Not sure if you are doing this or not, but "client redirects" (meta refresh, location ...
9 years, 6 months ago (2011-06-20 16:15:23 UTC) #2
abarth-chromium
On 2011/06/20 16:15:23, darin wrote: > Not sure if you are doing this or not, ...
9 years, 6 months ago (2011-06-20 16:18:40 UTC) #3
abarth-chromium
Looks like all the subclasses of ConfirmInfoBarDelegate (including the password manager) want to persist through ...
9 years, 6 months ago (2011-06-20 16:55:11 UTC) #4
Peter Kasting
On 2011/06/20 16:55:11, abarth wrote: > Looks like all the subclasses of ConfirmInfoBarDelegate (including the ...
9 years, 6 months ago (2011-06-20 18:04:06 UTC) #5
abarth-chromium
> I would think that all InfoBarDelegates would want that, not just the confirm > ...
9 years, 6 months ago (2011-06-20 18:11:23 UTC) #6
abarth-chromium
The current code is really very silly. Any non-user initiated navigation (such as a setTimeout) ...
9 years, 6 months ago (2011-06-20 18:19:03 UTC) #7
Peter Kasting
On 2011/06/20 18:19:03, abarth wrote: > Any non-user initiated navigation (such > as a setTimeout) ...
9 years, 6 months ago (2011-06-20 18:22:46 UTC) #8
abarth-chromium
> The translate infobar wouldn't; the save password infobar probably would. So it > varies ...
9 years, 6 months ago (2011-06-20 18:25:40 UTC) #9
abarth-chromium
Brett, pkasting says you should review this change because it's mostly related to navigation controller ...
9 years, 6 months ago (2011-06-20 18:41:02 UTC) #10
darin (slow to review)
On Mon, Jun 20, 2011 at 11:25 AM, <abarth@chromium.org> wrote: > The translate infobar wouldn't; ...
9 years, 6 months ago (2011-06-20 19:25:53 UTC) #11
brettw
This does look a lot nicer. In general, we do need to be careful about ...
9 years, 6 months ago (2011-06-21 16:32:26 UTC) #12
abarth-chromium
Tested corp Gmail (both with an without OTP) and it worked fine. Amazon also worked ...
9 years, 6 months ago (2011-06-21 16:42:01 UTC) #13
brettw
The navigation controller stuff LGTM. I guess just be on the lookout for regressions. http://codereview.chromium.org/7205026/diff/6012/content/browser/tab_contents/navigation_details.h ...
9 years, 6 months ago (2011-06-21 17:14:29 UTC) #14
abarth-chromium
Thanks Brett.
9 years, 6 months ago (2011-06-21 17:35:54 UTC) #15
commit-bot: I haz the power
9 years, 6 months ago (2011-06-21 18:35:12 UTC) #16
Change committed as 89864

Powered by Google App Engine
This is Rietveld 408576698