Bug 1377861 - Update reftests to comply with new data: URI inheritance model. r=smaug
☠☠ backed out by 9e22971fe341 ☠ ☠
authorChristoph Kerschbaumer <ckerschb@christophkerschbaumer.com>
Thu, 06 Jul 2017 14:45:56 +0200
changeset 416379 7529213e33752241cbc645f8d206c283959e074f
parent 416378 e831d66e4deb0b883eed0ed436eb9f232df3b4e6
child 416380 43e0e2747b9bfa4089b3b380b56379fa3ee78d8d
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
bugs1377861
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 1377861 - Update reftests to comply with new data: URI inheritance model. r=smaug
dom/html/reftests/autofocus/autofocus-leaves-iframe-ref.html
dom/html/reftests/autofocus/autofocus-leaves-iframe.html
dom/html/reftests/body-frame-margin-remove-other-pres-hint-ref.html
dom/html/reftests/body-frame-margin-remove-other-pres-hint.html
editor/reftests/824080-2-ref.html
editor/reftests/824080-2.html
editor/reftests/824080-4-ref.html
editor/reftests/824080-4.html
editor/reftests/caret_on_presshell_reinit-2.html
editor/reftests/caret_on_presshell_reinit-ref.html
editor/reftests/caret_on_presshell_reinit.html
layout/reftests/bugs/474472-1-ref.html
layout/reftests/bugs/474472-1.html
layout/reftests/scrolling/iframe-border-radius-ref.html
layout/reftests/scrolling/iframe-border-radius.html
--- a/dom/html/reftests/autofocus/autofocus-leaves-iframe-ref.html
+++ b/dom/html/reftests/autofocus/autofocus-leaves-iframe-ref.html
@@ -6,12 +6,12 @@
     {
       frames[0].document.getElementsByTagName('input')[0].onfocus = function() {
         document.documentElement.removeAttribute('class');
       }
       frames[0].document.getElementsByTagName('input')[0].focus();
     }
   </script>
   <body onload="loadHandler();">
-    <iframe src="data:text/html,<input>"></iframe>
+    <iframe srcdoc="<input>"></iframe>
     <input></input>
   </body>
 </html>
--- a/dom/html/reftests/autofocus/autofocus-leaves-iframe.html
+++ b/dom/html/reftests/autofocus/autofocus-leaves-iframe.html
@@ -6,11 +6,11 @@
     {
       var i = document.createElement('input');
       i.autofocus = true;
       document.body.appendChild(i);
       setTimeout(document.documentElement.removeAttribute('class'), 0);
     }
   </script>
   <body>
-    <iframe onload="frameLoadHandler();" src="data:text/html,<input autofocus>"></iframe>
+    <iframe onload="frameLoadHandler();" srcdoc="<input autofocus>"></iframe>
   </body>
 </html>
--- a/dom/html/reftests/body-frame-margin-remove-other-pres-hint-ref.html
+++ b/dom/html/reftests/body-frame-margin-remove-other-pres-hint-ref.html
@@ -4,11 +4,11 @@
     <title></title>
 </head>
 <body>
 <script type="text/javascript">
     function loadFrame() {
         document.documentElement.className = "";
     }
 </script>
-<iframe id=frame onload="loadFrame()" src="data:text/html,<body><span lang='en'>text</span></body>" marginwidth="100px" marginheight="100px" width=300px height=300px></iframe>
+<iframe id=frame onload="loadFrame()" srcdoc="<body><span lang='en'>text</span></body>" marginwidth="100px" marginheight="100px" width=300px height=300px></iframe>
 </body>
 </html>
\ No newline at end of file
--- a/dom/html/reftests/body-frame-margin-remove-other-pres-hint.html
+++ b/dom/html/reftests/body-frame-margin-remove-other-pres-hint.html
@@ -6,11 +6,11 @@
 <body>
 <script type="text/javascript">
     function loadFrame() {
         let frame = document.getElementById('frame');
         frame.contentDocument.body.removeAttribute('lang');
         document.documentElement.className = "";
     }
 </script>
-<iframe id=frame onload="loadFrame()" src="data:text/html,<body lang='en'>text</body>" marginwidth="100px" marginheight="100px"  width=300px height=300px></iframe>
+<iframe id=frame onload="loadFrame()" srcdoc="<body lang='en'>text</body>" marginwidth="100px" marginheight="100px"  width=300px height=300px></iframe>
 </body>
 </html>
\ No newline at end of file
--- a/editor/reftests/824080-2-ref.html
+++ b/editor/reftests/824080-2-ref.html
@@ -11,12 +11,12 @@
       editor.focus();
       editor.blur();
     }
   </script>
 </head>
 <body>
 <p id="text">normal text</p>
 <iframe id="editor" onload="doTest();"
-  src="data:text/html,<body>editable text</body>"></iframe>
+  srcdoc="<body>editable text</body>"></iframe>
 </body>
 </html>
 
--- a/editor/reftests/824080-2.html
+++ b/editor/reftests/824080-2.html
@@ -11,12 +11,12 @@
       editor.focus();
       editor.blur();
     }
   </script>
 </head>
 <body>
 <p id="text">normal text</p>
 <iframe id="editor" onload="doTest();"
-  src="data:text/html,<script>document.designMode='on';</script><body>editable text</body>"></iframe>
+  srcdoc="<script>document.designMode='on';</script><body>editable text</body>"></iframe>
 </body>
 </html>
 
