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

Side by Side Diff: chrome/test/data/flash_embeds.html

Issue 2424293002: Fix <object data=> YouTube Flash rewrites. (Closed)
Patch Set: Changed the setup method to the one running on the main thread? Created 4 years, 2 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head></head> 3 <head></head>
4 <body> 4 <body>
5 </body> 5 </body>
6 <script> 6 <script>
7 function appendToDOM(url, type) { 7 function appendEmbedToDOM(url, type) {
8 var object = document.createElement("object"); 8 var object = document.createElement("object");
9 var embed = document.createElement("embed"); 9 var embed = document.createElement("embed");
10 embed.src = url; 10 embed.src = url;
11 embed.setAttribute("type", type); 11 embed.setAttribute("type", type);
12 object.appendChild(embed); 12 object.appendChild(embed);
13 document.body.appendChild(object); 13 document.body.appendChild(object);
14 } 14 }
15
16 function appendDataEmbedToDOM(url, type) {
17 var object = document.createElement("object");
18 object.setAttribute("data", url);
19 object.setAttribute("type", type);
20 document.body.appendChild(object);
21 }
15 </script> 22 </script>
16 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698