Closed
Bug 524900
Opened 15 years ago
Closed 15 years ago
treat mobile doctypes like we treat handheld friendly content
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: blassey, Assigned: blassey)
Details
Attachments
(2 files, 1 obsolete file)
1.79 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
2.19 KB,
patch
|
Details | Diff | Splinter Review |
generally content that specifies a mobile doctype is designed to be fit to screen width, just as content with the handheld friendly meta tag
Assignee | ||
Comment 1•15 years ago
|
||
this patch actually sets the width correctly, the previous one only set the zoom
Assignee: nobody → bugmail
Attachment #408794 -
Attachment is obsolete: true
Attachment #408803 -
Flags: review?(mark.finkle)
Updated•15 years ago
|
Attachment #408803 -
Flags: review?(mark.finkle) → review+
Comment 2•15 years ago
|
||
Comment on attachment 408803 [details] [diff] [review] patch v.2 > var handheldFriendly = windowUtils.getDocumentMetadata("HandheldFriendly"); Change to "let" while you're here > >- if (handheldFriendly == "true") { >+ >+ if (handheldFriendly == "true" || >+ (browser.contentDocument.doctype && >+ (browser.contentDocument.doctype.publicId.search("WAP") != -1|| >+ browser.contentDocument.doctype.publicId.search("WML") != -1|| >+ browser.contentDocument.doctype.publicId.search("Mobile")!= -1))) { Can you make a local var for this logic? var handheldDoctype = (browser.contentDocument.doctype && (browser.contentDocument.doctype.publicId.search("WAP") != -1 || browser.contentDocument.doctype.publicId.search("WML") != -1 || browser.contentDocument.doctype.publicId.search("Mobile")!= -1)); then use it in the if test Also, you have TABs in there > let handheldFriendly = windowUtils.getDocumentMetadata("HandheldFriendly"); >- if (handheldFriendly == "true") { >+ if (handheldFriendly == "true" || >+ (browser.contentDocument.doctype && >+ (browser.contentDocument.doctype.publicId.search("WAP") != -1|| >+ browser.contentDocument.doctype.publicId.search("WML") != -1|| >+ browser.contentDocument.doctype.publicId.search("Mobile")!= -1))) { Same here (including the TABs) r+ with nits fixed
Assignee | ||
Comment 3•15 years ago
|
||
Assignee | ||
Comment 4•15 years ago
|
||
pushed http://hg.mozilla.org/mobile-browser/rev/cab142d04282
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 5•15 years ago
|
||
Brad, I don't have any real experience with WML and WAP docs. Is this patch affecting maemo builds and winmo builds or only winmo builds?
Assignee | ||
Comment 6•15 years ago
|
||
It effects both, you'll notice the text on m.* sites is more readable and laid out better. For example m.espn.go.com is roughly twice as big as it was prior to landing on the Touch Pro.
You need to log in
before you can comment on or make changes to this bug.
Description
•