Bug 1206921 Remove obsolete test r=kmag
authorAndrew Swan <aswan@mozilla.com>
Fri, 30 Nov 2018 02:41:12 +0000
changeset 508129 8a30088cd2b2446add5d4ec4bf2813eecc792b04
parent 508128 04278c8117a33780adeace5cae0bee2f746ced27
child 508130 b9d92fc39034b25e4c8e1215d92e863335f7a018
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskmag
bugs1206921
milestone65.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 1206921 Remove obsolete test r=kmag Differential Revision: https://phabricator.services.mozilla.com/D13480
toolkit/mozapps/extensions/test/mochitest/file_bug687194.xpi
toolkit/mozapps/extensions/test/mochitest/mochitest.ini
toolkit/mozapps/extensions/test/mochitest/test_bug687194.html
deleted file mode 100644
index e215cffad8adaffef673b509f414a48e93e1ee4b..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
GIT binary patch
literal 0
Hc$@<O00001
--- a/toolkit/mozapps/extensions/test/mochitest/mochitest.ini
+++ b/toolkit/mozapps/extensions/test/mochitest/mochitest.ini
@@ -1,8 +1,5 @@
 [DEFAULT]
 support-files =
   file_empty.html
-  file_bug687194.xpi
 
-[test_bug687194.html]
-skip-if = e10s || os == "android" # this test creates its own child process, no need to run it in e10s
 [test_bug887098.html]
deleted file mode 100644
--- a/toolkit/mozapps/extensions/test/mochitest/test_bug687194.html
+++ /dev/null
@@ -1,134 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-  <title>Test for registering/unregistering chrome OOP</title>
-  <script type="application/javascript"
-          src="/tests/SimpleTest/SimpleTest.js">
-  </script>
-  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
-</head>
-<body>
-
-  <script type="application/javascript">
-    "use strict";
-
-    SimpleTest.waitForExplicitFinish();
-
-    const childFrameURL =
-      "data:text/html,<!DOCTYPE HTML><html><body></body></html>";
-
-    function childFrameScript() {
-      "use strict";
-
-      /* global Ci, Cu, addMessageListener */
-
-      ChromeUtils.import("resource://gre/modules/Services.jsm");
-
-      let cr =
-          Cc["@mozilla.org/chrome/chrome-registry;1"]
-            .getService(Ci.nsIXULChromeRegistry);
-      addMessageListener("test687194:resolveChromeURI", function(message) {
-        let result;
-        let threw = false;
-        try {
-            let uri = Services.io.newURI(message.data.URI);
-            result = cr.convertChromeURL(uri).spec;
-        } catch (e) {
-            threw = true;
-            result = "EXCEPTION: " + e;
-        }
-
-        message.target.sendAsyncMessage("test687194:resolveChromeURI:Answer",
-                                        { threw, result });
-      });
-    }
-
-    let test;
-    async function* testStructure(mm) {
-      let lastResult;
-
-      mm.addMessageListener("test687194:resolveChromeURI:Answer", SpecialPowers.wrapCallback(function(msg) {
-        test.next(msg.data);
-      }));
-
-      mm.sendAsyncMessage("test687194:resolveChromeURI",
-                          { URI: "chrome://bug687194/content/e10sbug.js" });
-      lastResult = yield;
-      is(lastResult.threw, true, "URI shouldn't resolve to begin with");
-
-      let { AddonManager } = SpecialPowers.Cu.import("resource://gre/modules/AddonManager.jsm", {});
-      const INSTALL_URI =
-        "http://mochi.test:8888/tests/toolkit/mozapps/extensions/test/mochitest/file_bug687194.xpi";
-      let install = await AddonManager.getInstallForURL(INSTALL_URI, "application/x-xpinstall");
-      install = SpecialPowers.wrap(install);
-      install.addListener(SpecialPowers.wrapCallbackObject({
-        /* eslint no-shadow: 0 */
-        onInstallEnded(install, addon) {
-          SimpleTest.executeSoon(() => test.next(addon));
-        },
-      }));
-      install.install();
-
-      let addon = SpecialPowers.wrap(yield);
-
-      mm.sendAsyncMessage("test687194:resolveChromeURI",
-                          { URI: "chrome://bug687194/content/e10sbug.js" });
-      lastResult = yield;
-      is(lastResult.threw, false, "able to resolve after the installation");
-
-      let listener = SpecialPowers.wrapCallbackObject({
-        onUninstalled(removedAddon) {
-          if (removedAddon.id === addon.id) {
-            AddonManager.removeAddonListener(listener);
-            SimpleTest.executeSoon(() => test.next());
-          }
-        },
-      });
-      AddonManager.addAddonListener(listener);
-      addon.uninstall();
-
-      yield;
-
-      mm.sendAsyncMessage("test687194:resolveChromeURI",
-                          { URI: "chrome://bug687194/content/e10sbug.js" });
-      lastResult = yield;
-      is(lastResult.threw, true, "should have unregistered the URI");
-      SimpleTest.finish();
-    }
-
-    function runTests() {
-      info("Browser prefs set.");
-
-      let iframe = document.createElement("iframe");
-      SpecialPowers.wrap(iframe).mozbrowser = true;
-      iframe.id = "iframe";
-      iframe.src = childFrameURL;
-
-      iframe.addEventListener("mozbrowserloadend", function() {
-        info("Got iframe load event.");
-        let mm = SpecialPowers.getBrowserFrameMessageManager(iframe);
-        mm.loadFrameScript("data:,(" + childFrameScript.toString() + ")();",
-                           false);
-
-        test = testStructure(mm);
-        test.next();
-      });
-
-      document.body.appendChild(iframe);
-    }
-
-    addEventListener("load", function() {
-      info("Got load event.");
-
-      SpecialPowers.addPermission("browser", true, document);
-      SpecialPowers.pushPrefEnv({
-        "set": [
-          ["dom.ipc.browser_frames.oop_by_default", true],
-          ["dom.mozBrowserFramesEnabled", true],
-          ["browser.pagethumbnails.capturing_disabled", true],
-        ],
-      }, runTests);
-    });
-  </script>
-</body>
-</html>