Don't use deprecated catch-if.

See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1228841
This commit is contained in:
YUKI Hiroshi 2015-12-01 11:27:50 +09:00
parent ac33dbccb5
commit 17526f7940

View File

@ -218,11 +218,13 @@ var TreeStyleTabBookmarksServiceEditable = inherit(TreeStyleTabBookmarksService,
this._doProgressivelyTimers[name] = window.setTimeout(progressiveIteration, interval);
}
}
catch(e if e instanceof StopIteration) {
aParams.onComplete();
}
catch(e) {
Components.utils.reportError(e);
if (e instanceof StopIteration) {
aParams.onComplete();
}
else {
Components.utils.reportError(e);
}
}
finally {
this._doProgressivelyTimers[name] = null;