Bug 1458375 - Talos tests that use TalosPowersContent.goQuitApplication(); shouldn't close their windows. r?rwood draft
authorMike Conley <mconley@mozilla.com>
Tue, 29 May 2018 12:42:26 -0400
changeset 806906 3671cb4a05e726bd367dc0dcd42a60e78044caee
parent 806905 2dccba6ff0013558abcbdc031e176f55a7f0e143
child 806907 68b436d08670064db113b1819e7e344e5e27a190
push id112986
push usermconley@mozilla.com
push dateTue, 12 Jun 2018 19:30:14 +0000
reviewersrwood
bugs1458375
milestone62.0a1
Bug 1458375 - Talos tests that use TalosPowersContent.goQuitApplication(); shouldn't close their windows. r?rwood goQuitApplication does the work of closing all windows anyways, so closing the window is superfluous. goQuitApplication is also going to be checking for certain operations to be finished before doing that, which could be influenced by closing a window early. MozReview-Commit-ID: 9gJ0ZRn753F
testing/talos/talos/startup_test/tresize/addon/content/tresize-test.html
testing/talos/talos/startup_test/tspaint_test.html
--- a/testing/talos/talos/startup_test/tresize/addon/content/tresize-test.html
+++ b/testing/talos/talos/startup_test/tresize/addon/content/tresize-test.html
@@ -20,17 +20,16 @@ function logResults(data) {
   if (typeof dumpLog != "undefined") {
     data.forEach(function(line) {
       dumpLog(line);
     });
 
 
     window.setTimeout(function() {
       TalosPowersContent.goQuitApplication();
-      window.close();
     }, 0);
   } else {
     alert(data[0].split("__start_report")[1].split("__end_report")[0]);
   }
 }
 
 </script>
 </head>
--- a/testing/talos/talos/startup_test/tspaint_test.html
+++ b/testing/talos/talos/startup_test/tspaint_test.html
@@ -54,17 +54,16 @@ function dumpConsoleAndQuit() {
 
   // Close window asynchronously, there might still be startup operations that still need to run
   window.setTimeout(function() {
     if (window.dump) {
       // eslint-disable-next-line mozilla/avoid-Date-timing
       dumpLog("__startTimestamp" + Date.now() + "__endTimestamp\n");
     }
     TalosPowersContent.goQuitApplication();
-    window.close();
   }, 0);
 }
 
 window.addEventListener("MozAfterPaint", painted, true);
 setTimeout(failed, 5000);
 
 </script>
 <body></body>