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

Issue 99203: Second attempt at cleaning up handling of --disable-popup-blocking. I didn't... (Closed)

Created:
11 years, 7 months ago by Peter Kasting
Modified:
9 years, 7 months ago
Reviewers:
Elliot Glaysher
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Second attempt at cleaning up handling of --disable-popup-blocking. I didn't realize that now window.open() will result in a popup with this flag, where before it resulted in a tab. This necessitated changes to a test that expected one window and two tabs to expect two windows each with one tab. I also fixed the test to not crash when some expectations were not met (by using ASSERT_ instead of EXPECT_), and to properly use (expected, actual) instead of (actual, expected). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=14886

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -43 lines) Patch
M chrome/browser/renderer_host/browser_render_process_host.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/unload_uitest.cc View 2 chunks +28 lines, -17 lines 0 comments Download
M chrome/renderer/render_view.h View 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/renderer/render_view.cc View 4 chunks +2 lines, -17 lines 0 comments Download
M chrome/test/automation/automation_proxy_uitest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
Peter Kasting
11 years, 7 months ago (2009-04-29 20:48:50 UTC) #1
Elliot Glaysher
11 years, 7 months ago (2009-04-29 21:01:04 UTC) #2
I was curious because of all the talk about cleaning this up. I found an email
from Patrick about why he implemented this feature this way:

"This is needed for Selenium support.  A common use case is to run Selenium
tests in two windows - one main window and another for the application under
test.  Selenium opens the new window for the AUT by calling window.open from its
onLoad handler.  Chrome treats this as an unsolicited pop-up and
minimizes/blocks it (rightfully so).  But of course in this case that's not the
desired effect (it's nice to see the tests running).  The common technique
Selenium uses with other browsers is to disable the pop-up blocker, so it makes
sense for Chrome to support that option too."

The actual code changes LGTM, but you may be breaking things downstream that use
Selenium. I'm not entirely sure.

Powered by Google App Engine
This is Rietveld 408576698