Bug 1397656 - Update tests within editor/ to comply with new toplevel data: URI navigation policy. r=masayuki
☠☠ backed out by 78ab7b444a9c ☠ ☠
authorChristoph Kerschbaumer <ckerschb@christophkerschbaumer.com>
Thu, 07 Sep 2017 12:51:08 +0200
changeset 379489 f42e4a61d6a5e0ecd932702ebc4fe5f7e9453c30
parent 379488 281a5532ea19ff3c90e3899031059b258104d6db
child 379490 4fbe6972d2974789acaeb97369a7becc83cba4db
push id94681
push usermozilla@christophkerschbaumer.com
push dateThu, 07 Sep 2017 15:39:16 +0000
treeherdermozilla-inbound@f42e4a61d6a5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmasayuki
bugs1397656
milestone57.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 1397656 - Update tests within editor/ to comply with new toplevel data: URI navigation policy. r=masayuki
editor/libeditor/tests/browser.ini
editor/libeditor/tests/bug527935.html
editor/libeditor/tests/bug527935_2.html
editor/libeditor/tests/file_bug635636_2.html
editor/libeditor/tests/file_bug966155.html
editor/libeditor/tests/file_bug966552.html
editor/libeditor/tests/mochitest.ini
editor/libeditor/tests/test_bug635636.html
editor/libeditor/tests/test_bug966155.html
editor/libeditor/tests/test_bug966552.html
--- a/editor/libeditor/tests/browser.ini
+++ b/editor/libeditor/tests/browser.ini
@@ -1,6 +1,8 @@
 [browser_bug527935.js]
 skip-if = toolkit == 'android'
-support-files = bug527935.html
+support-files =
+  bug527935.html
+  bug527935_2.html
 [browser_bug629172.js]
 skip-if = toolkit == 'android'
 support-files = bug629172.html
--- a/editor/libeditor/tests/bug527935.html
+++ b/editor/libeditor/tests/bug527935.html
@@ -1,11 +1,11 @@
 <!DOCTYPE HTML>
 <html>
 <body>
 <div id="content">
   <iframe id="formTarget" name="formTarget"></iframe>
-  <form action="data:text/html," target="formTarget">
+  <form action="bug527935_2.html" target="formTarget">
     <input name="test" id="initValue"><input type="submit">
   </form>
 </div>
 </body>
 </html
new file mode 100644
--- /dev/null
+++ b/editor/libeditor/tests/bug527935_2.html
@@ -0,0 +1,1 @@
+<html><body>dummy page</body></html>
new file mode 100644
--- /dev/null
+++ b/editor/libeditor/tests/file_bug635636_2.html
@@ -0,0 +1,1 @@
+<html><body>2</body></html>
new file mode 100644
--- /dev/null
+++ b/editor/libeditor/tests/file_bug966155.html
@@ -0,0 +1,1 @@
+<input><iframe onload="contentDocument.designMode = 'on';">
new file mode 100644
--- /dev/null
+++ b/editor/libeditor/tests/file_bug966552.html
@@ -0,0 +1,1 @@
+<body onload="document.designMode='on'">test</body>
--- a/editor/libeditor/tests/mochitest.ini
+++ b/editor/libeditor/tests/mochitest.ini
@@ -7,19 +7,22 @@ support-files =
   data/cfhtml-nocontext.txt
   file_bug289384-1.html
   file_bug289384-2.html
   file_bug549262.html
   file_bug586662.html
   file_bug611182.html
   file_bug611182.sjs
   file_bug635636.xhtml
+  file_bug635636_2.html
   file_bug674770-1.html
   file_bug795418-2.sjs
   file_bug915962.html
+  file_bug966155.html
+  file_bug966552.html
   file_select_all_without_body.html
   green.png
   spellcheck.js
 
 [test_bug46555.html]
 [test_bug200416.html]
 [test_bug289384.html]
 skip-if = os != "mac"
--- a/editor/libeditor/tests/test_bug635636.html
+++ b/editor/libeditor/tests/test_bug635636.html
@@ -33,17 +33,17 @@ addLoadEvent(async function() {
 
   function unloadWindow(aWindow)
   {
     return new Promise(resolve => {
       aWindow.addEventListener("unload", () => {
         ok(true, "The window has been unloaded");
         SimpleTest.executeSoon(() => { resolve(0); });
       }, { once: true });
-      aWindow.location = "data:text/plain,2";
+      aWindow.location = "file_bug635636_2.html";
     });
   }
 
   let contentWindow = await openNewWindow("file_bug635636.xhtml");
 
   contentWindow.addEventListener("load", () => { ok(true, "load"); });
   contentWindow.addEventListener("pageshow", () => { ok(true, "pageshow"); });
 
--- a/editor/libeditor/tests/test_bug966155.html
+++ b/editor/libeditor/tests/test_bug966155.html
@@ -19,17 +19,17 @@ https://bugzilla.mozilla.org/show_bug.cg
 SimpleTest.waitForExplicitFinish();
 
 addLoadEvent(function() {
   SpecialPowers.pushPrefEnv({"set": [
     ["security.data_uri.unique_opaque_origin", false]]}, nextTest);
 });
 
 function nextTest() {
-  var win = window.open("data:text/html,<input><iframe onload=\"contentDocument.designMode = 'on';\">", "", "test-966155");
+  var win = window.open("file_bug966155.html", "", "test-966155");
   win.addEventListener("load", function() {
     runTest(win);
   }, {once: true});
 }
 
 function runTest(win) {
   SimpleTest.waitForFocus(function() {
     var doc = win.document;
--- a/editor/libeditor/tests/test_bug966552.html
+++ b/editor/libeditor/tests/test_bug966552.html
@@ -19,17 +19,17 @@ https://bugzilla.mozilla.org/show_bug.cg
 SimpleTest.waitForExplicitFinish();
 
 addLoadEvent(function() {
   SpecialPowers.pushPrefEnv({"set": [
     ["security.data_uri.unique_opaque_origin", false]]}, nextTest);
 });
 
 function nextTest() {
-  var win = window.open("data:text/html,<body onload=\"document.designMode='on'\">test</body>", "", "test-966552");
+  var win = window.open("file_bug966552.html", "", "test-966552");
   win.addEventListener("load", function() {
     runTest(win);
   }, {once: true});
 }
 
 function runTest(win) {
   SimpleTest.waitForFocus(function() {
     var doc = win.document;