зеркало из https://github.com/mozilla/gecko-dev.git
Wallpaper for bug 514751 - malformed URI exception during session restore, r=dietrich
This commit is contained in:
Родитель
c9bfcd83f5
Коммит
22510f85c9
|
@ -2043,6 +2043,9 @@ SessionStoreService.prototype = {
|
|||
delete tab.__SS_extdata;
|
||||
|
||||
for (var i = 0; i < tabData.entries.length; i++) {
|
||||
//XXXzpao Wallpaper patch for bug 514751
|
||||
if (!tabData.entries[i].url)
|
||||
continue;
|
||||
history.addEntry(this._deserializeHistoryEntry(tabData.entries[i], aIdMap), true);
|
||||
}
|
||||
|
||||
|
@ -2183,6 +2186,9 @@ SessionStoreService.prototype = {
|
|||
|
||||
if (aEntry.children && shEntry instanceof Ci.nsISHContainer) {
|
||||
for (var i = 0; i < aEntry.children.length; i++) {
|
||||
//XXXzpao Wallpaper patch for bug 514751
|
||||
if (!aEntry.children[i].url)
|
||||
continue;
|
||||
shEntry.AddChild(this._deserializeHistoryEntry(aEntry.children[i], aIdMap), i);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче