Closed Bug 1862936 Opened 2 years ago Closed 2 years ago

Pinned tabs don't get closed by PBM reset action

Categories

(Firefox :: Private Browsing, defect, P2)

defect

Tracking

()

VERIFIED FIXED
121 Branch
Tracking Status
firefox121 --- verified
firefox122 --- verified

People

(Reporter: emz, Assigned: emz)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

STR:

  1. Open a new private window
  2. Navigate to any website
  3. Right click the current tab and select "Pin Tab"
  4. Trigger the reset PBM action via toolbar button

Expected:
All tabs are closed and only a new about:privatebrowsing tab is opened

Actual:
The pinned tabs remains open

Seems like a simple fix. We just need to add an option to the removeAllTabsBut methods to skip these checks. At that point it would make sense to move all option into aParams, even if they're not consumed in removeTabs.

Assignee: nobody → pbz
Status: NEW → ASSIGNED
Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1eda7f37f458 Add a flag to removeAllTabsBut for closing pinned and selected tabs. r=tabbrowser-reviewers,dao
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch

Reproducible on a 2023-11-03 Nightly build on Windows 10.
Verified as fixed on Firefox 121.0b3 and Nightly 122.0a1 on Windows 10, Ubuntu 22, macOS 12.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: