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

Unified Diff: chrome/test/data/flash_embeds.html

Issue 2154233003: Rewrite YouTube Flash embeds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/flash_embeds.html
diff --git a/chrome/test/data/flash_embeds.html b/chrome/test/data/flash_embeds.html
new file mode 100644
index 0000000000000000000000000000000000000000..c617420d3f425cb1af2ce8c9b1802801248a2b17
--- /dev/null
+++ b/chrome/test/data/flash_embeds.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+ <head></head>
+ <body>
+ <script>
+ function appendToDOM(url) {
+ var object = document.createElement("object");
+ var embed = document.createElement("embed");
+ embed.src = url;
+ object.appendChild(embed);
+ document.getElementsByTagName('body')[0].appendChild(object);
mlamouri (slow - plz ping) 2016/07/30 17:46:06 `document.body` is shorter than `document.getEleme
kdsilva 2016/08/01 12:42:44 Done.
+ }
+ </script>
+ </body>
mlamouri (slow - plz ping) 2016/07/30 17:46:06 Can you close the body before opening the script?
kdsilva 2016/08/01 12:42:45 Done.
+</html>

Powered by Google App Engine
This is Rietveld 408576698