Bug 1504133 - Remove dead code from sessionrestore Talos test. r=aswan
authorMike Conley <mconley@mozilla.com>
Fri, 09 Nov 2018 14:03:30 +0000
changeset 445423 46dd8d73a77a7b3203e2e253a0a2c31cdbeb4276
parent 445422 ea40fb28a2bfa764020949c399ae79dd103e673b
child 445424 c6589add558c2147cd5e270630dd78c7423d1d45
push id35015
push userdluca@mozilla.com
push dateFri, 09 Nov 2018 17:45:20 +0000
treeherdermozilla-central@2f1158e5e0ce [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaswan
bugs1504133
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 1504133 - Remove dead code from sessionrestore Talos test. r=aswan Depends on D11260 Differential Revision: https://phabricator.services.mozilla.com/D11261
testing/talos/talos/startup_test/sessionrestore/addon/content/index.html
testing/talos/talos/startup_test/sessionrestore/addon/content/main.js
deleted file mode 100755
--- a/testing/talos/talos/startup_test/sessionrestore/addon/content/index.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<html>
-<head>
-
-<meta charset="UTF-8"/>
-<title>Session Restore Regression Test</title>
-
-<script type="text/javascript" src="chrome://pageloader/content/MozillaFileLogger.js"></script>
-<script type="text/javascript" src="resource://talos-powers/TalosContentProfiler.js"></script>
-<script type="text/javascript" src="resource://talos-powers/TalosPowersContent.js"></script>
-<script type="text/javascript" src="chrome://session-restore-test/content/main.js">
-</script>
-
-<div>
-  <strong>Time between sessionRestoreInit and sessionRestored</strong>
-  <span id="sessionRestoreInit-to-sessionRestored">
-  (in progress)
-  </span>
-</div>
-
-</body>
-</html>
deleted file mode 100755
--- a/testing/talos/talos/startup_test/sessionrestore/addon/content/main.js
+++ /dev/null
@@ -1,40 +0,0 @@
-"use strict";
-
-var Services = ChromeUtils.import("resource://gre/modules/Services.jsm", {}).Services;
-
-// Process Message Manager topics.
-const MSG_REQUEST = "session-restore-test?duration";
-const MSG_PROVIDE = "session-restore-test:duration";
-
-addEventListener("load", function() {
-  Services.cpmm.addMessageListener(MSG_PROVIDE,
-    /**
-     * Display the result, send it to the harness and quit.
-     */
-    async function finish(msg) {
-      console.log(`main.js: received data on ${MSG_PROVIDE}`, msg);
-      Services.cpmm.removeMessageListener(MSG_PROVIDE, finish);
-      var duration = msg.data.duration;
-      TalosContentProfiler.initFromURLQueryParams(location.search);
-      await TalosContentProfiler.pause("This test measures the time between sessionRestoreInit and sessionRestored, ignore everything around that");
-      await TalosContentProfiler.finishStartupProfiling();
-
-      // Show result on screen. Nice but not really necessary.
-      document.getElementById("sessionRestoreInit-to-sessionRestored").textContent = duration + "ms";
-
-      // Report data to Talos, if possible
-      dumpLog("__start_report" +
-              duration +
-              "__end_report\n\n");
-
-      // Next one is required by the test harness but not used
-      dumpLog("__startTimestamp" +
-              Date.now() + // eslint-disable-line mozilla/avoid-Date-timing
-              "__endTimestamp\n\n");
-      TalosPowersContent.goQuitApplication();
-  });
-
-  // In case the add-on has broadcasted the message before we were loaded,
-  // request a second broadcast.
-  Services.cpmm.sendAsyncMessage(MSG_REQUEST, {});
-});