MozillaZine

[Ext]Session Manager 0.8.1.13 - January 30, 2017

Announce and Discuss the Latest Theme and Extension Releases.
tsfgm
 
Posts: 1
Joined: March 17th, 2017, 4:18 am

Post Posted March 17th, 2017, 4:32 am

I am not quite sure whether this is the right place for a feature request:

Is it possible to save a Session containing one or more Windows or Tabs from different Windows from the Crash Recovery Sessionmanager Window. ?

Background: Sometimes, after a crash it is necessary to NOT open all Tabs / Windows from the former Session. But when the Tabs should be kept, it would be useful to save them from the Recovery Window by selecting a window (Tab) or several. Then deactivate them from reopening and look for them later.

Or is there already an option to do this, I haven't found yet?

Alan Baxter
 
Posts: 4419
Joined: May 30th, 2005, 2:01 pm
Location: Colorado, USA

Post Posted March 17th, 2017, 4:48 am

Edit: I disabled the Work Offline extension from http://multi.nadenade.com/leafy/Mozilla/Offline/ extension. Session Manager seems to be working properly now.

Session Manager doesn't restore both windows of my auto-saved session after the update to Fx 52.0. The second window is blank and a popup is displayed with
This operation failed due to a file access error:
window.tabs is undefined(TypeError)

autosave.session

followed by what looks like a back trace of the call stack. After rolling back to Fx 51.0.1 the session restores correctly.

The session was created during Fx 51.0.1. "Show my windows and tabs from last time" has been selected for startup.
When Fx 52.0 was started, a popup said that my previous session had crashed. I've been getting that error popup for years everytime Fx is updated. As usual, I selected my named autosaved session to be restored. But this time only one window is properly restored, as I've described above.

I'm working around this issue by sticking with Fx 51.0.1, starting with the profile backup I routinely do before each Firefox update.

The full error message is
This operation failed due to a file access error:
window.tabs is undefined(TypeError)

autosave.session

SessionCookiesInternal.getHostsForWindow@resource://app/modules/sessionstore/SessionCookies.jsm:105:1
SessionCookiesInternal.update@resource://app/modules/sessionstore/SessionCookies.jsm:65:19
this.SessionCookies<.update@resource://app/modules/sessionstore/SessionCookies.jsm:28:5
SessionStoreInternal.getCurrentState@resource:///modules/sessionstore/SessionStore.jsm:2879:5
ssi_getBrowserState@resource:///modules/sessionstore/SessionStore.jsm:2074:17
ss_getBrowserState@resource:///modules/sessionstore/SessionStore.jsm:223:12
Private.getSessionState@chrome://sessionmanager/content/modules/session_data_processing.jsm:61:81
this.SessionDataProcessing.getSessionState@chrome://sessionmanager/content/modules/session_data_processing.jsm:32:10
Private.autoSaveCurrentSession@chrome://sessionmanager/content/modules/session_file_io.jsm:1207:17
Private.load@chrome://sessionmanager/content/modules/session_file_io.jsm:458:53
this.SessionIo.load@chrome://sessionmanager/content/modules/session_file_io.jsm:60:10
Private.session_load@chrome://sessionmanager/content/modules/session_manager.jsm:1183:3
this.gSessionManager.session_load@chrome://sessionmanager/content/modules/session_manager.jsm:102:10
SessionManagerEventHandlers.session_load@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///C:/Users/Alan%20Baxter/AppData/Roaming/Mozilla/Firefox/Profiles/5egv0ibw.newdef/extensions/%7B1280606b-2510-4fe0-97ef-9b5a22eafe30%7D.xpi!/bootstrap.js -> jar:file:///C:/Users/Alan%20Baxter/AppData/Roaming/Mozilla/Firefox/Profiles/5egv0ibw.newdef/extensions/%7B1280606b-2510-4fe0-97ef-9b5a22eafe30%7D.xpi!/packages/browserWindowOverlay.js:281:10

Hope this helps.

reikred
 
Posts: 5
Joined: May 26th, 2009, 1:48 pm

Post Posted March 20th, 2017, 11:23 am

I get an error pop-up window from SessionManager 0.8.1.13 that a session file is corrupted, but the error message does NOT show the name of the file. Can you please add the full /path/to/file to such error messages?

Actually, it would be great if also the main SM loading interface windows showed the underlying names of the files that are presented, in a separate (maybe optional) column, rather than just the internal name=something field from inside the file.
Same goes for file date, as opposed to the internally saved date in name= or in timestamp=.

Thx.
RR

Details:

------------------------------------------------------------

The session/window data is corrupted:
JSON.parse: expected ',' or '}' after property value in object at line 1 column 131135 of the JSON data(SyntaxError)

this.Utils.JSON_decode@chrome://sessionmanager/content/modules/utils.jsm:723:20
this.Utils.getCount@chrome://sessionmanager/content/modules/utils.jsm:609:49
Private.processReadSessionFile@chrome://sessionmanager/content/modules/session_file_io.jsm:1593:80
Private.readSessionFile@chrome://sessionmanager/content/modules/session_file_io.jsm:1724:12
Private.getSessions@chrome://sessionmanager/content/modules/session_file_io.jsm:1453:30
this.SessionIo.getSessions@chrome://sessionmanager/content/modules/session_file_io.jsm:167:10
Private.init@chrome://sessionmanager/content/modules/session_manager.jsm:420:18
this.gSessionManager.init@chrome://sessionmanager/content/modules/session_manager.jsm:37:10
SessionManagerEventHandlers.init@resource://gre/modules/addons/XPIProvider.jsm
->
jar:file:///home/USER/.mozilla/firefox/SALT.default/extensions/%7B1280606b-2510-4fe0-97ef-9b5a22eafe30%7D.xpi!/bootstrap.js
->
jar:file:///home/USER/.mozilla/firefox/SALT.default/extensions/%7B1280606b-2510-4fe0-97ef-9b5a22eafe30%7D.xpi!/packages/browserWindowOverlay.js:229:10

------------------------------------------------------------

reikred
 
Posts: 5
Joined: May 26th, 2009, 1:48 pm

Post Posted Today, 12:28 am

Morac,
"There was an error decrypting your session/window data. Most likely the session/window data is corrupted".

The session file in question was NOT encrypted. The json portion of the file had been pretty-printed, some fields had been removed, and in the header I had changed the name=[ blah ] line. The json portion of the file passed a jsonlint syntax checker.

Question: What exactly causes SM to think that a file is or is not "encrypted"? Is there an embedded comment, a magic cookie or anything like that which the pretty-printer may have discarded? Does SM require that the json portion of a session file is "packed" or "Dumped" or "serialized", as opposed to "pretty-printed"?

Morac

User avatar
 
Posts: 2512
Joined: February 9th, 2004, 8:20 pm

Post Posted Today, 5:42 am

reikred wrote:Morac,
"There was an error decrypting your session/window data. Most likely the session/window data is corrupted".

The session file in question was NOT encrypted. The json portion of the file had been pretty-printed, some fields had been removed, and in the header I had changed the name=[ blah ] line. The json portion of the file passed a jsonlint syntax checker.

Question: What exactly causes SM to think that a file is or is not "encrypted"? Is there an embedded comment, a magic cookie or anything like that which the pretty-printer may have discarded? Does SM require that the json portion of a session file is "packed" or "Dumped" or "serialized", as opposed to "pretty-printed"?


Is the setting to encrypt sessions enabled? A file is considered encrypted if the file does not contain any colons (:) since json always contains colons.

Return to Extension/Theme Releases


Who is online

Users browsing this forum: No registered users and 1 guest