Bug 1221992 - Fix test using GetMostRecentWindow from the child process. r=smaug
☠☠ backed out by 5b71c7baa255 ☠ ☠
authorCatalin Badea <catalin.badea392@gmail.com>
Fri, 04 Dec 2015 19:14:44 +0200
changeset 275691 ad20808dd3c4cf475b1c7b71a2df15aabf2f3166
parent 275690 7cdcda3e65fb4ee83c223b60fcbec876fb92925c
child 275692 7e717a810420851e1acabfbbb44dd3238d396974
push id68908
push usercatalin.badea392@gmail.com
push dateFri, 04 Dec 2015 17:15:02 +0000
treeherdermozilla-inbound@ad20808dd3c4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1221992
milestone45.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 1221992 - Fix test using GetMostRecentWindow from the child process. r=smaug
dom/bindings/test/test_exception_options_from_jsimplemented.html
dom/bindings/test/test_promise_rejections_from_jsimplemented.html
--- a/dom/bindings/test/test_exception_options_from_jsimplemented.html
+++ b/dom/bindings/test/test_exception_options_from_jsimplemented.html
@@ -13,17 +13,17 @@ https://bugzilla.mozilla.org/show_bug.cg
   /** Test for Bug 1107592 **/
 
   SimpleTest.waitForExplicitFinish();
 
   function doTest() {
     var file = location.href;
     var asyncFrame;
     /* Async parent frames from pushPrefEnv don't show up in e10s.  */
-    var isE10S = !SpecialPowers.Services.wm.getMostRecentWindow("navigator:browser");
+    var isE10S = !SpecialPowers.isMainProcess();
     if (!isE10S && SpecialPowers.getBoolPref("javascript.options.asyncstack")) {
       asyncFrame = `Async*@${file}:153:1
 `;
     } else {
       asyncFrame = "";
     }
 
     var t = new TestInterfaceJS();
--- a/dom/bindings/test/test_promise_rejections_from_jsimplemented.html
+++ b/dom/bindings/test/test_promise_rejections_from_jsimplemented.html
@@ -33,17 +33,17 @@ https://bugzilla.mozilla.org/show_bug.cg
 
   function ensurePromiseFail(testNumber, value) {
     ok(false, "Test " + testNumber + " should not have a fulfilled promise");
   }
 
   function doTest() {
     var t = new TestInterfaceJS();
     /* Async parent frames from pushPrefEnv don't show up in e10s.  */
-    var isE10S = !SpecialPowers.Services.wm.getMostRecentWindow("navigator:browser");
+    var isE10S = !SpecialPowers.isMainProcess();
     var asyncStack = SpecialPowers.getBoolPref("javascript.options.asyncstack");
     var ourFile = location.href;
     var parentFrame = (asyncStack && !isE10S) ? `Async*@${ourFile}:121:1
 ` : "";
 
     Promise.all([
       t.testPromiseWithThrowingChromePromiseInit().then(
           ensurePromiseFail.bind(null, 1),