Closed Bug 364912 Opened 18 years ago Closed 17 years ago

Disabling "Restore previous session" dialog

Categories

(Firefox :: Session Restore, enhancement)

x86
Linux
enhancement
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: ps, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20061124 BonEcho/2.0
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20061124 BonEcho/2.0

It will be helpful, if that annoying dialog could be disabled by some
entry of preferences dialog.

Reproducible: Always

Steps to Reproduce:
It happens after every log-out of X-session, when firefox is not manually closed.
> It will be helpful, if that annoying dialog could be disabled by some
> entry of preferences dialog.

Try the hidden pref about:config -> browser.sessionstore.resume_from_crash.

> It happens after every log-out of X-session, when firefox is not manually
> closed.

That sounds like a bug.  It's usually not a good idea to add a UI feature (especially a pref) just to work around a bug.

There is a similar problem on Windows; see bug 333907.
This is actually a feature - unless the browser is closed explicitly by the user, the session restore feature doesn't know if the user intended to close the browser, and therefore presents the user with the session restore dialog. As noted in #1, there is a hidden preference for turning session restore off. 
Component: Startup and Profile System → Session Restore
QA Contact: startup → session.restore
Version: unspecified → Trunk
I'm going to confirm this since it's probably going to be up to a module owner/peer to decide if the behavior described is a bug or a feature. I myself consider it desired behavior, but apparently, at least one person disagrees.

Status: UNCONFIRMED → NEW
Ever confirmed: true
This is already possible through the following two prefs:

* browser.sessionstore.resume_from_crash -- set to "false" to default to "Start New Session"
* browser.sessionstore.restore_prompt_uri -- set to "javascript:window.close();" (without the quotes) to default to "Restore Session" (that pref is however mostly targeted at extension authors to replace the standard dialog with a more elaborate - and disablable - one, as e.g. seen in the Session Manager extension)

-> WORKSFORME
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.