MozillaZine

[Ext] SessionSaver .2d: new (rewrite)

Announce and Discuss the Latest Theme and Extension Releases.
rue
 
Posts: 673
Joined: June 10th, 2003, 2:20 pm

Post Posted January 27th, 2004, 4:51 pm

Steve or Xanager:
I've wrapped each major area in a try-block. If anything fails, it will throw a numbered alert: <a href="http://adblock.mozdev.org/sessionsaver/sessionsaver-02-dev.xpi">Installer</a>, and <a href="http://adblock.mozdev.org/sessionsaver/sessionsaver.jar">jar-file</a>.
.
This should show us where the problem is.

Xanager
 
Posts: 23
Joined: January 23rd, 2004, 4:38 pm

Post Posted January 27th, 2004, 5:05 pm

Okay, when I open up the browser I get:

catch-2: permission denied to get property UnnamedClass.classes

When I open up a link in a new window I get:

catch-4: TypeError: this.hiddenHash has no properties

edit: I also get a catch-6 when I attempt to close a tab. It's a long failure code.

rue
 
Posts: 673
Joined: June 10th, 2003, 2:20 pm

Post Posted January 27th, 2004, 5:20 pm

Alright- those errors are patched for. I'll dig through lxr.mozilla later and see if/when Components are properly initialized in the Hidden Window. For now, the observer-obj just leeches the necessary services from the first browser.
.
Try the above links, again.

Xanager
 
Posts: 23
Joined: January 23rd, 2004, 4:38 pm

Post Posted January 27th, 2004, 5:25 pm

still all the same errors.

rue
 
Posts: 673
Joined: June 10th, 2003, 2:20 pm

Post Posted January 27th, 2004, 5:43 pm

New build posted -- thanks for hangin' in there.

[update: private testing now underway. I'll post back when FB-compatibility lands.
.
pm, to join the test-crew]

rue
 
Posts: 673
Joined: June 10th, 2003, 2:20 pm

Post Posted January 29th, 2004, 4:35 am

SessionSaver .2d (re-announced): <a href="http://adblock.mozdev.org/sessionsaver/sessionsaver-02-dev.xpi">Installer</a>, and <a href="http://adblock.mozdev.org/sessionsaver/sessionsaver.jar">jar-file</a>.
.
<a href="http://forums.mozillazine.org/profile.php?mode=viewprofile&u=2403">TychoQuad</a> and I pulled an all-nighter. We've done our homework, and this time, it supports Firebird -- quite thoroughly.
.
You're welcome.

TychoQuad
 
Posts: 1263
Joined: December 11th, 2002, 12:30 am
Location: Australia

Post Posted January 29th, 2004, 4:43 am

Yes, we really did work all night... well, mostly for rue. I got some daytime. :)

Xanager
 
Posts: 23
Joined: January 23rd, 2004, 4:38 pm

Post Posted January 29th, 2004, 6:08 am

Thanks for your hard work!

rob_z11

User avatar
 
Posts: 73
Joined: September 25th, 2003, 10:19 am
Location: Florida, US

Post Posted January 29th, 2004, 8:19 am

Thanks for all your hard work. It is working very nice. Thanks again.


One question though? I am missing options in toolbar which store/restore sessions?

rue
 
Posts: 673
Joined: June 10th, 2003, 2:20 pm

Post Posted January 29th, 2004, 8:52 am

rob:
It's all automatic now, so the manual controls were removed. By default, your last session is always restored -- even if you crash.
.
If you're using Firebird, you can disable auto-load in the extension-panel "options". Mozilla users will have a "SessionSaver" item in the Tools-menu.

rob_z11

User avatar
 
Posts: 73
Joined: September 25th, 2003, 10:19 am
Location: Florida, US

Post Posted January 29th, 2004, 9:11 am

Thanks. Great work. It works great..

Old miahz
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted January 29th, 2004, 10:02 am

couldn't this method be used for saving states when switching users/profiles? something kinda like fast user switching. you could switch to another profile, and upon return have all your windows, tabs, history, etc restored.

this of course depends on profile switching being added to firebird - i believe it already works in mozilla, but i'm not sure - i don't use it.

some related threads:
http://forums.mozillazine.org/viewtopic.php?t=12775
http://forums.mozillazine.org/viewtopic.php?t=40745

the only relevant bug i could find:
http://bugzilla.mozilla.org/show_bug.cgi?id=214193


this is a great extension. the latest build works pretty much as advertised. sometimes it doesn't save the scroll position, and other small stuff like that, but crash recovery is awesome.

rue
 
Posts: 673
Joined: June 10th, 2003, 2:20 pm

Post Posted January 29th, 2004, 10:10 am

miahz:
Have you noted if unsaved scroll-positions are specific to certain sites?
.
And, in theory, switching profiles would retain each user's session. If this proves otherwise, I can easily add it in.

Old miahz
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted January 29th, 2004, 11:41 am

right, well i was thinking more of a seamless feature, where it would retain and reload sessions specifically on a profile switch, similar to a crash "non-exit" - even if you have the auto- options turned off. but you're right, i guess it probably would work just as well with the auto- options on. i guess i brot it up because i have them off - i want my normal homepage to start up under normal circumstances; i'm pretty much just using it for crash recovery.

as for specific pages, about:config was one of them. can you maybe explain a little how it works? like how often is the savesession string in the prefs updated? i noticed a few times when i was testing the auto restore that sometimes the "current" tab was incorrect, and some scroll positions weren't right - as if it wasn't updated in a minute or so before i exited.

also, some sites that use cookies, like shopping sites don't reload properly all the time.

rue
 
Posts: 673
Joined: June 10th, 2003, 2:20 pm

Post Posted January 29th, 2004, 12:17 pm

Ah- about:config is a generated list, which doesn't have a trappable scrollbar property. I'll dig a bit more, but so far I've come up empty-handed. It annoys me too :P
.
Regarding pref-saving: every time a tab finishes loading, the containing window's session-string is stored. To prevent thrashing, a timer only allows one save every 10sec's. It's also supposed to recapture your current session on shutdown, but, clearly that's not happening. I thought this was fixed: look for an update momentarily.

.
ps: and sites that expire on browser-close will never recall.

Return to Extension/Theme Releases


Who is online

Users browsing this forum: No registered users and 7 guests