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)
Firefox for Android Graveyard
General
Tracking
(firefox47 verified, relnote-firefox 47+)
VERIFIED
FIXED
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)
Comment 2•9 years ago
|
||
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 | ||
Updated•9 years ago
|
Assignee: nobody → margaret.leibovic
Comment 3•9 years ago
|
||
I think this should go under Advanced, probably right below "Show images".
Show web fonts
Always | Only over Wi-Fi | Blocked
Flags: needinfo?(alam)
| Assignee | ||
Comment 4•9 years ago
|
||
(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.
| Assignee | ||
Comment 5•9 years ago
|
||
(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)
| Assignee | ||
Comment 6•9 years ago
|
||
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.
| Assignee | ||
Comment 7•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/35939/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/35939/
Attachment #8722261 -
Flags: review?(nchen)
Updated•9 years ago
|
Attachment #8722261 -
Flags: review?(nchen) → review+
Comment 8•9 years ago
|
||
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
Comment 9•9 years ago
|
||
: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)
| Assignee | ||
Comment 10•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/307f90b2422f1d2dcd4c43dbec00e3daf31a6306
Bug 1249434 - Add a "Show web fonts" pref in advanced settings. r=jchen
Comment 11•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 47
| Assignee | ||
Updated•9 years ago
|
Summary: Add a "Show web fonts" (Always|Only over Wi-Fi|Blocked) advanced option → Add a "Show web fonts" advanced option
Comment 12•9 years ago
|
||
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:
--- → ?
| Assignee | ||
Updated•9 years ago
|
relnote-firefox:
--- → ?
relnote-b2g:
? → ---
Updated•9 years ago
|
Flags: needinfo?(daniel)
Comment 13•9 years ago
|
||
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
Added to Fx47 (Aurora) release notes.
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•