Closed
Bug 572696
Opened 14 years ago
Closed 14 years ago
Fennec should understand meta viewport with spaces
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
fennec | 2.0b3+ | --- |
People
(Reporter: rik, Assigned: vingtetun)
References
()
Details
(Whiteboard: [has-patch])
Attachments
(2 files, 2 obsolete files)
3.27 KB,
patch
|
jst
:
review+
|
Details | Diff | Splinter Review |
1.69 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; fr-fr) AppleWebKit/534.1+ (KHTML, like Gecko) Version/5.0 Safari/533.16 Build Identifier: http://people.mozilla.com/~mbrubeck/fennec.apk Fennec doesn't understand <meta name="viewport" content="width = device-width"> Most of Apple documentation is using this syntax with spaces so there's potentially a lot of copy/paste pages. See http://developer.apple.com/safari/library/documentation/appleapplications/reference/safariwebcontent/usingtheviewport/usingtheviewport.html#//apple_ref/doc/uid/TP40006509-SW26 for examples. Reproducible: Always
Assignee | ||
Comment 1•14 years ago
|
||
This is not a fennec bug, this is a platform bug. The patch should do the work but I need to test it.
Assignee: nobody → 21
Assignee | ||
Updated•14 years ago
|
Assignee: 21 → nobody
Status: UNCONFIRMED → NEW
Component: General → DOM
Ever confirmed: true
Product: Fennec → Core
QA Contact: general → general
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → 21
Assignee | ||
Comment 2•14 years ago
|
||
It was a bit more complicated than what I was thinking first. The patch allow spaces around the '=' character but still allow to use ' ' as a separators between tokens to keep cross browsers compatibilities.
Attachment #452779 -
Attachment is obsolete: true
Attachment #452823 -
Flags: review?(jst)
Updated•14 years ago
|
tracking-fennec: --- → ?
Updated•14 years ago
|
tracking-fennec: ? → 2.0+
Updated•14 years ago
|
tracking-fennec: 2.0+ → 2.0b3+
Comment 3•14 years ago
|
||
I think you should write tests for that. It shouldn't be hard.
Comment 4•14 years ago
|
||
(In reply to comment #3) > I think you should write tests for that. It shouldn't be hard. We have some tests already. And will add new ones for this: http://mxr.mozilla.org/mobile-browser/source/chrome/tests/browser_viewport.js
Assignee | ||
Comment 5•14 years ago
|
||
Patch updated on trunk
Attachment #452823 -
Attachment is obsolete: true
Attachment #488270 -
Flags: review?(jst)
Attachment #452823 -
Flags: review?(jst)
Assignee | ||
Comment 6•14 years ago
|
||
Basic tests for checking spaces, I should probably add checks for "\t", "\r", "\n" too
Updated•14 years ago
|
Attachment #488271 -
Flags: review+
Updated•14 years ago
|
Whiteboard: [has-patch]
Updated•14 years ago
|
Attachment #488270 -
Flags: review?(jst) → review+
Comment 7•14 years ago
|
||
Pushed: http://hg.mozilla.org/mozilla-central/rev/99de996537ef Keeping open given that tests need to be pushed on mobile-browser.
Status: NEW → ASSIGNED
Assignee | ||
Comment 8•14 years ago
|
||
Tests: http://hg.mozilla.org/mobile-browser/rev/655367cfcc57 Thanks Mounir for landing the platform part!
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•