Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

session restore: start with home page if last tab closed with Ctrl+W

5 views
Skip to first unread message

Mikel Ward

unread,
May 16, 2007, 2:08:44 AM5/16/07
to
I am using Firefox 2 with the "When Firefox starts: Show my windows
and tabs from last time" option set (browser.startup.page=3).

I have the "Always show the tab bar" option set to false, which is the
default (browser.tabs.autoHide=true).

I really like the way Firefox restores my previous session. Often I
will need to restart Firefox or restart my computer, so I'll quit
Firefox using File->Exit, and this feature allows me to pick up where
I left off.

Where it doesn't work for me is when I've done browsing. I want to be
able to close each tab with File->Close Tab (Ctrl+W) and have it never
appear again unless I choose it to. With session restoration enabled,
if I've closed all the other tabs and only have one tab open, then I
close that tab with Ctrl+W, I am shown that page again when I start
Firefox. In that situation, I pressed Ctrl+W to indicate that I was
done with that page and wanted to close it, rather than I wanted to
quit Firefox (which was just the necessary side-effect), so I should
show be taken to my home page.

Make sense?

Mikel Ward

unread,
May 16, 2007, 3:05:25 AM5/16/07
to
Seems related to bug 343876 (https://bugzilla.mozilla.org/show_bug.cgi?
id=343876), altho that might only be for browser.tabs.autoHide=false.

Myk Melez

unread,
May 16, 2007, 4:29:12 AM5/16/07
to Mikel Ward
Mikel Ward wrote:
> I want to be
> able to close each tab with File->Close Tab (Ctrl+W) and have it never
> appear again unless I choose it to. With session restoration enabled,
> if I've closed all the other tabs and only have one tab open, then I
> close that tab with Ctrl+W, I am shown that page again when I start
> Firefox. In that situation, I pressed Ctrl+W to indicate that I was
> done with that page and wanted to close it, rather than I wanted to
> quit Firefox (which was just the necessary side-effect), so I should
> show be taken to my home page.

Makes sense to me. Seems like the problem is that we're failing to call
sessionstore to update the stored session info to take the tab closure
into account after the tab gets closed but before the application quits.

In other words, we're doing this:

user says "close last tab"
tab closes
browser quits

When we should be doing this:

user says "close last tab"
tab closes
sessionstore updates stored session info
browser quits

But 343876 seems like a different bug. In that situation, closing the
last tab does not quit the browser or even close the tab, it just loads
about:blank in the tab. So sessionstore *does* update the stored
session info, and if the user then quits and restarts they see a blank
tab (i.e. their previous session).

In that case session restore is actually working as designed, but the
bug reporter thinks it would be more useful for Firefox to display the
user's home page instead of the "empty" previous session. So I think
you should file a new bug report about the problem you are experiencing.

-myk

Mikel Ward

unread,
May 16, 2007, 9:54:42 PM5/16/07
to
Filed bug 380953 (https://bugzilla.mozilla.org/show_bug.cgi?
id=380953).

0 new messages