Closed Bug 1846498 Opened 2 years ago Closed 2 years ago

Create a button and panel for restarting the PBM session

Categories

(Firefox :: Private Browsing, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: emz, Assigned: emz)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Attachments

(2 files, 2 obsolete files)

A data clearance Icon to create an explicit data deletion action.
Clicking the data clear button will close all tabs leaving you on a fresh browser browsing window session with a success message displayed.

Add a panel that opens on button click and asks the user for confirmation before clearing the PBM session. We also want to add a checkbox so the confirmation panel can be skipped if desired.

The clear button needs to:

  1. Close all other PBM windows
  2. Close all tabs in the current PBM window
  3. (Block the window from being interacted with?)
  4. Call the new PBM data clearing method added in Bug 1846494 and wait for it to resolve
  5. (Unblock the window)

The implementation should integrate with Nimbus and support a pref to hide the UI until it's ready to ship.

Assignee: nobody → pbz
Status: NEW → ASSIGNED

Depends on D187223

Depends on D187268

Attachment #9351195 - Attachment is obsolete: true
Attachment #9351202 - Attachment is obsolete: true
Attachment #9351100 - Attachment description: Bug 1846498 - Add a restart PBM session button and panel for private windows. r=Gijs! → Bug 1846498 - Add a restart PBM session button and panel for private windows. r=mconley!

Depends on D187223

The following patch is waiting for review from an inactive reviewer:

ID Title Author Reviewer Status
D187223 Bug 1846498 - Add a restart PBM session button and panel for private windows. r=mconley! pbz Gijs: Back Sep 17, 2023

:pbz, could you please find another reviewer?

For more information, please visit BugBot documentation.

Flags: needinfo?(pbz)

Thanks BugBot, very helpful! I have actually already changed reviewers.

Flags: needinfo?(pbz)
Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/439c5b41701a Add a restart PBM session button and panel for private windows. r=desktop-theme-reviewers,mconley,dao https://hg.mozilla.org/integration/autoland/rev/535f72d66f52 Reset PBM feature tests. r=mconley

Thanks! Looking. Can't reproduce locally on my Windows machine so far.

Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d60ad03ef732 Add a restart PBM session button and panel for private windows. r=desktop-theme-reviewers,mconley,dao https://hg.mozilla.org/integration/autoland/rev/8ed837349a10 Reset PBM feature tests. r=mconley
Flags: needinfo?(pbz)
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch

Hi, I happened to be looking in "CustomizableUI.sys.mjs". Just a small things I noticed: "reset-pbm-toolbar-button" is added conditionally to the default toolbar but it is added to existing toolbars unconditionally on update.

It doesn't make much of a difference on stable release right now, since the widget is not created anyway. But I think it does mean that pre-120 users (that got the update) will have "reset-pbm-toolbar-button" in their "browser.uiCustomization.state", but post-120 users (that did not get the update) will not. Depending on what you do in the future, it could make a difference when it comes to enabling this on stable.

Flags: needinfo?(pbz)

Thanks for highlighting this problem! That assessment seems correct. We most likely will need another migration once we roll this out to all users on release.

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

Attachment

General

Created:
Updated:
Size: