From 6f808effffa50b8eb9e04ea3774f492517ee798a Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 20 Sep 2019 11:35:54 -0700 Subject: [PATCH] Bug 1553804: Follow-up: Fix another straggling chrome mochitest failure. r=bustage MANUAL PUSH: Bustage fix. --HG-- extra : amend_source : c8fecfa9ea6cf4867e58eba41b2092e636bbdac1 --- layout/xul/test/window_resizer.xul | 2 +- widget/tests/test_bug596600.xul | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/layout/xul/test/window_resizer.xul b/layout/xul/test/window_resizer.xul index 32599295cc72..9a8d76bd2fd7 100644 --- a/layout/xul/test/window_resizer.xul +++ b/layout/xul/test/window_resizer.xul @@ -90,7 +90,7 @@ function doTest() { }); window.close(); - window.opener.lastResizerTest(); + window.arguments[0].lastResizerTest(); } ]]> diff --git a/widget/tests/test_bug596600.xul b/widget/tests/test_bug596600.xul index e91bed377d6b..07ef9c358edf 100644 --- a/widget/tests/test_bug596600.xul +++ b/widget/tests/test_bug596600.xul @@ -32,9 +32,11 @@ function moveMouseTo(x, y, andThen) { } function openWindows() { - gLeftWindow = open('empty_window.xul', '_blank', 'chrome,screenX=50,screenY=50,width=200,height=200'); + gLeftWindow = window.docShell.rootTreeItem.domWindow + .open('empty_window.xul', '_blank', 'chrome,screenX=50,screenY=50,width=200,height=200'); SimpleTest.waitForFocus(function () { - gRightWindow = open('empty_window.xul', '', 'chrome,screenX=300,screenY=50,width=200,height=200'); + gRightWindow = window.docShell.rootTreeItem.domWindow + .open('empty_window.xul', '', 'chrome,screenX=300,screenY=50,width=200,height=200'); SimpleTest.waitForFocus(attachBrowserToLeftWindow, gRightWindow); }, gLeftWindow); }