Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Commit

Permalink
Bug 795579 - waitFor method does not keep the timeout alive when cond…
Browse files Browse the repository at this point in the history
…ition is met. r=hskupin, r=dhunt
  • Loading branch information
Vlad Maniac authored and Vlad Maniac committed Oct 1, 2012
1 parent a137ba5 commit ec09a81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mozmill/mozmill/extension/resource/modules/utils.js
Expand Up @@ -22,6 +22,7 @@
// Adam Christian <adam.christian@gmail.com>
// Mikeal Rogers <mikeal.rogers@gmail.com>
// Henrik Skupin <hskupin@mozilla.com>
// Vlad Maniac <vmaniac@mozilla.com>
//
// Alternatively, the contents of this file may be used under the terms of
// either the GNU General Public License Version 2 or later (the "GPL"), or
Expand All @@ -45,6 +46,7 @@ var EXPORTED_SYMBOLS = ["openFile", "saveFile", "saveAsFile", "genBoiler",

const Ci = Components.interfaces;

var frame = {}; Components.utils.import('resource://mozmill/modules/frame.js', frame);

var hwindow = Components.classes["@mozilla.org/appshell/appShellService;1"]
.getService(Components.interfaces.nsIAppShellService)
Expand Down Expand Up @@ -485,6 +487,7 @@ function waitFor(callback, message, timeout, interval, thisObject) {
throw new TimeoutError(message);
}

frame.events.pass({'function':'utils.waitFor()'});
return true;
}

Expand Down

0 comments on commit ec09a81

Please sign in to comment.