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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <title>window open</title> 3 <title>window open</title>
4 <script type="text/javascript"> 4 <script type="text/javascript">
5 var new_window; 5 var new_window;
6 6
7 function OnClick() { 7 function OnClick() {
8 // Open popup to the url from the given query string. 8 // Open popup to the url from the given query string.
9 var url = window.location.search.substring(1); 9 var url = window.location.search.substring(1);
10 new_window = window.open(url, "_blank", 10 if (!new_window) {
11 "left=10, top=10, height=250, width=250"); 11 new_window = window.open(url, "_blank",
12 "left=10, top=10, height=250, width=250");
13 }
12 } 14 }
13 15
14 function OnKeyPress() { 16 function OnKeyPress() {
15 var char_code = String.fromCharCode(event.keyCode); 17 var char_code = String.fromCharCode(event.keyCode);
16 if (char_code == 'c') { 18 if (char_code == 'c') {
17 new_window.close(); 19 new_window.close();
18 } 20 }
19 } 21 }
20 </script> 22 </script>
21 </head> 23 </head>
22 <body onkeypress="OnKeyPress();" onclick="OnClick();"> 24 <body onkeypress="OnKeyPress();" onclick="OnClick();">
23 ChromeFrame full tab mode window open popup test 25 ChromeFrame full tab mode window open popup test
24 </body> 26 </body>
25 </html> 27 </html>
OLDNEW
« 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