Closed Bug 1356778 Opened 8 years ago Closed 4 years ago

Adding meta viewport header in content-script causes "zoom in" when restoring a zombie tab

Categories

(Firefox for Android Graveyard :: Toolbar, enhancement, P3)

All
Android
enhancement

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: Manuel.Spam, Unassigned)

Details

This is my code: https://github.com/M-Reimer/vdrportalmobile/blob/518b13da/resource/contentscript.js One of the first things, this code does, is adding a "meta viewport" header. This works well if the page is "freshly opened". But on Android "for some silly reason" longer inactivity of the Firefox app causes tabs to be "somewhat reloaded" if accessed again (means that Firefox does something on the network but I still get the old version of that page). In this case applying this meta-viewport header causes "zoom in" on that inactive page. I have to zoom out again to view the page. The ugly thing about this is, that a meta viewport header like this: <meta name="viewport" content="width=480px, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> doesn't prevent this from happening. I end up in "zoomed in" state and am not able to zoom out again...
Component: WebExtensions: Android → General
Product: Toolkit → Firefox for Android
(In reply to Manuel Reimer from comment #0) > But on Android "for some silly reason" longer inactivity of the Firefox app > causes tabs to be "somewhat reloaded" if accessed again (means that Firefox > does something on the network but I still get the old version of that page). The "silly reason" is Android reporting memory pressure, but yes, this shouldn't happen when restoring those tabs again.
Component: General → Graphics, Panning and Zooming
Summary: Adding meta viewport header in content-script causes "zoom in" after inactivity → Adding meta viewport header in content-script causes "zoom in" when restoring a zombie tab
Do you have a standalone test page (preferred) or URL that reproduces the problem? Also what version of Firefox on Android are you using?
Flags: needinfo?(Manuel.Spam)
OS: Unspecified → Android
Hardware: Unspecified → All
No, I don't have a test page. You'll have to use "http://www.vdr-portal.de/" and my Addon. Just install the Addon, open the URL and keep Firefox in background for some time. If opening again, the page "zooms in". I'm always using the version which comes from Google Play Store.
Flags: needinfo?(Manuel.Spam)
Ok, thanks.
Priority: -- → P3
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.