do not let pages to be unzoomable

NEW
Unassigned

Status

Firefox OS
Gaia::Browser
3 years ago
3 years ago

People

(Reporter: smaug, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
Occasionally there are web sites which cannot be zoomed. I assume that is because of some css or meta tag in the page. But it causes pages to be unreadable. So, there should always be some way to zoom/scale the page.
In fennec we support a pref browser.ui.zoom.force-user-scalable to do this. It's also exposed through the fennec settings UI. We should support the pref in the gecko C++ viewport code too and expose it in the UI somewhere.
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #1)
> In fennec we support a pref browser.ui.zoom.force-user-scalable to do this.
> It's also exposed through the fennec settings UI. We should support the pref
> in the gecko C++ viewport code too and expose it in the UI somewhere.

Tangentially related: do we plan to support about:config in B2G at some point?
(Reporter)

Comment 3

3 years ago
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #1)
> In fennec we support a pref browser.ui.zoom.force-user-scalable to do this.
Why isn't the pref on by default? Or if there is some use case when the page doesn't want to be
zoomable, couldn't we anyhow show some UI if it is detected that user tries to zoom, and let
user to enable zoom for that page.
(In reply to Botond Ballo [:botond] from comment #2)
> Tangentially related: do we plan to support about:config in B2G at some
> point?

No idea.

(In reply to Olli Pettay [:smaug] from comment #3)
> Why isn't the pref on by default?

For compat with web content, probably. Enabling it by default would result in unexpected behavior for a lot of mobile pages.

> Or if there is some use case when the page
> doesn't want to be
> zoomable, couldn't we anyhow show some UI if it is detected that user tries
> to zoom, and let
> user to enable zoom for that page.

We could, sure. Nobody has written the code for that though.
botond, bug 886905.  There's a bug filed with no action.  Perhaps someone could work on it?  That would be wonderful!  :D
You need to log in before you can comment on or make changes to this bug.