Session store is initialized as
Code: Select all
sessionStore : Cc["@mozilla.org/browser/sessionstore;1"].
getService(Ci.nsISessionStore)
Code: Select all
sessionStore.setTabValue(aTab, this.TAB_DATA_IDENTIFIER, JSON.stringify({ straitjacket: aId }));
Code: Select all
restoreTab : function(aTab) {
let data = sessionStore.getTabValue(aTab, this.SJ_TAB_IDENTIFIER);
Console.log("restore data length is "+data.length);
The only thing I can think of is that the tab being queried isn't the same as the one saved, somehow. Is there a way to verify that I am checking the correct tab? AFAIK the event target of the SSRestoring handler ought to return the correct tab.