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)
Tracking
(firefox20 unaffected, firefox21 affected, firefox22 affected, firefox23 affected, firefox24 affected, fennec+)
RESOLVED
WORKSFORME
People
(Reporter: aaronmt, Assigned: tetsuharu)
References
()
Details
(Keywords: regression, reproducible)
Attachments
(1 file)
|
192.91 KB,
image/png
|
Details |
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
| Reporter | ||
Updated•13 years ago
|
status-firefox20:
--- → unaffected
status-firefox21:
--- → affected
status-firefox22:
--- → affected
status-firefox23:
--- → affected
status-firefox24:
--- → affected
Comment 1•13 years ago
|
||
We'll see if we can get a fix that we can uplift
Assignee: nobody → bugmail.mozilla
tracking-fennec: ? → +
Comment 2•13 years ago
|
||
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.
| Assignee | ||
Comment 4•13 years ago
|
||
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
}
```
Comment 6•12 years ago
|
||
I'm not really looking into this right now; re-assigning.
Assignee: bugmail.mozilla → saneyuki.s.snyk
| Assignee | ||
Comment 7•12 years ago
|
||
I cannot start to work about this without any spec information...
Comment 8•12 years ago
|
||
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)
| Assignee | ||
Comment 9•12 years ago
|
||
I confirm this is not reproducible if we set `browser.ui.zoom.force-user-scalable`.
SO we should handle this part.
| Assignee | ||
Comment 10•12 years ago
|
||
* `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()`.
| Assignee | ||
Comment 11•12 years ago
|
||
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
Comment 13•9 years ago
|
||
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
Updated•5 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
•