Last modified: 2012-02-27 19:51:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T33562, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31562 - Mobile pages have incorrect delimiters for viewport properties
Mobile pages have incorrect delimiters for viewport properties
Status: RESOLVED FIXED
Product: Wikimedia Mobile
Classification: Unclassified
Generic (Other open bugs)
--
All All
: Normal normal (vote)
: ---
Assigned To: Tomasz Finc
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-09 17:32 UTC by gleitz
Modified: 2012-02-27 19:51 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
error in chrome (171.42 KB, image/png)
2011-10-09 17:32 UTC, gleitz
Details

Description gleitz 2011-10-09 17:32:24 UTC
Created attachment 9200 [details]
error in chrome

Mobile Wikipedia pages specify incorrect delimiters for the "viewport" property, which causes errors in the Chrome browser.

The incorrect line is
<meta name = "viewport" content = "width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />

It should instead use commas
<meta name = "viewport" content = "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" />

Please see this StackOverflow article for more info
http://stackoverflow.com/questions/5555125/viewport-tag-syntax/5850408#5850408

Here is a test page that fails in Chrome
http://en.m.wikipedia.org/wiki/Bashir_Ahmad_(politician)

I have included a screenshot of the error in Chrome.
Comment 1 gleitz 2011-10-09 17:33:01 UTC
Actually, all semicolons should be removed:

<meta name = "viewport" content = "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
Comment 2 Brion Vibber 2011-10-10 18:23:18 UTC
A reminder -- this change was made (fixing the ';'s to ','s) a while ago on the PHP codebase, but this was discovered to cause bug 31214 when eg embedding in a WebView control on an iPad app, and was reverted to the original form which caused no such problems.

Most likely the viewport settings need to be redone to something that just indicates '1:1 CSS pixels to logical pixels, no zooming' instead of making claims on the size of the device (which is NOT guaranteed to be the size of the web view!)
Comment 3 Brion Vibber 2012-01-12 00:10:17 UTC
This got resolved... several times. :)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links