Open Bug 1956647 Opened 1 month ago Updated 5 days ago

Firefox does not restore open the tabs if another instance was started using the same profile on Windows

Categories

(Firefox :: Session Restore, defect)

Firefox 136
defect

Tracking

()

UNCONFIRMED

People

(Reporter: bugzilla.mozilla.org, Unassigned)

Details

Steps to reproduce:

I have been seeing this since a few versions, didn't start with 136.

I have my profile configured to open some default websites, but normally if I restart Firefox it will merely restore the previously opened tab.

Sometimes I want a tab to live in "its own instance" and pull it onto the task bar so it becomes a top-level window.

Actual results:

The new Firefox window opens, but aside from the tab that was pulled to the taskbar it opens the configured start tabs.

Closing these two instances in any order, the next time I restart Firefox, all my tab states are gone and I am starting over.

Expected results:

I would be expecting the tabs from the last closed instance to be restored upon restart. This doesn't happen, though.

The Bugbug bot thinks this bug should belong to the 'Toolkit::Startup and Profile System' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Startup and Profile System
Product: Firefox → Toolkit

I have my profile configured to open some default websites, but normally if I restart Firefox it will merely restore the previously opened tab.

Could you explain in more detail how you have configured your profile to open multiple default websites?

I would be expecting the tabs from the last closed instance to be restored upon restart.

At the top of about:preferences, is the "Open previous windows and tabs" checkbox checked?

Flags: needinfo?(bugzilla.mozilla.org)

(In reply to Jared Hirsch [:jhirsch] (he/him) (Needinfo please) from comment #2)

I have my profile configured to open some default websites, but normally if I restart Firefox it will merely restore the previously opened tab.

Could you explain in more detail how you have configured your profile to open multiple default websites?

Sure, in the Home "tab" inside the Settings I have separated several URLs with | which then open by default unless there is an old session to restore.

I would be expecting the tabs from the last closed instance to be restored upon restart.

At the top of about:preferences, is the "Open previous windows and tabs" checkbox checked?

Yes, it is.

The issue "only" happens when another window gets opened from the same profile. So of course I am trying to avoid this. Alas, there are two frequent reasons why avoidance isn't enough:

  1. opening files associated with Firefox will sometimes create a new window
  2. if I closed the previous instance but unknowingly it still hasn't completely terminated, this will also result in a new window which doesn't restore the previous session but instead starts with the default URLs
Flags: needinfo?(bugzilla.mozilla.org)

This seems like a session restore bug. Redirecting.

Component: Startup and Profile System → Session Restore
Product: Toolkit → Firefox

This reads like the exact scenario that Taskbar Tabs is intended to address. Do you want to track or dupe this nrishel?

Flags: needinfo?(nrishel)

Sounds like a similar use case. Albeit the issue as described reads like it's asking to infer the "primary" window when multiple are preset, and restore the likely primary window, but then "Closing these two instances in any order..." would imply otherwise?

Testing right now: pulling out a tab, closing it, then closing the primary window, then reopening reopens the primary window. So I'm unclear what is being reported.

:Oliver could you clarify what you're experiencing, perhaps with a video so we can ensure we understand the bug you're describing?

Flags: needinfo?(nrishel) → needinfo?(bugzilla.mozilla.org)

The issue isn't so much about which window is the primary one (although from the technical side it may boil down to that distinction), but that there are cases where I don't consciously create a new window (which I am consciously trying to avoid), but instead a hanging instance without visible top-level window causes the issue and instead of restoring the previous tabs (of the hanging instance) starts over from scratch.

Due to the fact that individual browser processes may still be running without any visible indication one will only ever notice this after the fact. There's a slim chance that I am interpreting it wrong and the actual underlying cause here has been the hang all along.

[:nrishel] I'll try to see if I can provide you with a clip or so based on a more or less empty profile.

Flags: needinfo?(bugzilla.mozilla.org)
You need to log in before you can comment on or make changes to this bug.