Fix wrong use of RestoringTabsData.get()

This commit is contained in:
YUKI Hiroshi 2013-05-07 16:25:07 +09:00
parent e75ec2c289
commit a7c9d2b80a

View File

@ -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;
} }