Closed Bug 1964544 Opened 3 months ago Closed 1 month ago

[meta] Rename ToU datareporting.policy.dataSubmissionPolicy* prefs

Categories

(Firefox :: Messaging System, task, P1)

task
Points:
5

Tracking

()

VERIFIED FIXED
142 Branch
Iteration:
142.2 - Jul 7 - Jul 18
Tracking Status
firefox138 --- wontfix
firefox139 --- wontfix
firefox140 --- wontfix
firefox141 --- wontfix
firefox142 --- verified

People

(Reporter: cpeterson, Assigned: mviar)

References

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

Details

(Keywords: feature-testing-meta, Whiteboard: [tos])

Attachments

(1 file)

We current record that the user has accepted the ToU using the datareporting.policy.dataSubmissionPolicyNotifiedTime and datareporting.policy.dataSubmissionPolicyAcceptedVersion prefs. Bobby recommends some changes to these prefs

  1. Prefs tracking ToU acceptance and prompt bypass are appropriately-named (i.e. they say termsofuse and don’t have any mention of “data reporting”)
  2. Not having the legacy telemetry control be renamed to have “ToU” in it
  3. Not having any of this stuff gated by MOZ_DATA_REPORTING as it currently is.
  4. Nice-to-have: straightforward name and function, dropping “policy version”

The new prefs should carry forward the old pref values for users that have accepted the ToU.

We don't need to uplift this pref change to 139.

How will these pref changes affect the enterprise policy flag to pre-accept ToS (bug 1954128) or sync the ToS acceptance state across multiple and new user profiles (bug 1933264)?

Or the Nimbus advanced targeting for users who haven't accepted the ToU yet? https://github.com/mozilla/experimenter/pull/12596#issuecomment-2859412454

Iteration: --- → 140.1 - Apr 28 - May 9
Points: --- → 3
Priority: -- → P1

This should also update the ToS enterprise policy and prefs shared across profiles.

We'll need some clarification on whether or not accepting ToS should still update the legacy datareporting.policy.* prefs in addition to setting the new ToS specific prefs.

Blocks: 1966387

QA request to test the pref migration: https://mozilla-hub.atlassian.net/browse/QA-3988

Meg recommends that we land and test these new prefs in Nightly 141 instead of 140.

Points: 3 → 5

Updating the flag for Nightly 141.

One concern that came up in the #tos-new-users Slack and one of meetings: could the fact that it's possible for new version numbers to be the same as (or less than) old version numbers make it harder to detect if there are weird bugs & edge cases that we haven't thought of? If, instead, we started the new version number at (say) 4, there's no overlap - anything that shows up in the telemetry as less than four is an anomaly/bug, and the numbers in a given profile should never go backwards. Meg, what are your thoughts here?

Flags: needinfo?(mviar)
Group: mozilla-employee-confidential
Iteration: 140.1 - Apr 28 - May 9 → 141.1 - May 26 - Jun 6

(In reply to Dan Mosedale (:dmosedale, :dmose) from comment #7)

One concern that came up in the #tos-new-users Slack and one of meetings: could the fact that it's possible for new version numbers to be the same as (or less than) old version numbers make it harder to detect if there are weird bugs & edge cases that we haven't thought of? If, instead, we started the new version number at (say) 4, there's no overlap - anything that shows up in the telemetry as less than four is an anomaly/bug, and the numbers in a given profile should never go backwards. Meg, what are your thoughts here?

I think that's a good idea Dan, and I don't see any risk associated with doing so. I can update the patch accordingly.

Flags: needinfo?(mviar)

@mviar It occurs to me just now that we will also need to update the advanced targeting as well, but it should a very trivial update.

Flags: needinfo?(mviar)

@dmosedale yes, good call out there. I filed an issue to update here.

Flags: needinfo?(mviar)
Attachment #9485761 - Attachment description: WIP: Bug 1964544 - Update ToU flow to use its own set of prefs and remove gating related to data reporting → Bug 1964544 - Update ToU flow to use its own set of prefs and remove gating related to data reporting
Iteration: 141.1 - May 26 - Jun 6 → 141.2 - Jun 9 - Jun 20
Blocks: 1971184

@mviar Did we ever get any feedback on comment 3?

Flags: needinfo?(mviar)

No official decision here, though I've moved forward with the assumption we do not want to keep the legacy prefs set to the old values so that we can differentiate users who have accepted TOU, the legacy data reporting policy, or both.

NIing Chris and Venetia to see if they have thoughts and otherwise will raise in this week's sync.

Flags: needinfo?(vtay)
Flags: needinfo?(mviar)
Flags: needinfo?(cpeterson)

(In reply to Meg Viar [:mviar] from comment #3)

We'll need some clarification on whether or not accepting ToS should still update the legacy datareporting.policy.* prefs in addition to setting the new ToS specific prefs.

(In reply to Meg Viar [:mviar] from comment #12)

No official decision here, though I've moved forward with the assumption we do not want to keep the legacy prefs set to the old values so that we can differentiate users who have accepted TOU, the legacy data reporting policy, or both.

We do not want to set or leave the legacy prefs in the user's profile. We want users to only see the new pref names in about:config. Of course, the code will still need to know about the legacy pref names to implement the pref migration.

Flags: needinfo?(vtay)
Flags: needinfo?(dmosedale)
Flags: needinfo?(cpeterson)

Agreed.

Blocks: 1971560
Flags: needinfo?(dmosedale)
Iteration: 141.2 - Jun 9 - Jun 20 → 142.1 - Jun 23 - Jul 4
Blocks: 1973609

Updating the flag for 142

Iteration: 142.1 - Jun 23 - Jul 4 → 142.2 - Jul 7 - Jul 18
Flags: qe-verify+
Pushed by mviar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c851356e72c0 https://hg.mozilla.org/integration/autoland/rev/0c5a18d39544 Update ToU flow to use its own set of prefs and remove gating related to data reporting r=profiles-reviewers,omc-reviewers,dmose,webdriver-reviewers,jhirsch
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch

Verified as fixed in our latest Nightly build 142.0a1 (2025-07-14)

QA Whiteboard: [qa-ver-needed-c142/b141]
Summary: Rename ToU datareporting.policy.dataSubmissionPolicy* prefs → [meta] Rename ToU datareporting.policy.dataSubmissionPolicy* prefs
Depends on: 1978770

Updating the main status flag.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-ver-needed-c142/b141] → [qa-ver-done-c142/b141]
Flags: qe-verify+
Depends on: 1979714
Depends on: 1980169
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: