Fix waitForDialog() with modal dialogs in popup windows (e.g., prefs)
This commit is contained in:
parent
4d516c68bf
commit
c2dd531cec
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue