MozillaZine

Choose tabs to restore on "Restore Session"

Discussion about official Mozilla Firefox builds
Mikha777

User avatar
 
Posts: 44
Joined: April 19th, 2011, 11:23 am

Post Posted November 30th, 2011, 10:59 pm

Here is the solution:

How to get the “well, this is embarrassing” screen every time you start Firefox:


Go to your Firefox installation folder, navigate to components directory, and open nsSessionStore.js. Search for this:

/**
* write a state object to disk
*/
_saveStateObject: function sss_saveStateObject(aStateObj) {

Add this code after it:

aStateObj = { windows: [{ tabs: [{ entries: [{
url: "about:sessionrestore",
formdata: { "#sessionData": this._toJSONString(aStateObj) }
}] }] }] };

The above code will force Firefox to always save the session data wrapped inside the session store page. That will force Firefox to show the “Well, this is embarrassing” page when restoring.

James
Moderator

User avatar
 
Posts: 27633
Joined: June 18th, 2003, 3:07 pm
Location: Made in Canada

Post Posted December 1st, 2011, 1:41 am

Locking due to old age. Please stop bumping the old threads (over a year) thank you.

Return to Firefox Builds


Who is online

Users browsing this forum: No registered users and 3 guests