--- a/editor/reftests/824080-4-ref.html
+++ b/editor/reftests/824080-4-ref.html
@@ -10,12 +10,12 @@
       editor.contentDocument.getSelection().selectAllChildren(editorBody);
     }
   </script>
 </head>
 <body>
 <p id="text">normal text</p>
 <div>content editable</div>
 <iframe id="editor" onload="doTest();"
-  src="data:text/html,<body>editable text</body>"></iframe>
+  srcdoc="<body>editable text</body>"></iframe>
 </body>
 </html>
 
--- a/editor/reftests/824080-4.html
+++ b/editor/reftests/824080-4.html
@@ -15,12 +15,12 @@
       editor2.blur();
     }
   </script>
 </head>
 <body>
 <p>normal text</p>
 <div id="editor1" contenteditable>content editable</div>
 <iframe id="editor2" onload="doTest();"
-  src="data:text/html,<script>document.designMode='on';</script><body>editable text</body>"></iframe>
+  srcdoc="<script>document.designMode='on';</script><body>editable text</body>"></iframe>
 </body>
 </html>
 
--- a/editor/reftests/caret_on_presshell_reinit-2.html
+++ b/editor/reftests/caret_on_presshell_reinit-2.html
@@ -1,12 +1,12 @@
 <!DOCTYPE html>
 <html class="reftest-wait">
   <body>
-    <iframe src="data:text/html,<body><div></div></body>"></iframe>
+    <iframe srcdoc="<body><div></div></body>"></iframe>
     <script type="text/javascript">
       onload = function() {
         var i = document.querySelector("iframe");
         var win = i.contentWindow;
         var doc = win.document;
         var div = doc.querySelector("div");
         win.getSelection().collapse(div, 0);
         i.focus();
--- a/editor/reftests/caret_on_presshell_reinit-ref.html
+++ b/editor/reftests/caret_on_presshell_reinit-ref.html
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <html>
   <body>
     <div style="position: absolute">
-      <iframe src="data:text/html,<body contenteditable>foo</body>"></iframe>
+      <iframe srcdoc="<body contenteditable>foo</body>"></iframe>
     </div>
     <script type="text/javascript">
       onload = function() {
         var iframe = document.querySelector("iframe");
         var win = iframe.contentWindow;
         var body = win.document.body;
         iframe.focus();
         body.focus();
--- a/editor/reftests/caret_on_presshell_reinit.html
+++ b/editor/reftests/caret_on_presshell_reinit.html
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <html>
   <body>
     <div>
-      <iframe src="data:text/html,<body contenteditable>foo</body>"></iframe>
+      <iframe srcdoc="<body contenteditable>foo</body>"></iframe>
     </div>
     <script type="text/javascript">
       onload = function() {
         var div = document.querySelector("div");
         div.style.position = "absolute";
         document.body.clientWidth;
         var iframe = document.querySelector("iframe");
         var win = iframe.contentWindow;
--- a/layout/reftests/bugs/474472-1-ref.html
+++ b/layout/reftests/bugs/474472-1-ref.html
@@ -1,6 +1,6 @@
 <!DOCTYPE html>
 <html>
   <body>
-    <iframe id="foo" src="data:text/html,<body bgcolor='lime'>PASS</body>"></iframe>
+    <iframe id="foo" srcdoc="<body bgcolor='lime'>PASS</body>"></iframe>
   </body>
 </html>
--- a/layout/reftests/bugs/474472-1.html
+++ b/layout/reftests/bugs/474472-1.html
@@ -1,12 +1,12 @@
 <!DOCTYPE html>
 <html class="reftest-wait">
   <body>
-    <iframe id="foo" src="data:text/html,<body bgcolor='red'>FAIL</body>"></iframe> 
+    <iframe id="foo" srcdoc="<body bgcolor='red'>FAIL</body>"></iframe> 
     <script type="text/javascript">
       // Globals
       var foo = document.getElementById('foo');
       var win = foo.contentWindow;
 
       // Start the chain of execution when iframe's window loads
       win.onload = iframeWindowLoaded;
 
--- a/layout/reftests/scrolling/iframe-border-radius-ref.html
+++ b/layout/reftests/scrolling/iframe-border-radius-ref.html
@@ -1,12 +1,12 @@
 <!DOCTYPE HTML>
 <html class="reftest-wait">
 <body>
-<iframe src="data:text/html,<body style='font-size:100px; overflow:hidden; background:white;'><p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty"
+<iframe srcdoc="<body style='font-size:100px; overflow:hidden; background:white;'><p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty"
         id="f" style="width:500px; height:500px; border-radius:100px; border:none;"></iframe>
 <script>
 var f = document.getElementById("f");
 function doTest() {
   f.contentWindow.scrollTo(0, 80);
   document.documentElement.removeAttribute('class');
 }
 document.addEventListener("MozReftestInvalidate", doTest);
--- a/layout/reftests/scrolling/iframe-border-radius.html
+++ b/layout/reftests/scrolling/iframe-border-radius.html
@@ -1,12 +1,12 @@
 <!DOCTYPE HTML>
 <html class="reftest-wait">
 <body>
-<iframe src="data:text/html,<body style='font-size:100px; overflow:hidden; background:white;'><p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty"
+<iframe srcdoc="<body style='font-size:100px; overflow:hidden; background:white;'><p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty"
         id="f" style="width:500px; height:500px; border-radius:100px; border:none;"></iframe>
 <script>
 var f = document.getElementById("f");
 var count = 0;
 function doTest() {
   ++count;
   f.contentWindow.scrollTo(0, count*20);
   if (count == 4) {