Bug 1446940 followup to fix test breakage.
authorBoris Zbarsky <bzbarsky@mit.edu>
Wed, 01 Aug 2018 13:44:05 -0400
changeset 429707 e0d563f77c20377cc2d5dbeecff048e9008839a6
parent 429706 b04c9a64cd61394b559e4abaa6c7c490330db8f3
child 429708 9fb10f4b87651779edf5704864fd49ddbc696ffc
push id34372
push usernerli@mozilla.com
push dateThu, 02 Aug 2018 08:55:28 +0000
treeherdermozilla-central@bd79b07f57a3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1446940
milestone63.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 1446940 followup to fix test breakage.
xpfe/appshell/test/test_hiddenPrivateWindow.xul
--- a/xpfe/appshell/test/test_hiddenPrivateWindow.xul
+++ b/xpfe/appshell/test/test_hiddenPrivateWindow.xul
@@ -27,27 +27,23 @@ https://bugzilla.mozilla.org/show_bug.cg
 ChromeUtils.import('resource://gre/modules/Services.jsm');
 ChromeUtils.import('resource://gre/modules/PrivateBrowsingUtils.jsm');
 
 ok(Services.appShell.hiddenWindow, "hiddenWindow should exist");
 ok(Services.appShell.hiddenDOMWindow, "hiddenDOMWindow should exist");
 ok(Services.appShell.hiddenPrivateWindow, "hiddenPrivateWindow should exist");
 ok(Services.appShell.hiddenPrivateDOMWindow, "hiddenPrivateDOMWindow should exist");
 
-ok(!PrivateBrowsingUtils.isWindowPrivate(
-  Services.appShell
-          .hiddenWindow
-          .docShell
-          .domWindow,
-   "hiddenWindow should not be private");
+ok(
+  !PrivateBrowsingUtils.isWindowPrivate(
+    Services.appShell.hiddenWindow.docShell.domWindow),
+  "hiddenWindow should not be private");
 ok(!PrivateBrowsingUtils.isWindowPrivate(Services.appShell.hiddenDOMWindow), "hiddenDOMWindow should not be private");
-ok(PrivateBrowsingUtils.isWindowPrivate(
-  Services.appShell
-          .hiddenPrivateWindow
-          .docShell
-          .domWindow,
-   "hiddenPrivateWindow should be private");
+ok(
+  PrivateBrowsingUtils.isWindowPrivate(
+    Services.appShell.hiddenPrivateWindow.docShell.domWindow),
+  "hiddenPrivateWindow should be private");
 ok(PrivateBrowsingUtils.isWindowPrivate(Services.appShell.hiddenPrivateDOMWindow), "hiddenPrivateDOMWindow should be private");
 
 ]]>
 </script>
 
 </window>