Open Bug 1862968 Opened 2 years ago

Add a way to close tabs without them being recorded in the SessionStore

Categories

(Firefox :: Private Browsing, task)

task

Tracking

()

People

(Reporter: emz, Unassigned)

References

Details

We could perhaps add a flag in the detail object of the TabClose event that makes the SessionStore ignore the tab close in its handler here https://searchfox.org/mozilla-central/rev/8acfbe4ba09b46b91c862dc2fbc064d4fc1bac9a/browser/components/sessionstore/SessionStore.sys.mjs#1842
ignore = dont record it has a closed tab, still clean up state of course

This would help in ResetPBMPanel.sys.mjs where we close tabs for a PBM window which should not be recorded in the session store since the PBM session is restarted.

You need to log in before you can comment on or make changes to this bug.