diff --git a/test/content/support.js b/test/content/support.js index 559f6f519..c4922e5c4 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