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 RenderingAssignee: 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

Description Patrick Brady 2013-02-05 14:11:59 PST
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.
Comment 1 Patrick Brady 2013-03-18 10:56:45 PDT
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.
Comment 2 Alexey Proskuryakov 2013-03-18 16:06:19 PDT
See also: bug 97556.
Comment 3 Giulio Moretto 2013-10-07 01:59:30 PDT
I noticed this behavior with .co domains with a 302 redirect with iOS7 safari.
Maybe it is applied to all 302 redirects.
Comment 4 Simon Fraser (smfr) 2013-10-07 11:58:26 PDT
iOS bugs should be filed at bugreport.apple.com