Closed Bug 1842832 Opened 2 years ago Closed 7 months ago

Move the private browsing toggle to initial install dialog

Categories

(Toolkit :: Add-ons Manager, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: zombie, Assigned: rpl)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [addons-jira])

Attachments

(2 files)

We currently prompt for private browsing permission after the extension is installed, and if the user grants it, we need to restart it, possibly interrupting any first run or onboarding experience from the extension.

We can simplify and avoid all that by moving the toggle to the initial install prompt.

Whiteboard: [addons-jira]
Severity: -- → N/A
Priority: -- → P3
Blocks: 1460738, 1558336
See Also: → 1746269

This patch is currently mainly an exploratory patch, which is meant to:

  • determine which kind of issues and/or blockers we may hit or additonal changes we may need to consider
    while moving the private browsing permission checkbox from the post install panel into the initial
    install flow panel

  • try out to use a moz-toggle custom widget instead of the checkbox input currently used in the post
    install panel (in particular because moz-toggle would also better match the UX designs for the
    followup tracked by Bug 1875284)

Based on this initial exploratory draft patch:

  • moz-toggle can be used in the existing install panel as expected (I'll attach screenshots on bugzilla
    or phabricator to show how the install panel looks like with the additional moz-toggle for the private
    browsing access)

  • we may also need to apply a small change on the XPIDatabase.sys.mjs side to ensure the AddonWrapper permissions
    getter will return permissions including the PERM_CAN_CHANGE_PRIVATEBROWSING_ACCESS even for addons not yet
    in the database

  • we may need to look in more detail into the failures hit by the browser_ext_originControls.js tests if the
    promise returned by ExtensionsUI.showPermissionsPrompt is taking on more tick to be resolved.

  • it is very likely we may be reusing the localized string associated with the checkbox currently included
    in the post install panel (appmenu-addon-post-install-incognito-checkbox) as is, and so to also include
    in the final patch a fluent migration script to also port the existing translations into the new
    fluent string associated with the moz-toggle label

  • moz-toggle optionally supports also a description associated to the control in addition to the label,
    we may want to consider if we should include one (I'll include a screenshot that shows how the dialog
    would look like with a label and description), e.g. a description we may want to consider is the
    one associated to the same control in the about:addons card detail view (addon-detail-private-browsing-help).

Screenshots of the install dialog with the private browsing moz-toggle as prototyped in the exploratory patch:

  • install dialog from an extension with no install time permissions (and private browsing toggle with a label)
  • install dialog from an extension with a few install time permissions (and private browsing toggle with a label)
  • install dialog from an extension with a lot of host permissions (and private browsing toggle with a label)
  • install dialog with the private browsing toggle with both a label and description
Assignee: nobody → lgreco
Status: NEW → ASSIGNED
Attachment #9380980 - Attachment description: WIP: Bug 1842832 - Move private browser permission toggle to initial addon install dialog. → Bug 1842832 - Move private browser permission toggle to initial addon install dialog.
Attachment #9380980 - Attachment description: Bug 1842832 - Move private browser permission toggle to initial addon install dialog. → WIP: Bug 1842832 - Move private browser permission toggle to initial addon install dialog.
Attachment #9380980 - Attachment description: WIP: Bug 1842832 - Move private browser permission toggle to initial addon install dialog. → Bug 1842832 - Move private browser permission toggle to initial addon install dialog.
Pushed by luca.greco@alcacoop.it: https://hg.mozilla.org/integration/autoland/rev/bd34f230f70f Move private browser permission toggle to initial addon install dialog. r=willdurand,fluent-reviewers,desktop-theme-reviewers,bolsson,dao
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
Blocks: 1521138
See Also: → 1911998
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: