commit c2dd531cec4e5db65d0b02570eb36c35160c27e1
parent 4d516c68bfa6ce8f9e9be05953d92e41936a99f7
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 22 Jun 2016 15:45:52 -0400
Fix waitForDialog() with modal dialogs in popup windows (e.g., prefs)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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