Closed Bug 1847599 Opened 1 year ago Closed 1 year ago

Clean up Font Visibility Prefs and RFPTargets

Categories

(Core :: Layout: Text and Fonts, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: tjr, Assigned: tjr)

References

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

Details

Attachments

(1 file)

This is not well documented and very confusing.

This patch removes the separate Font Visbility pref for ETP and the
logic that makes the effective level for PBMode the lesser of PBM
and Standard mode. We do not need these levels of granularity,
they are confusing.

Fix the problem where the ETP Toggle would override the RFP Pref -
that should not occur, the ETP Toggle doesn't override that.

Pushed by tritter@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f29e7cc4d688 Simplify Font Visibility rules r=jfkthame,timhuang

Backed out for causing bustages on nsPresContext.cpp

Backout link

Push with failures

Failure log

Flags: needinfo?(tom)
Pushed by tritter@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/eb06ef97c8af Simplify Font Visibility rules r=jfkthame,timhuang
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
Blocks: 1850275
Flags: needinfo?(tom)

The old pref names (layout.css.font-visibility.private etc.) still exist in the tree in one spot, in nimbus/FeatureManifest.yaml , here:
https://searchfox.org/mozilla-central/rev/7fe1954b761abeff36122b4a6ac74619704ee787/toolkit/components/nimbus/FeatureManifest.yaml#1432-1448

fontvisibility:
  description: Control Font Visibility in PBM
  owner: tom@mozilla.com
  hasExposure: false
  variables:
    enabledETP:
      type: int
      setPref: layout.css.font-visibility.trackingprotection
      description: Set the Font Visibility level when Enhanced Tracking Protection is enabled
    enabledStandard:
      type: int
      setPref: layout.css.font-visibility.standard
      description: Set the Font Visibility level for normal browsing
    enabledPBM:
      type: int
      setPref: layout.css.font-visibility.private
      description: Set the Font Visibility level for private browsing (will override ETP)

Maybe worth removing that in a followup? Presumably we don't want to be toggling those prefs via Nimbus anymore, if they've been simplified away (and are non-functional using those old names).

Flags: needinfo?(tom)
Regressions: 1852239
Depends on: 1852489
Flags: needinfo?(tom)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: