Closed Bug 1249434 Opened 9 years ago Closed 9 years ago

Add a "Show web fonts" advanced option

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(firefox47 verified, relnote-firefox 47+)

VERIFIED FIXED
Firefox 47
Tracking Status
firefox47 --- verified
relnote-firefox --- 47+

People

(Reporter: francois, Assigned: Margaret)

References

()

Details

Attachments

(1 file)

Web fonts can be quite large and aren't all that necessary. It would be nice to give bandwidth-starved users a way to disable them just like they can disable images.

This is already built into gecko:

  browser.display.use_document_fonts (0 = fonts disabled, 1 = fonts enabled)
Awesome. Barbara: Do we want to add this to AHA?
Flags: needinfo?(bbermes)
neat. good idea.

https://mozilla.aha.io/features/FENN-446

If we continue to add more bandwidth/data saving related features in our product, we should consider having an extra "data savings" section under settings.
Flags: needinfo?(bbermes) → needinfo?(alam)
Assignee: nobody → margaret.leibovic
I think this should go under Advanced, probably right below "Show images".

Show web fonts
Always | Only over Wi-Fi | Blocked
Flags: needinfo?(alam)
(In reply to Anthony Lam (:antlam) from comment #3)
> I think this should go under Advanced, probably right below "Show images".
> 
> Show web fonts
> Always | Only over Wi-Fi | Blocked

The pref Francois linked to isn't tied to wi-fi, so we'll have to manage this state ourselves. It looks like we could observe "network:link-type-changed" to keep track of when this changes.
(In reply to :Margaret Leibovic from comment #4)
> (In reply to Anthony Lam (:antlam) from comment #3)
> > I think this should go under Advanced, probably right below "Show images".
> > 
> > Show web fonts
> > Always | Only over Wi-Fi | Blocked
> 
> The pref Francois linked to isn't tied to wi-fi, so we'll have to manage
> this state ourselves. It looks like we could observe
> "network:link-type-changed" to keep track of when this changes.

Although I don't see this actually used anywhere in the tree... does this actually work?

If not, is there any other way to observe a change of network type?
Flags: needinfo?(mcmanus)
For now, I decided to just expose a checkbox pref to turn web fonts on/off. We can file a follow-up if we find a way to enable/disable this setting when the network type changes.
Attachment #8722261 - Flags: review?(nchen) → review+
Comment on attachment 8722261 [details]
MozReview Request: Bug 1249434 - Add a "Show web fonts" pref in advanced settings. r=jchen

https://reviewboard.mozilla.org/r/35939/#review32607

LGTM

::: mobile/android/base/java/org/mozilla/gecko/PrefsHelper.java:224
(Diff revision 1)
> +        if (INT_TO_BOOL_PREFS.contains(pref)) {

else if
:bagder is the expert here.. but I think you may need to observe NS_NETWORK_LINK_TOPIC and then poll link type from that observation..
Flags: needinfo?(mcmanus) → needinfo?(daniel)
https://hg.mozilla.org/integration/fx-team/rev/307f90b2422f1d2dcd4c43dbec00e3daf31a6306
Bug 1249434 - Add a "Show web fonts" pref in advanced settings. r=jchen
https://hg.mozilla.org/mozilla-central/rev/307f90b2422f
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 47
Depends on: 1250989
Summary: Add a "Show web fonts" (Always|Only over Wi-Fi|Blocked) advanced option → Add a "Show web fonts" advanced option
Release Note Request (optional, but appreciated)
[Why is this notable]: Added preference under Settings-Advanced to enable/disable web fonts
[Suggested wording]: Add "Show/Hide web fonts" in advanced settings to reduce bandwidth and data
[Links (documentation, blog post, etc)]:
relnote-b2g: --- → ?
relnote-firefox: --- → ?
relnote-b2g: ? → ---
Flags: needinfo?(daniel)
Verified as fixed on latest Nightly on Samsung Galaxy S5 (Android 5.0)
The "Show web fonts" option is available under Advanced menu.
Verified that it works on https://www.google.com/fonts
Status: RESOLVED → VERIFIED
Depends on: 1254225
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: