Pref gating for QWAC UI
Categories
(Firefox for Android :: Settings, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox161 | --- | fixed |
People
(Reporter: lmccracken, Assigned: lmccracken, NeedInfo)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxdroid][android-activation-trust])
Attachments
(1 external file)
Summary
Gate QWAC UI behind security.qwacs.enabled and decide default value and region targeting for Fx 162
Description
The QWAC UI should only appear when the QWAC feature is switched on, and nothing QWAC-related should be visible when it is off. The current working assumption is that the gate is the Gecko pref security.qwacs.enabled, but that is not confirmed. This ticket covers three things in order: confirming the right gating mechanism, applying it to all QWAC UI, and recording the decision on the default value and any region targeting before the Fx 162 release deadline.
Gating means the whole QWAC indicator from ticket 9 (the statement and the EU trust mark) must be absent when the pref is off. This should be implemented once, rather than as scattered checks. If the pref is off, the QWAC signal should not need to be requested at all.
Part A: Confirm the gating mechanism
Verify that security.qwacs.enabled is the correct pref, and that it is the one Dana’s QWAC work reads.
Establish how Android should read it. The options are directly from GeckoView or the Gecko pref service, through a Nimbus feature (which allows remote rollout and targeting), or through a Fenix-side feature flag. Choose one and record why.
Establish whether the value can change at runtime, for example through about:config or a Nimbus update, and whether the UI must react live or only on next launch.
Confirm whether the pref also gates Dana’s side (signal generation), so that Android and Gecko cannot disagree.
Part B: Gate the QWAC UI
Add a single “QWAC enabled” and check that is being consumed.
When the check is false, the statement and logo are hidden, removed from the layout and the TalkBack tree, and leave no gap.
When the check is true, behaviour applies unchanged.
Make sure the pref check combines correctly with the signal: UI shows only if the pref is on and the signal is explicitly true.
Decide whether the rest of the certificate details sub-page is also gated or ships regardless. See open questions.
Add tests for both pref states.
Part C: Decide default value and region targeting
Decide the default value of the pref for Fx 162: off everywhere, on everywhere, or on for specific regions.
If region targeting is wanted, decide how regions are defined (for example EU member states, EEA, or the whole of Europe) and how they are detected (device region, Firefox region setting, or Nimbus targeting).
Record the decision, its owner and the date in this ticket, and link to any product or legal discussion.
Make sure the decision lands before the Fx 162 deadline, with enough time left to implement targeting if it is needed.
In scope
Confirming the pref name and read mechanism
A single gating check used by all QWAC UI
Hiding all QWAC UI when the pref is off
Behaviour when the pref changes at runtime
Tests for pref on and off
Recording the default and region-targeting decision, and implementing the chosen default
Out of scope
Building the QWAC UI
Hide logic for non-QWAC sites
Determining QWAC status
Edge-state behaviour
A settings toggle for users, unless product asks for one
Focus
Acceptance criteria
The correct gating pref or flag is confirmed and documented in the ticket.
With the pref off, no QWAC-related text, logo, spacing or TalkBack output appears anywhere, including for sites that are QWACs.
With the pref on, the QWAC indicator behaves as before.
Gating is implemented in one place, with no duplicated pref checks in the UI code.
Runtime changes to the pref behave as decided (live update or next launch), and this is tested.
Tests cover pref on with QWAC true, pref on with QWAC false, and pref off with QWAC true.
The default value and any region targeting are decided and recorded, with an owner and a date, before the Fx 162 deadline.
The chosen default is implemented and verified in a release-like build, not just a debug build.
| Assignee | ||
Updated•1 month ago
|
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Comment 4•29 days ago
|
||
Comment 6•26 days ago
|
||
| bugherder | ||
Description
•