tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 6584a19740044748058d2bc5c051b9282d628a70
parent 87b9679240b9c64256ba523ff2ef498b613393d7
Author: Meg Viar <lmegviar@gmail.com>
Date:   Tue, 18 Nov 2025 17:06:34 +0000

Bug 2000890 - Add termsofuse.acceptedDate and termsofuse.firstAcceptedDate to allowedSetOnImpressionPrefs list r=omc-reviewers,mimi

Differential Revision: https://phabricator.services.mozilla.com/D273033

Diffstat:
Mbrowser/components/asrouter/content-src/schemas/MessagingExperiment.schema.json | 3+++
Mbrowser/components/asrouter/content-src/templates/CFR/templates/InfoBar.schema.json | 1+
Mtoolkit/components/messaging-system/lib/SpecialMessageActions.sys.mjs | 5++++-
3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/browser/components/asrouter/content-src/schemas/MessagingExperiment.schema.json b/browser/components/asrouter/content-src/schemas/MessagingExperiment.schema.json @@ -672,6 +672,9 @@ "type": { "const": "MULTI_ACTION" }, + "orderedExecution": { + "type": "boolean" + }, "data": { "type": "object", "properties": { diff --git a/browser/components/asrouter/content-src/templates/CFR/templates/InfoBar.schema.json b/browser/components/asrouter/content-src/templates/CFR/templates/InfoBar.schema.json @@ -99,6 +99,7 @@ "type": "object", "properties": { "type": { "const": "MULTI_ACTION" }, + "orderedExecution": { "type": "boolean" }, "data": { "type": "object", "properties": { diff --git a/toolkit/components/messaging-system/lib/SpecialMessageActions.sys.mjs b/toolkit/components/messaging-system/lib/SpecialMessageActions.sys.mjs @@ -291,7 +291,10 @@ export const SpecialMessageActions = { // only prefs created on the fly are allowed. This is to ensure that adding // the abililty to set any in-tree prefs with this feature undergoes code // review. - const allowedSetOnImpressionPrefs = []; + const allowedSetOnImpressionPrefs = [ + "termsofuse.firstAcceptedDate", + "termsofuse.acceptedDate", + ]; const allowedPrefsList = onImpression ? allowedSetOnImpressionPrefs