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

Side by Side Diff: chrome/test/data/nacl/pnacl_url_loader/pnacl_url_loader.html

Issue 2978703002: Remove all calls to domAutomationController.setAutomationId. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « chrome/test/data/nacl/pnacl_mime_type/pnacl_mime_type.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <script> 1 <script>
2 window.addEventListener('load', function() { 2 window.addEventListener('load', function() {
3 init(); 3 init();
4 }, false); 4 }, false);
5 5
6 function init() { 6 function init() {
7 var embed = document.createElement('embed'); 7 var embed = document.createElement('embed');
8 embed.addEventListener('message', function(message) { 8 embed.addEventListener('message', function(message) {
9 window.domAutomationController.setAutomationId(0);
10 window.domAutomationController.send(message.data); 9 window.domAutomationController.send(message.data);
11 }, false); 10 }, false);
12 embed.addEventListener('load', function() { 11 embed.addEventListener('load', function() {
13 embed.postMessage(location.hash.substr(1)); 12 embed.postMessage(location.hash.substr(1));
14 }, false); 13 }, false);
15 embed.src = 'pnacl_url_loader.nmf'; 14 embed.src = 'pnacl_url_loader.nmf';
16 embed.type = 'application/x-pnacl'; 15 embed.type = 'application/x-pnacl';
17 document.body.appendChild(embed); 16 document.body.appendChild(embed);
18 } 17 }
19 </script> 18 </script>
OLDNEW
« no previous file with comments | « chrome/test/data/nacl/pnacl_mime_type/pnacl_mime_type.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698