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

Issue 969003: Make repost form warning tab-modal on Mac. (Closed)

Created:
10 years, 9 months ago by Bernhard Bauer
Modified:
9 years, 7 months ago
CC:
John Grabowski, ben+cc_chromium.org, pam+watch_chromium.org, brettw+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Make repost form warning tab-modal on Mac. Reloading a page for the second time dismisses the warning before showing it again. CLs for other platforms forthcoming. BUG=26271 TEST=RepostFormWarningTest.TestDoubleReload Manual test: Go to http://www.cs.unc.edu/~jbs/resources/perl/perl-cgi/programs/form1-POST.html, hit Submit, then reload. The warning sheet should be tab-modal, not window-modal. Hit reload again. The warning sheet should close and immediately reopen. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=41898

Patch Set 1 #

Patch Set 2 : Remove unnecessary code #

Patch Set 3 : How did that end up here? #

Total comments: 5

Patch Set 4 : Fix crashes when showing both a repost form warning and an authentication dialog. #

Total comments: 2

Patch Set 5 : Remove an unnecessary line. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -43 lines) Patch
M chrome/browser/automation/automation_provider.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/browser.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/cocoa/browser_window_cocoa.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/cocoa/repost_form_warning_mac.h View 1 2 3 4 chunks +11 lines, -6 lines 0 comments Download
M chrome/browser/cocoa/repost_form_warning_mac.mm View 1 2 3 1 chunk +44 lines, -24 lines 0 comments Download
M chrome/browser/cocoa/toolbar_controller.mm View 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/repost_form_warning_uitest.cc View 1 2 3 4 1 chunk +78 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/navigation_controller.h View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/navigation_controller.cc View 1 2 3 chunks +28 lines, -10 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/notification_type.h View 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/test/data/form.html View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Bernhard Bauer
10 years, 9 months ago (2010-03-16 05:54:13 UTC) #1
Evan Martin
i skimmed, nico should look at the mac bits http://codereview.chromium.org/969003/diff/5002/6007 File chrome/browser/repost_form_warning_uitest.cc (right): http://codereview.chromium.org/969003/diff/5002/6007#newcode30 chrome/browser/repost_form_warning_uitest.cc:30: ...
10 years, 9 months ago (2010-03-16 15:26:16 UTC) #2
darin (slow to review)
http://codereview.chromium.org/969003/diff/5002/6005 File chrome/browser/cocoa/repost_form_warning_mac.mm (right): http://codereview.chromium.org/969003/diff/5002/6005#newcode100 chrome/browser/cocoa/repost_form_warning_mac.mm:100: type == NotificationType::RELOADING)) { is it really necessary to ...
10 years, 9 months ago (2010-03-16 17:09:46 UTC) #3
darin (slow to review)
related to my review comments above, please note that some reloads will occur as a ...
10 years, 9 months ago (2010-03-16 17:11:09 UTC) #4
Bernhard Bauer
On 2010/03/16 17:09:46, darin wrote: > http://codereview.chromium.org/969003/diff/5002/6005 > File chrome/browser/cocoa/repost_form_warning_mac.mm (right): > > http://codereview.chromium.org/969003/diff/5002/6005#newcode100 > ...
10 years, 9 months ago (2010-03-16 17:58:07 UTC) #5
Nico
LGTM from me. Can you close the review of the other version of this patch? ...
10 years, 9 months ago (2010-03-17 16:16:14 UTC) #6
Bernhard Bauer
10 years, 9 months ago (2010-03-17 20:41:23 UTC) #7
On 2010/03/17 16:16:14, Nico wrote:
> LGTM from me.
> 
> Can you close the review of the other version of this patch?

I'm just waiting for a decision which version should be committed, then I'll
close the other one.

http://codereview.chromium.org/969003/diff/13001/4008
File chrome/browser/repost_form_warning_uitest.cc (right):

http://codereview.chromium.org/969003/diff/13001/4008#newcode72
chrome/browser/repost_form_warning_uitest.cc:72: // 
ASSERT_TRUE(tab->CancelAuth());
On 2010/03/17 16:16:14, Nico wrote:
> Why is this commented out? If it's not needed, remove it completely.

You're completely right, I just forgot to remove it.

Powered by Google App Engine
This is Rietveld 408576698