Closed Bug 872650 Opened 13 years ago Closed 9 years ago

Regression: Buecherhallen.de rendered far too large on first-load

Categories

(Firefox for Android Graveyard :: Toolbar, defect, P5)

21 Branch
ARM
Android
defect

Tracking

(firefox20 unaffected, firefox21 affected, firefox22 affected, firefox23 affected, firefox24 affected, fennec+)

RESOLVED WORKSFORME
Tracking Status
firefox20 --- unaffected
firefox21 --- affected
firefox22 --- affected
firefox23 --- affected
firefox24 --- affected
fennec + ---

People

(Reporter: aaronmt, Assigned: tetsuharu)

References

()

Details

(Keywords: regression, reproducible)

Attachments

(1 file)

Initially reported via Marco Zehe through email. Load https://www.buecherhallen.de/Mobile in Firefox 20, compare it to Firefox 21 where everything on initial load is zoomed in. See screenshot (Fx20|Fx21). -- LG Nexus 4 (Android 4.2.2) Firefox 20/21
We'll see if we can get a fix that we can uplift
Assignee: nobody → bugmail.mozilla
tracking-fennec: ? → +
I bisected this on nightlies and it appears to be a regression from the range http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=36525224b14e&tochange=161a347bda5b. Most likely bug 833003, confirming now with a local build with that backed out.
Yeah, this is a regression from bug 833003.
Blocks: 833003
In this case, this page has `<meta name="viewport" content="user-scalable=no">`. We should treat as the following from spec: http://dev.w3.org/csswg/css-device-adapt/#viewport-meta, right? (I don't know well about how to read the spec.): ``` @viewport { width: extend-to-zoom;/* this will be calculated as `auto` */ height: extend-to-zoom;/* this will be calculated as `auto` */ user-zoom: fixed } ```
Needinfo from mbrubeck about comment 4
Flags: needinfo?(mbrubeck)
I'm not really looking into this right now; re-assigning.
Assignee: bugmail.mozilla → saneyuki.s.snyk
I cannot start to work about this without any spec information...
I think the interpretation of the spec in comment 4 is correct. Also, according to the CSS Device Adaptation spec the zoom, min-zoom, and max-zoom properties will be 'auto'. The spec does not actually define how the UA should initially zoom the page initally when 'zoom' is set to 'auto' and so the behavior on this page is undefined. However, the spec does have a non-normative suggestion that would make this page render as intended if we implemented it correctly: http://www.w3.org/TR/2011/WD-css-device-adapt-20110915/#handling-auto-zoom
Flags: needinfo?(mbrubeck)
I confirm this is not reproducible if we set `browser.ui.zoom.force-user-scalable`. SO we should handle this part.
* `browser.ui.zoom.force-user-scalable` only effects `metadata.allowZoom`, `metadata.minZoom`, or `metadata.maxZoom`: http://hg.mozilla.org/mozilla-central/file/57d160eda301/mobile/android/chrome/content/browser.js#l3807. * `maxZoom` & `minZoom` are set `NaN`. * This bug is looks like the bug of zooming. * if the document has `<meta name="viewport" content="user-scalable=no">`. * `metadata.defaultZoom` would be `NaN` by `ViewportHandler.getViewportMetadata() * `metadata.maxZoom` would be `NaN` by `ViewportHandler.getViewportMetadata() * `metadata.minZoom` would be `NaN` by `ViewportHandler.getViewportMetadata() * `ViewportMetadata` constructor don't assert & modify parameter's values. From above, `metadata.allowZoom` relate to this bug. * It is referenced from http://hg.mozilla.org/mozilla-central/file/57d160eda301/mobile/android/chrome/content/browser.js#l3983. * If `browser.ui.zoom.force-user-scalable` is true, this method returns `zoom`. Because, `metadata.defaultZoom` would be `NaN`. So I think we should need to fix the constructor of `ViewportMetadata`, `Tab.sendViewportMetadata()`, or `Tab.clampZoom()`.
With using debugger, I check the above codes. But local variables & the value of `sendViewportMetadata` are no different whether `browser.ui.zoom.force-user-scalable` is true or false. Now, I research http://hg.mozilla.org/mozilla-central/file/57d160eda301/mobile/android/base/gfx/JavaPanZoomController.java#l1050
filter on [mass-p5]
Priority: -- → P5
This works fine now. The site may also have been redesigned in the interim, but when I load this page in Nightly 52 it shows up at the right zoom level.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
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: