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

Issue 10282: Only block alert() requests from blocked popups; not all popups.... (Closed)

Created:
12 years, 1 month ago by Elliot Glaysher
Modified:
9 years, 7 months ago
Reviewers:
Finnur, Mark Larson
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google)
Visibility:
Public.

Description

Only block alert() requests from blocked popups; not all popups. Add two unit tests to make sure we do the right thing; required adding a bunch of stuff to the automation layer. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=5198

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -86 lines) Patch
M chrome/browser/automation/automation_provider.h View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/automation/automation_provider.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/views/constrained_window_impl_interactive_uitest.cc View 1 5 chunks +85 lines, -81 lines 0 comments Download
M chrome/browser/web_contents.cc View 1 chunk +1 line, -1 line 1 comment Download
M chrome/test/automation/automation_messages_internal.h View 1 chunk +7 lines, -2 lines 2 comments Download
M chrome/test/automation/automation_proxy.h View 2 chunks +8 lines, -1 line 0 comments Download
M chrome/test/automation/automation_proxy.cc View 1 chunk +47 lines, -0 lines 1 comment Download
A chrome/test/data/constrained_files/block_alert.html View 1 chunk +17 lines, -0 lines 2 comments Download
A chrome/test/data/constrained_files/show_alert.html View 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/test/data/constrained_files/show_alert_2.html View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Elliot Glaysher
12 years, 1 month ago (2008-11-11 00:43:16 UTC) #1
Mark Larson
The change to WebContents looks good to me. Please get someone else to review these ...
12 years, 1 month ago (2008-11-11 00:48:37 UTC) #2
Elliot Glaysher
Adding Finnur to the list of reviewers; could you please review the automation changes I've ...
12 years, 1 month ago (2008-11-11 00:52:32 UTC) #3
Finnur
LGTM, with minor nits.
12 years, 1 month ago (2008-11-11 07:28:33 UTC) #4
Finnur
12 years, 1 month ago (2008-11-11 07:30:03 UTC) #5
Ooops, I did a reply and not a publish. This fixes that. 
Again: LGTM, with only minor nits.

http://codereview.chromium.org/10282/diff/12/22
File chrome/browser/web_contents.cc (right):

http://codereview.chromium.org/10282/diff/12/22#newcode1080
Line 1080: suppress_this_message |= (delegate()->GetConstrainingContents(this)
!= NULL);
Exceeds 80 chars.

http://codereview.chromium.org/10282/diff/12/16
File chrome/test/automation/automation_messages_internal.h (right):

http://codereview.chromium.org/10282/diff/12/16#newcode804
Line 804: // Querries whether an app modal dialog is currently being shown.
(i.e. a
Queries (one r)

http://codereview.chromium.org/10282/diff/12/16#newcode808
Line 808: bool /* showning dialog */)
Showing (one n).

http://codereview.chromium.org/10282/diff/12/17
File chrome/test/automation/automation_proxy.cc (right):

http://codereview.chromium.org/10282/diff/12/17#newcode338
Line 338: bool dialog_shown;
For good measure I would initialize this to false.

http://codereview.chromium.org/10282/diff/12/13
File chrome/test/data/constrained_files/block_alert.html (right):

http://codereview.chromium.org/10282/diff/12/13#newcode5
Line 5: if (location.search.indexOf("popup") != -1) {
The indentation here is weird. Same below...

http://codereview.chromium.org/10282/diff/12/13#newcode6
Line 6: document.write("This should still be inside the tab, but it is now in "
+
Not conforming to 80 chars? :)

Powered by Google App Engine
This is Rietveld 408576698