[Protections Panel] Implement toggle switch flow with mini panel
Categories
(Firefox :: Site Identity, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: nhnt11, Assigned: timhuang)
References
Details
Attachments
(6 files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
With the current version of the patch in bug 1551902, when the toggle switch is triggered, the panel remains open and the UI changes state correctly. The specification dictates that we should wait 500ms, then refresh the page and close the panel. Once the site is done loading, we should show the mini panel indicating the new state.
Updated•6 years ago
|
Reporter | ||
Comment 1•6 years ago
|
||
I talked to Tim and he agreed to pick this up.
Assignee | ||
Comment 2•6 years ago
|
||
This patch moves the 'enabled' attributes to
'protections-popup-tp-switch-section' from
'protections-popup-tp-switch'. In order to change the background as
toggling the TP switch button, there should be a single attribute to
control both background and the TP switch. So, the 'enabled' attribute
should live in the section, so that both section and TP switch can
reference this value by the CSS attribute selector.
Assignee | ||
Comment 3•6 years ago
|
||
This patch implements the toggle switch flow. It adds a strip background
to the TP switch section after toggled the switch to off. Changing the
string in the TP switch section.
Depends on D36015
Assignee | ||
Comment 4•6 years ago
|
||
This patch implements the capability for opening the protections panel
as a mini panel. The mini panel is a protections panel which only displays
the header section.
Depends on D36016
Assignee | ||
Comment 5•6 years ago
|
||
This patch makes the mini panel been shown after page reload due to
switch the tracking protection state. The mini panel will be auto hidden
after certain time, which can be configured by the pref
'browser.protections_panel.mini_panel_auto_hide_timing'. The default
value is 5 seconds.
This also implements the behavior that showing the protections panel on
clicking the mini panel.
Depends on D36017
Assignee | ||
Comment 6•6 years ago
|
||
This patch adds the badge at the side of TP switch toggle. The badge
will only show when the TP switch toggles to off.
Depends on D36018
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 7•6 years ago
|
||
This patch adds two tests. One for ensuring the mini panel is working
correctly. Another for check the correctness of the TP switch flow.
![]() |
||
Comment 9•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a64eedd73f97
https://hg.mozilla.org/mozilla-central/rev/8e13f45f0d26
https://hg.mozilla.org/mozilla-central/rev/ab2c77c1aa02
https://hg.mozilla.org/mozilla-central/rev/ad5b7db6a3c2
https://hg.mozilla.org/mozilla-central/rev/734b19770a7e
https://hg.mozilla.org/mozilla-central/rev/58229ee31005
Description
•