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

Unified 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 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
index 0b945d4984f31b30ed12df55f1fb63f33d6e6ba1..11d6c731fdc29654e7b2a1095a3bdd8f0500d25c 100644
--- a/chrome/test/data/flash_embeds.html
+++ b/chrome/test/data/flash_embeds.html
@@ -4,7 +4,7 @@
<body>
</body>
<script>
- function appendToDOM(url, type) {
+ function appendEmbedToDOM(url, type) {
var object = document.createElement("object");
var embed = document.createElement("embed");
embed.src = url;
@@ -12,5 +12,12 @@
object.appendChild(embed);
document.body.appendChild(object);
}
+
+ function appendDataEmbedToDOM(url, type) {
+ var object = document.createElement("object");
+ object.setAttribute("data", url);
+ object.setAttribute("type", type);
+ document.body.appendChild(object);
+ }
</script>
</html>

Powered by Google App Engine
This is Rietveld 408576698