Bug 108982
Summary: | Webkit ignores viewport scaling when arriving at page via 302 redirect from .mobi domains | ||
---|---|---|---|
Product: | WebKit | Reporter: | Patrick Brady <patrick.brady> |
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
Status: | UNCONFIRMED | ||
Severity: | Normal | CC: | giulio.moretto, simon.fraser |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://sandbox.mojiva.com/dlozovoy/page1.html |
Patrick Brady
To reproduce:
First, see the expected behavior by visiting
http://sandbox.mojiva.com/dlozovoy/page2.html
from Safari or Chrome on iOS. The viewport settings on this page have initial-scale=0.5, and a javascript snippet shows this value to the user with the message "Viewport scale = 0.5".
Next, from the same browser, visit
http://sandbox.mojiva.com/dlozovoy/page1.html
And click the banner image (a number 1) which goes through a 302 redirect to arrive at the same page from before. This time, the javascript snippet shows the user that "Viewport scale = 1." Correspondingly, the 1000x1000 pixel image now displays at double the size it does when the page is visited directly.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Patrick Brady
The issue appears to be specific to 302 redirects from .mobi domains. Webkit properly ignores viewport settings for pages on .mobi domains, but on iOS this behavior is also applied to any pages that are arrived at via a redirect from a .mobi domain.
Alexey Proskuryakov
See also: bug 97556.
Giulio Moretto
I noticed this behavior with .co domains with a 302 redirect with iOS7 safari.
Maybe it is applied to all 302 redirects.
Simon Fraser (smfr)
iOS bugs should be filed at bugreport.apple.com