Bug 1384048 - Update 212563-2.html to comply with new data: URI inheritance model. r=smaug
authorChristoph Kerschbaumer <ckerschb@christophkerschbaumer.com>
Tue, 25 Jul 2017 12:13:50 +0200
changeset 419713 1f9a88d629667f25790a5dcfac0d75b06075f834
parent 419712 ce8279252de845cf0e826d37019a5db59da8a18d
child 419714 547d9dfbbf671ab0a76afa315f112d5317defa1c
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1384048, 212563
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1384048 - Update 212563-2.html to comply with new data: URI inheritance model. r=smaug
layout/reftests/bugs/212563-2-inner.html
layout/reftests/bugs/212563-2-innermost-a.html
layout/reftests/bugs/212563-2-innermost-b.html
layout/reftests/bugs/212563-2.html
--- a/layout/reftests/bugs/212563-2-inner.html
+++ b/layout/reftests/bugs/212563-2-inner.html
@@ -1,9 +1,9 @@
 <html>
 <head>
 </head>
 <frameset resizable="yes" rows="100%" onload="parent.changeInnermost(document.getElementById(&quot;innermost&quot;))">
 
-  <frame id="innermost" src="data:text/html,<font color=red>old innermost"></frame>
+  <frame id="innermost" src="212563-2-innermost-b.html"></frame>
 
 </frameset>
 </html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/212563-2-innermost-a.html
@@ -0,0 +1,13 @@
+<body onload="w(parent.document, top);">
+<font color=blue>new innermost
+<script type="text/javascript">
+function w(md, t)
+{
+  t.p(0); 
+  md.write(t.replacementForMiddleFrame);
+  t.p(3);
+  t.p(md.documentElement.innerHTML); 
+  md.close(); 
+  t.p(4);
+}
+</script>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/212563-2-innermost-b.html
@@ -0,0 +1,1 @@
+<font color=red>old innermost
--- a/layout/reftests/bugs/212563-2.html
+++ b/layout/reftests/bugs/212563-2.html
@@ -5,32 +5,20 @@
 function p(n)
 {
   dump("Test 212563-2 says: " + n + "\n");
 }
 
 // Step 1: replace the innermost frame
 function changeInnermost(iframeElement)
 {
-  iframeElement.setAttribute("src", 
-    "data:text/html,<body onload='" + w + "w(parent.document, top);'><font color=blue>new innermost");
+  iframeElement.setAttribute("src", "212563-2-innermost-a.html");
 }
 
 // Step 2: replace the middle iframe (from the new innermost iframe's onload handler)
 var replacementForMiddleFrame = "<body onload=top.p(5);parent.document.documentElement.removeAttribute('class');>replacement for middle frame<script>top.p(2);<\/script><\/body>";
 
-function w(md, t)
-{
-  t.p(0); 
-  md.write(t.replacementForMiddleFrame);
-  t.p(3);
-  t.p(md.documentElement.innerHTML); 
-  md.close(); 
-  t.p(4);
-}
-
-
 </script>
 </head>
 <body>
 <iframe src="212563-2-inner.html"></iframe>
 </body>
 </html>