Bug 1353584 - replace setTimeout with requestIdleCallback in _delayedCapture and return early on about: page in _shouldCapture. r=mconley

MozReview-Commit-ID: DaAcOTFBY6Q
This commit is contained in:
Perry Jiang
2017-07-28 10:46:55 -07:00
parent a668074d99
commit d391dd7ff6
2 changed files with 34 additions and 12 deletions

View File

@@ -221,7 +221,7 @@ function whenFileExists(aURL, aCallback = next) {
callback = () => whenFileExists(aURL, aCallback);
}
executeSoon(callback);
setTimeout(callback, 0);
}
/**