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

Unified Diff: chrome_frame/test/data/window_open.html

Issue 15944007: Fix cross-window focus in Chrome Frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: only open popups once Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/external_tab_container_win.cc ('k') | chrome_frame/test/ie_event_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/data/window_open.html
diff --git a/chrome_frame/test/data/window_open.html b/chrome_frame/test/data/window_open.html
index 7708491140686ec72d431dc8a1960ec308d43035..2478c429acc06cb8a6d0ef03f13deb36d1ef643b 100644
--- a/chrome_frame/test/data/window_open.html
+++ b/chrome_frame/test/data/window_open.html
@@ -7,8 +7,10 @@
function OnClick() {
// Open popup to the url from the given query string.
var url = window.location.search.substring(1);
- new_window = window.open(url, "_blank",
- "left=10, top=10, height=250, width=250");
+ if (!new_window) {
+ new_window = window.open(url, "_blank",
+ "left=10, top=10, height=250, width=250");
+ }
}
function OnKeyPress() {
« no previous file with comments | « chrome/browser/ui/views/external_tab_container_win.cc ('k') | chrome_frame/test/ie_event_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698