Bug 497730 - Restore session from crash while loading multiple tabs opens multiple about:blanks, r=zeniko

This commit is contained in:
Paul O’Shannessy 2009-09-10 15:57:01 -07:00
Родитель 30531f883d
Коммит 76081df617
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -1176,6 +1176,14 @@ SessionStoreService.prototype = {
tabData.entries[0] = { url: browser.currentURI.spec };
tabData.index = 1;
}
else if (browser.currentURI.spec == "about:blank" &&
browser.userTypedValue) {
// This can happen if the user opens a lot of tabs simultaneously and we
// try to save state before all of them are properly loaded. If we crash
// then we get a bunch of about:blank tabs which isn't what we want.
tabData.entries[0] = { url: browser.userTypedValue };
tabData.index = 1;
}
var disallow = [];
for (var i = 0; i < CAPABILITIES.length; i++)