From f727362bb3750b0521d3a94767a926dbf69f26bc Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Sun, 4 Jun 2006 07:10:27 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20338661:=20tabs=20are=20blank=20during=20s?= =?UTF-8?q?ession=20restoration,=20patch=20by=20Simon=20B=EF=BF=BDnzli=20,=20r=3Dmconnor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- browser/components/sessionstore/src/nsSessionStore.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/browser/components/sessionstore/src/nsSessionStore.js b/browser/components/sessionstore/src/nsSessionStore.js index cc4d11456bd..815b2d985d0 100644 --- a/browser/components/sessionstore/src/nsSessionStore.js +++ b/browser/components/sessionstore/src/nsSessionStore.js @@ -1253,6 +1253,15 @@ SessionStoreService.prototype = { } } + // mark the tabs as loading (at this point about:blank + // has completed loading in all tabs, so it won't interfere) + for (t = 0; t < aTabs.length; t++) { + var tab = aTabs[t]._tab; + tab.setAttribute("busy", "true"); + tabbrowser.updateIcon(tab); + tabbrowser.setTabTitleLoading(tab); + } + // make sure to restore the selected tab first (if any) if (aSelectTab-- && aTabs[aSelectTab]) { aTabs.unshift(aTabs.splice(aSelectTab, 1)[0]); @@ -1316,7 +1325,7 @@ SessionStoreService.prototype = { }); Array.filter(tab.attributes, function(aAttr) { return (_this.xulAttributes.indexOf(aAttr.name) > -1); - }).forEach(tab.removeAttribute, tab); + }).forEach(tab.removeAttribute, tab); if (tabData.xultab) { tabData.xultab.split(" ").forEach(function(aAttr) { if (/^([^\s=]+)=(.*)/.test(aAttr)) {