Closed Bug 2019321 Opened 6 months ago Closed 11 days ago

A new tab opens up each time the browser restarts

Categories

(Enterprise Products :: Firefox, defect)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: lburuian, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [size=1.5])

Attachments

(2 files)

Found in

  • Firefox Enterprise 149.0a1 (2026-02-21)

Tested platforms

  • Affected platforms: All

Preconditions

  • Be logged into Firefox Enterprise.
  • Make sure to enable the "Open previous windows and tabs" options in about:preferences.

Steps to reproduce

  1. Restart the browser using the restart firefox functionality from the URL search results.
  2. Close and reopen the browser.

Expected result

  • The previous open tabs are displayed in the browser after restart.

Actual result

  • A new tab is opened each time the browser restarts.
See Also: → 2019579
Regressed by: 2005181
Severity: -- → S2
Keywords: regression
Target Milestone: --- → Pilot
Whiteboard: [size=1.5]

It looks like it is the same behavior than in Mozilla central.

Basically there is some code that checks whether a new tab needs to be spawned when a session restore happens.

The check takes into account defaultargs vs the window args when a homepage policy is applied, this check yields another result than for a the case without a policy.

Without policy:
SessionStore: _isCmdLineEmpty firstArg=about:home defaultArgs=about:home match=true

With policy:
echo '{"policies":{"Homepage":{"URL":"https://example.com","StartPage":"homepage"}}}' > firefox/obj-aarch64-apple-darwin25.3.0/dist/Nightly.app/Contents/Resources/distribution/policies.json

SessionStore: _isCmdLineEmpty firstArg=about:home defaultArgs=https://example.com/ match=false

This is in turn spawning a new tab when a restore session is happening.

Severity: S2 → S3
Keywords: regression
No longer regressed by: 2005181
Target Milestone: Pilot → ---

I can't repro this on macOS with FxEnt 154.0 against prod. Both with and without the homepage policy.

Miruna, can you reproduce this?

Flags: needinfo?(mcurtean)

(In reply to Brian Thomas Smith [:bsmth] from comment #2)

I can't repro this on macOS with FxEnt 154.0 against prod. Both with and without the homepage policy.

Miruna, can you reproduce this?

Hi Brian,
I cannot repro it either on 154.0 (20260814140741) on macOS 26.4, neither through app re-launch or restart from the URL bar. I'm waiting for confirmation on the other platforms, and then we could close it as WORKSFORME.

Flags: needinfo?(mcurtean)

While the initial behavior is not reproducible, we noticed a few other issues:

  1. Blank new tabs are closed upon restart - this is behavior that does not occur on regular Firefox. should we assume the same for FxE?
  2. There is an inconsistent issue that was noticed initially on Ubuntu and we have to investigate more because there seemingly is no exact pattern, but it looks like upon restart, previously closed blank tabs are re-opened (sometimes on the second restart, sometimes at restart from another tabs where content has been loaded)
    I suggest we leave this open for a while so we can investigate on all platforms and see if we can figure out a pattern or at least document all new behaviors.
    Thank you
Flags: needinfo?(brismith)

Confirming this ticket as resolved with 154.0 (20260814140741) on macOS 26.4, Win 11 and Ubuntu 20.4 as the original issue of a new tab opening each time we restart is no longer reproducible.
QA will investigate and log a separate issue for the behavior with the new/blank tabs that are already opened re-opening inconsistently (occurring on all platforms)

Status: NEW → RESOLVED
Closed: 11 days ago
Flags: needinfo?(brismith)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: