Open spotlight tab modal from PBM
Categories
(Firefox :: Messaging System, enhancement, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox100 | --- | verified |
People
(Reporter: pdahiya, Assigned: pdahiya)
References
(Blocks 2 open bugs, )
Details
Attachments
(2 files)
Scope of this bug is to open link or a tab modal based on click of promo CTA based off configuration set in promo message JSON
https://www.figma.com/file/DuYnaE2DxETEbBFUOrNzyM/Privacy-Segmentation?node-id=707%3A2753
Assignee | ||
Updated•3 years ago
|
Comment 1•3 years ago
|
||
Assignee | ||
Comment 2•3 years ago
|
||
Thanks @andrei for helping investigate and determine feasibility of this work. As discussed, ideally we should reuse spotlight from about:privatebrowsing to handle displaying this modal.
@mardak need your feedback if it's ok to reuse spotlight.html for this usecase . See figma https://www.figma.com/file/DuYnaE2DxETEbBFUOrNzyM/Privacy-Segmentation?node-id=707%3A2720 - Option B
Some of the edge cases that might be unique to about:private browsing modal is
- Need explicit close button
- Telemetry collected should be only when in experiment or in future special handling to send telemetry without client_id
- Modal should display in center of the window
- Modal template might display two additional market place icon 'Download From Google Play', 'Download From App Store' (Designs need to be updated)
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 3•3 years ago
|
||
Assigning myself to update patch as per finalized designs. Thanks
Assignee | ||
Updated•3 years ago
|
Comment 4•3 years ago
|
||
Currently the spotlight messaging surface is always a window-modal (i.e., blocks access to other tabs), and the template doesn't quite match any existing spotlight or refactored about:welcome implementation (e.g., no buttons, showing multiple images and a link). We could add the capability as part of bug 1739252 ideally reusing about:welcome components bug 1752935.
Potentially this could be implemented as…
- show close button
- show another image
- allow not having a primary button
- allow prefixing the secondary button (here "or" and treating "email yourself a link" as the secondary button)
-- or maybe via fluent and special styling, e.g.,email-secondary = or <a data-l10n-name=link>email yourself…</a>
??
This is in addition to attachment 9263764 [details]'s hooking up the ability to open up a spotlight.
Assignee | ||
Comment 5•3 years ago
|
||
Thanks Ed for clarifying, curious how big of a change configuring spotlight to be a modal that doesn't block other tab. If UX requires user to continue browsing in other tabs similar to about:preferences#sync -> Sync on -> Change dialog
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 6•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 8•3 years ago
|
||
bugherder |
Comment 9•3 years ago
|
||
I‘ve verified this enhancement using the latest Firefox Nightly 100.0a1 (Build ID: 20220320213921) on Windows 10 x64, macOS 11.6, and Ubuntu 20.04.
- The "Firefox Focus" promo message is displayed on a new private window, and it is not shown in a second opened tab.
- The Firefox Focus promo is displayed only once per week and only 3 times per browser profile.
- The spotlight modal is opened after clicking the CTA button from the promo message and contains the following elements:
- A QR code image;
- “Get Firefox Focus” title;
- “Scan the QR Code to Download” subtitle;
- “Email yourself a link” primary button;
- “Close” secondary button.
- Also, now the user can continue browsing in other tabs while the spotlight modal is displayed.
- The Firefox Focus promo is dismissed after clicking the “Close” button.
- No telemetry probe is registered when clicking the “Download Firefox Focus” and “Close” buttons from the Firefox Focus promo message.
Comment 10•3 years ago
|
||
This bug added selecting either gDialogBox or getTabDialogBox for window vs tab modals.
Description
•