Bug 1383835 - Increase the amount of time TPS waits after a tab sync before continuing r?markh
MozReview-Commit-ID: 1cvmtpkjSbX
--- a/services/sync/tps/extensions/tps/resource/tps.jsm
+++ b/services/sync/tps/extensions/tps/resource/tps.jsm
@@ -320,21 +320,21 @@ var TPS = {
let that = this;
let taburi = tab.uri;
BrowserTabs.Add(tab.uri, function() {
that._tabsFinished++;
Logger.logInfo("tab for " + taburi + " finished loading");
if (that._tabsFinished == that._tabsAdded) {
Logger.logInfo("all tabs loaded, continuing...");
- // Wait a second before continuing to be sure tabs can be synced,
- // otherwise we can get 'error locating tab'
+ // Wait some time before continuing to be sure tabs can be synced,
+ // otherwise we can get 'error locating tab' (bug 1383832).
Utils.namedTimer(function() {
that.FinishAsyncOperation();
- }, 1000, this, "postTabsOpening");
+ }, 2500, this, "postTabsOpening");
}
});
break;
case ACTION_VERIFY:
Logger.AssertTrue(typeof(tab.profile) != "undefined",
"profile must be defined when verifying tabs");
Logger.AssertTrue(
BrowserTabs.Find(tab.uri, tab.title, tab.profile), "error locating tab");