Backed out changeset 158eb97dfd5e (bug 1552441) for browser-chrome failures in dom/tests/browser/browser_unlinkable_about_page_can_load_module_scripts.js. CLOSED TREE
authorDorel Luca <dluca@mozilla.com>
Mon, 20 May 2019 22:41:11 +0300
changeset 474574 eb1763edca85fb806e76a65a7a7a9ea80bf19a65
parent 474573 f0d9b81a5aedaad55a49c61a951989f1e385c2cc
child 474575 82c5f729f369d6048a82d4a14a9c7a1bd76f744d
push id36042
push userdvarga@mozilla.com
push dateTue, 21 May 2019 04:19:40 +0000
treeherdermozilla-central@ca560ff55451 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1552441
milestone69.0a1
backs out158eb97dfd5e6b18f6a13cbf4e648b361deb1a41
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
Backed out changeset 158eb97dfd5e (bug 1552441) for browser-chrome failures in dom/tests/browser/browser_unlinkable_about_page_can_load_module_scripts.js. CLOSED TREE
dom/tests/browser/.eslintrc.js
dom/tests/browser/browser.ini
dom/tests/browser/browser_unlinkable_about_page_can_load_module_scripts.js
dom/tests/browser/file_load_module_script.html
dom/tests/browser/file_module_loaded.js
dom/tests/browser/file_script_loaded.js
deleted file mode 100644
--- a/dom/tests/browser/.eslintrc.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict";
-
-module.exports = {
-  overrides: [
-    {
-      files: [
-        "file_module_loaded.js",
-      ],
-      parserOptions: {
-        sourceType: "module",
-      },
-    },
-  ],
-  "extends": [
-    "plugin:mozilla/browser-test"
-  ]
-};
--- a/dom/tests/browser/browser.ini
+++ b/dom/tests/browser/browser.ini
@@ -74,21 +74,16 @@ support-files =
 [browser_test_new_window_from_content.js]
 tags = openwindow
 skip-if = toolkit == 'android'  || (os == "linux" && debug) # see bug 1261495 for Linux debug time outs
 support-files =
   test_new_window_from_content_child.html
 [browser_test_toolbars_visibility.js]
 support-files =
   test_new_window_from_content_child.html
-[browser_unlinkable_about_page_can_load_module_scripts.js]
-support-files =
-  file_load_module_script.html
-  file_module_loaded.js
-  file_script_loaded.js
 [browser_xhr_sandbox.js]
 [browser_noopener.js]
 skip-if = (verify && debug && (os == 'linux'))
 support-files =
   test_noopener_source.html
   test_noopener_target.html
 [browser_noopener_null_uri.js]
 [browser_wakelock.js]
deleted file mode 100644
--- a/dom/tests/browser/browser_unlinkable_about_page_can_load_module_scripts.js
+++ /dev/null
@@ -1,54 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-"use strict";
-
-const kTestPage = getRootDirectory(gTestPath) + "file_load_module_script.html";
-
-const kAboutPagesRegistered = Promise.all([
-  BrowserTestUtils.registerAboutPage(
-    registerCleanupFunction, "test-linkable-page", kTestPage,
-    Ci.nsIAboutModule.URI_SAFE_FOR_UNTRUSTED_CONTENT | Ci.nsIAboutModule.MAKE_LINKABLE),
-  BrowserTestUtils.registerAboutPage(
-    registerCleanupFunction, "test-unlinkable-page", kTestPage,
-    Ci.nsIAboutModule.ALLOW_SCRIPT),
-]);
-
-add_task(async function() {
-  await kAboutPagesRegistered;
-
-  let consoleListener = {
-    observe() {
-      errorCount++;
-      if (shouldHaveJSError) {
-        ok(true, "JS error is expected and received");
-      } else {
-        ok(false, "Unexpected JS error was received");
-      }
-    },
-  };
-  Services.console.registerListener(consoleListener);
-  registerCleanupFunction(() => Services.console.unregisterListener(consoleListener));
-
-  let shouldHaveJSError = true;
-  let errorCount = 0;
-  await BrowserTestUtils.withNewTab({gBrowser, url: "about:test-linkable-page"}, async (browser) => {
-    await ContentTask.spawn(browser, null, () => {
-      isnot(content.document.body.textContent, "scriptLoaded",
-        "The page content shouldn't be changed on the linkable page");
-    });
-  });
-  ok(errorCount > 0, "Should have an error when loading test-linkable-page, got " + errorCount);
-
-  shouldHaveJSError = false;
-  errorCount = 0;
-  await BrowserTestUtils.withNewTab({gBrowser, url: "about:test-unlinkable-page"}, async (browser) => {
-    await ContentTask.spawn(browser, null, () => {
-      is(content.document.body.textContent, "scriptLoaded",
-        "The page content should be changed on the unlinkable page");
-    });
-  });
-  is(errorCount, 0, "Should have no errors when loading test-unlinkable-page");
-});
deleted file mode 100644
--- a/dom/tests/browser/file_load_module_script.html
+++ /dev/null
@@ -1,8 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-  <meta http-equiv="Content-Security-Policy" content="default-src *"/>
-  <script type="module" src="chrome://mochitests/content/browser/dom/tests/browser/file_script_loaded.js"></script>
-</head>
-<body></body>
-</html>
deleted file mode 100644
--- a/dom/tests/browser/file_module_loaded.js
+++ /dev/null
@@ -1,3 +0,0 @@
-"use strict";
-
-import "file_script_loaded";
deleted file mode 100644
--- a/dom/tests/browser/file_script_loaded.js
+++ /dev/null
@@ -1,5 +0,0 @@
-"use strict";
-
-document.addEventListener("DOMContentLoaded", () => {
-  document.body.textContent = "scriptLoaded";
-});