Closed Bug 1738206 Opened 3 years ago Closed 3 years ago

Add an additional action that enables the pref for TCP section in about:preferences

Categories

(Firefox :: Messaging System, enhancement, P1)

enhancement

Tracking

()

VERIFIED FIXED
96 Branch
Iteration:
96.1 - Nov 1 - Nov 14
Tracking Status
firefox95 + verified
firefox96 --- verified

People

(Reporter: andreio, Assigned: andreio)

References

Details

Attachments

(2 files)

We can use a new action to enable the newly added pref "privacy.restrict3rdpartystorage.rollout.preferences.TCPToggleInStandard" that will persist showing that section in about:preferences even after the experiment end-date.
I think this works better than setting the actual TCP pref because users might be locked out of an eventual "on by default" rollout if their pref has a user-set value.
When the code rollout happens we can remove the pref and the section.

Attachment #9248194 - Attachment description: Bug 1738206 - Add an additional action that enables the pref for TCP section in about:preferences → WIP: Bug 1738206 - Add an additional action that enables the pref for TCP section in about:preferences
Attachment #9248259 - Attachment description: WIP: Bug 1738206 - Switch TCP Preferences UI to rely on Nimbus → Bug 1738206 - Switch TCP Preferences UI to rely on Nimbus
Attachment #9248194 - Attachment description: WIP: Bug 1738206 - Add an additional action that enables the pref for TCP section in about:preferences → Bug 1738206 - Add an additional action that enables the pref for TCP section in about:preferences
Pushed by aoprea@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2f9fee41d745
Switch TCP Preferences UI to rely on Nimbus r=Mardak,pbz
Attachment #9248259 - Attachment description: Bug 1738206 - Switch TCP Preferences UI to rely on Nimbus → Bug 1738206 - Switch TCP Preferences UI to rely on Nimbus r=Mardak,pbz
Pushed by elee@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5c003995f9b5
Switch TCP Preferences UI to rely on Nimbus r=Mardak,pbz
Pushed by elee@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/be8c4d9dd03f
Add an additional action that enables the pref for TCP section in about:preferences r=pbz
Pushed by aoprea@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/92c62ad10b81
Switch TCP Preferences UI to rely on Nimbus r=Mardak,pbz
Pushed by aoprea@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/11b636779958
Add an additional action that enables the pref for TCP section in about:preferences r=pbz
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch

[Tracking Requested - why for this release]: This implements the desired nimbus rollout logic for about:preferences checkbox added in bug 1737565.

Iteration: --- → 96.1 - Nov 1 - Nov 14
Depends on: 1737565
Blocks: 1740064
Blocks: 1739619

STR for testing.

  1. Install the Remote Settings devtools addon and point to the Stage (Preview) collection
  2. Enable the nimbus.debug preference
  3. Test the two different branches of the experiment:
  • about:studies?optin_slug=test-tcp-rollout-experimenter&optin_branch=control
  • about:studies?optin_slug=test-tcp-rollout-experimenter&optin_branch=treatment

For the control branch there should be no message shown but when going to about:preferences the checkbox for the new feature should appear (Privacy & Security > Test pilot our most powerful privacy feature ever). We're testing that we can remotely enable the feature for people

For the treatment branch the message (spotlight modal) should appear on restart. If any action such as ignoring, dismissing etc (any action that isn't the OK button) is taken the feature should still be visible in about:preferences. Clicking OK enables the feature. Clicking Not Now and then unenrolling from the experiment should still keep the option in about:preferences.

If no action at all is taken (window is closed without interacting with the message) and then we unenroll from the experiment the feature will not be visible in about:preferences.

Flags: needinfo?(andrei.br92)

Comment on attachment 9248194 [details]
Bug 1738206 - Add an additional action that enables the pref for TCP section in about:preferences

Beta/Release Uplift Approval Request

  • User impact if declined: These patches are a requirement for the Total Cookie Protection rollout experiment starting in Firefox 95. See meta Bug 1731713 / https://mozilla-hub.atlassian.net/browse/UJET-121
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: https://bugzilla.mozilla.org/show_bug.cgi?id=1738206#c12
  • List of other uplifts needed: Bug 1739619
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Patches have good automated test coverage and the production code changes are relatively small.
  • String changes made/needed: -
Attachment #9248194 - Flags: approval-mozilla-beta?
Attachment #9248259 - Flags: approval-mozilla-beta?
Flags: qe-verify+
QA Whiteboard: [qa-triaged]

I have verified the following using the steps provided in comment 12 on Firefox Nightly 96.0a1 (Build ID: 20211111045525) with Windows 10 x64:

  1. Successfully enrolled in both the Control and the Treatment branches.
  2. For the Treatment branch:
  • The spotlight is successfully displayed after a restart is performed
  • The "Test pilot our most powerful privacy feature ever" checkmark is displayed in the "about:preferences#privacy" page with the following caveats:
    • If the spotlight was dismissed or the "Not Now" button was clicked, the checkmark is unchecked.
    • If the spotlights primary button, "Turn on Total Cookie Protection", was clicked, the checkmark is checked.
  1. For the Control branch:
  • The "Test pilot our most powerful privacy feature ever" checkmark is displayed in the "about:preferences#privacy" page.

Comment on attachment 9248194 [details]
Bug 1738206 - Add an additional action that enables the pref for TCP section in about:preferences

Approved for 95.0b6

Attachment #9248194 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9248259 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

I have verified the following using the steps provided in comment 12 on Firefox Beta 95.0b6 (Build ID: 20211111195813) with Windows 10 x64:

  1. Successfully enrolled in both the Control and the Treatment branches.
  2. For the Treatment branch:
    -The spotlight is successfully displayed after a restart is performed
    -The "Test pilot our most powerful privacy feature ever" checkmark is displayed in the "about:preferences#privacy" page with the following caveats:
    -If the spotlight was dismissed or the "Not Now" button was clicked, the checkmark is unchecked.
    -If the spotlights primary button, "Turn on Total Cookie Protection", was clicked, the checkmark is checked.
  3. For the Control branch:
  • The "Test pilot our most powerful privacy feature ever" checkmark is displayed in the "about:preferences#privacy" page.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
Blocks: 1749613
Blocks: 1776766
Blocks: 1797512
Blocks: 1797517
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: