Bug 1383835 - Increase the amount of time TPS waits after a tab sync before continuing r?markh draft
authorThom Chiovoloni <tchiovoloni@mozilla.com>
Mon, 24 Jul 2017 14:01:03 -0400
changeset 614542 1c0b4398a3a8a36892e3ee4f46f15ebea8184144
parent 614478 b8d5c1d7bf82ad052da3e846f8882f04b53a40c9
child 638889 82551c2877760ef87e801b9f0c7a2a15a5932683
push id70038
push userbmo:tchiovoloni@mozilla.com
push dateMon, 24 Jul 2017 18:03:47 +0000
reviewersmarkh
bugs1383835
milestone56.0a1
Bug 1383835 - Increase the amount of time TPS waits after a tab sync before continuing r?markh MozReview-Commit-ID: 1cvmtpkjSbX
services/sync/tps/extensions/tps/resource/tps.jsm
--- 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");