<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>97556</bug_id>
          
          <creation_ts>2012-09-25 05:05:45 -0700</creation_ts>
          <short_desc>Mobile Safari for iOS and Google Chrome for iOS ignore viewport settings on .mobi domains</short_desc>
          <delta_ts>2013-08-29 09:20:57 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://www.davidroessli.com/logs/2010/04/safari_ignores_viewport_mobi_domains/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Philipp Metzler">pp</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jkjiang</cc>
    
    <cc>psolanki</cc>
    
    <cc>wchooper</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>727524</commentid>
    <comment_count>0</comment_count>
    <who name="Philipp Metzler">pp</who>
    <bug_when>2012-09-25 05:05:45 -0700</bug_when>
    <thetext>Mobile Safari for iOS and Google Chrome for iOS ignore viewport settings on .mobi domains. If you don&apos;t specify a viewport for content served from a .mobi domain the rendering engine assumes a certain viewport other than for content served from a .com domain. If you define your own viewport it will be ignored.

See this article: http://www.davidroessli.com/logs/2010/04/safari_ignores_viewport_mobi_domains/

e.g.: we deliver the exact same content from http://www.caruso.mobi and from http://www.carusocarsharing.com

On the .mobi domain you can&apos;t zoom out to see the entire page. On the .com domain you can! You can try it by yourself on your iPhone here:

Everything OK:

http://www.carusocarsharing.com/static/css/test.html

clientWidth: 980
clientHeight: 1091

window.innerWidth: 980
window.innerHeight: 1091

screen.width: 320
screen.height: 480

****************************************

Doesn&apos;t work as expected:

http://www.caruso.mobi/static/css/test.html

clientWidth: 320
clientHeight: 356

window.innerWidth: 320
window.innerHeight: 356

screen.width: 320
screen.height: 480</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>788120</commentid>
    <comment_count>1</comment_count>
    <who name="Philipp Metzler">pp</who>
    <bug_when>2012-12-11 00:29:02 -0800</bug_when>
    <thetext>In the meantime we redirect from http://www.caruso.mobi/static/css/test.html to http://www.carusocarsharing.com/static/css/test.html Not even then does the viewport work as expected! 

But if you directly go to http://www.carusocarsharing.com/static/css/test.html it works as expected (you can zoom in and out properly with the magnifying gesture on the iPhone / iPad)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>857673</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-03-18 16:06:26 -0700</bug_when>
    <thetext>See also: bug 108982.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>864954</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-03-27 16:05:34 -0700</bug_when>
    <thetext>*** Bug 112633 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>922267</commentid>
    <comment_count>4</comment_count>
    <who name="Pratik Solanki">psolanki</who>
    <bug_when>2013-08-28 17:08:45 -0700</bug_when>
    <thetext>&lt;rdar://problem/12369131&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>