Fix wrong use of RestoringTabsData.get()
This commit is contained in:
parent
e75ec2c289
commit
a7c9d2b80a
@ -809,7 +809,7 @@
|
|||||||
if (aTab.linkedBrowser.__SS_restoreState == 1) {
|
if (aTab.linkedBrowser.__SS_restoreState == 1) {
|
||||||
let data = aTab.linkedBrowser.__SS_data;
|
let data = aTab.linkedBrowser.__SS_data;
|
||||||
if (!data && this.SessionStoreNS.RestoringTabsData) // Firefox 23-
|
if (!data && this.SessionStoreNS.RestoringTabsData) // Firefox 23-
|
||||||
data = this.SessionStoreNS.RestoringTabsData.get(aTab);
|
data = this.SessionStoreNS.RestoringTabsData.get(aTab.linkedBrowser);
|
||||||
let entry = data.entries[Math.min(data.index, data.entries.length-1)];
|
let entry = data.entries[Math.min(data.index, data.entries.length-1)];
|
||||||
if (entry) return entry.url;
|
if (entry) return entry.url;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user