"Default zoom" feature (settings UI for "layout.css.devPixelsPerPx")




4 years ago
3 months ago


(Reporter: stephen.friedrich, Unassigned)


36 Branch

Firefox Tracking Flags

(Not tracked)



(5 attachments)



4 years ago
Created attachment 8579977 [details]
View of german it news site with default settings

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0
Build ID: 20150306140254

Steps to reproduce:

I upgraded from a Galaxy Note 2 to the Note Edge and found that the new stock browser version was unusable for me.

After searching the interwebs for hours I finally discovered a hidden feature that made me switch to firefox for good ;-)

Actual results:

The stock browser on the Note 2 had a very useful setting called "Default zoom", which effectively changed the reported viewport size by modifying the ratio of device pixels to css pixels.
That settings was _extremely_ useful, because it allowed me to make effective use of my phablet with its larger screen.
(Instead of just showing as little content as on a 4 inch screen, but just larger).

That option was gone in the newer stock browser and no other browser offered a similar feature.
Luckily "snorp" on the Firefox Mobile IRC told me to try to change "layout.css.devPixelsPerPx" in "about:config".
Hooray! I seriously considered returning my new mobile, because having 2560x1440pixels seems useless to me if I get to see only half the content than on my older mobile with a quarter of the pixels.

See the screenshots for some typical sites that are much more usable with devPixelsPerPx set to 2.5 (which means viewport size of 576x1024px).

Expected results:

I propose to make "layout.css.devPixelsPerPx" configurable via the settings UI.
That should probably be similar to the way the old stock browser versions let the user configure it:
Offer three options for "Default zoom" called "Far", "Medium", and "Close.

Also, it might be a good idea to have another default value for the viewport size for phablets.
(I think a good and still safe default would be to have anything with a display over 5 inches use 480px wide viewports instead of 360px.)

Comment 1

4 years ago
Created attachment 8579979 [details]
View of german it news site with changed settings.


4 years ago
Attachment #8579977 - Attachment description: it-news-default.png → View of german it news site with default settings

Comment 2

4 years ago
Created attachment 8579980 [details]

Comment 3

4 years ago
Created attachment 8579981 [details]
View of popular german news site with default settings

Comment 4

4 years ago
Created attachment 8579982 [details]
View of popular german news site with changed settings


4 years ago
OS: Linux → Android
Hardware: x86_64 → All
I doubt we have any plans to expose this setting in the primary UI.


3 months ago
Severity: normal → enhancement
You need to log in before you can comment on or make changes to this bug.