Closed Bug 1187182 Opened 9 years ago Closed 3 years ago

quietrev.com only displays half the page (Gecko ignores meta viewport tag update/removal)

Categories

(Core :: Panning and Zooming, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: u279076, Unassigned)

References

()

Details

(Keywords: correctness, dogfood, Whiteboard: [gfx-noted][bzlite])

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Mobile; rv:42.0) Gecko/42.0 Firefox/42.0 Loading quietrev.com on my foxfooding device only shows half the page. It is cut off horizontally and cannot be scrolled.
Attached image 2015-07-23-20-16-23.png (deleted) —
QA Whiteboard: [foxfood-triage]
Component: Gaia::Feedback → Mobile
Product: Firefox OS → Tech Evangelism
This problem exists on Fennec as well.
I see <meta id="viewport" name="viewport" content="width=680, user-scalable=no"> in the head, yet the viewport isn't scaled. But that means fluid.resize() from scripts.js at least ran--680 is the default viewport width if window.orientation is undefined (which it will be for us). If I try to update the viewport via the console, I can't get the new viewport to "stick" (just testing zoom-ability here): var f = document.createElement('meta') f.name='viewport'; f.content='width=680, user-scalable=yes'; document.body.appendChild(f); Katz, is there anything that jumps out to you as to why viewport isn't being respected here?
Flags: needinfo?(bugmail.mozilla)
So I think the problem here is that on page load the page actually has this meta viewport tag: width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no (I printed this out in HTMLMetaElement.cpp when the viewport tag is detected). At some later point JS must be fiddling with the content attribute of the meta tag, and we don't pick that up (same as bug 976616). This is something we should fix in Gecko.
Component: Mobile → Panning and Zooming
Depends on: 976616
Flags: needinfo?(bugmail.mozilla)
Product: Tech Evangelism → Core
Summary: quietrev.com only displays half the page → quietrev.com only displays half the page (Gecko ignores meta viewport tag update/removal)
Thanks Kats.
I don't think this is an issue anymore, please reopen if that's not the case.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
This is still an issue on Fennec.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Keywords: correctness
Whiteboard: [bzlite] → [gfx-noted][bzlite]
Webcompat Priority: --- → ?

The site no longer provides the broken viewport tag, it's a very old issue, and Fenix is a thing now, with lots of improvements to viewport handling. Closing as worksforme.

Status: REOPENED → RESOLVED
Closed: 9 years ago3 years ago
Webcompat Priority: ? → ---
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: