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

Side by Side Diff: chrome_frame/test/data/simple_object_focus.html

Issue 7276037: Remove NPAPI support from Chrome Frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 <!-- saved from url=(0014)about:internet --> 1 <!-- saved from url=(0014)about:internet -->
2 <html> 2 <html>
3 <!-- This page is meant to load inside the host browser like IE/FF --> 3 <!-- This page is meant to load inside the host browser like IE/FF -->
4 <head> 4 <head>
5 <script type="text/javascript" src="chrome_frame_tester_helpers.js"></script> 5 <script type="text/javascript" src="chrome_frame_tester_helpers.js"></script>
6 <script type="text/javascript"> 6 <script type="text/javascript">
7 var g_failure_timeout = null; 7 var g_failure_timeout = null;
8 var g_test_id = 1; 8 var g_test_id = 1;
9 var g_test_name = "ObjectFocus"; 9 var g_test_name = "ObjectFocus";
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 status("unexpected message: " + evt.data + " from " + evt.origin); 58 status("unexpected message: " + evt.data + " from " + evt.origin);
59 } else { 59 } else {
60 window.clearTimeout(g_failure_timeout); 60 window.clearTimeout(g_failure_timeout);
61 g_failure_timeout = null; 61 g_failure_timeout = null;
62 status("success"); 62 status("success");
63 } 63 }
64 onSuccess(g_test_name, g_test_id); 64 onSuccess(g_test_name, g_test_id);
65 } 65 }
66 66
67 function getCf() { 67 function getCf() {
68 // Fetching chrome frame with getElementById doesn't work in Firefox.
69 // Most likely due to object vs embed.
70 return document.ChromeFrame; 68 return document.ChromeFrame;
71 } 69 }
72 70
73 // Useful while writing and debugging the unit test. 71 // Useful while writing and debugging the unit test.
74 function status(s) { 72 function status(s) {
75 var panel = document.getElementById("status_panel"); 73 var panel = document.getElementById("status_panel");
76 panel.innerHTML = s; 74 panel.innerHTML = s;
77 } 75 }
78 76
79 </script> 77 </script>
80 </head> 78 </head>
81 <body onload="onLoad();"> 79 <body onload="onLoad();">
82 <div id="status_panel" style="border: 1px solid red; width: 100%"> 80 <div id="status_panel" style="border: 1px solid red; width: 100%">
83 Test running.... 81 Test running....
84 </div> 82 </div>
85 <object id="ChromeFrame" width="300" height="60" tabindex="0" 83 <object id="ChromeFrame" width="300" height="60" tabindex="0"
86 codebase="http://www.google.com" 84 codebase="http://www.google.com"
87 classid="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A"> 85 classid="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A">
88 <param name="onload" value="return OnChromeFrameLoaded();"> 86 <param name="onload" value="return OnChromeFrameLoaded();">
89 <embed width="300" height="60" name="ChromeFrame" 87 <embed width="300" height="60" name="ChromeFrame"
90 onload="return OnChromeFrameLoaded();" 88 onload="return OnChromeFrameLoaded();"
91 type="application/chromeframe"> 89 type="application/chromeframe">
92 </embed> 90 </embed>
93 </object> 91 </object>
94 </body> 92 </body>
95 </html> 93 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698