From c2dd531cec4e5db65d0b02570eb36c35160c27e1 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 22 Jun 2016 15:45:52 -0400 Subject: [PATCH] Fix waitForDialog() with modal dialogs in popup windows (e.g., prefs) --- test/content/support.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/content/support.js b/test/content/support.js index 559f6f519c..c4922e5c4c 100644 --- a/test/content/support.js +++ b/test/content/support.js @@ -74,7 +74,7 @@ function waitForWindow(uri, callback) { .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIDOMWindow); // Give window code time to run on load - setTimeout(function () { + win.setTimeout(function () { if (callback) { try { // If callback is a promise, wait for it