<?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>47607</bug_id>
          
          <creation_ts>2010-10-13 11:35:18 -0700</creation_ts>
          <short_desc>meta tag parser needs to support ; as separator due to Android having made that popular</short_desc>
          <delta_ts>2010-10-19 14:10:03 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>https://android.git.kernel.org/?p=platform/external/webkit.git;a=blob;f=WebCore/dom/Document.cpp;h=1f8edeb3505ce7b2e49ff2b88f2ef92c62d9a68d;hb=HEAD</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kenneth Rohde Christiansen">kenneth</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>christian.webkit</cc>
    
    <cc>dbates</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>joepeck</cc>
    
    <cc>joone</cc>
    
    <cc>kling</cc>
    
    <cc>klobag</cc>
    
    <cc>tonikitoo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>293560</commentid>
    <comment_count>0</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2010-10-13 11:35:18 -0700</bug_when>
    <thetext>The meta tag parser in Android supports ; in addition to , as separator [1] (see Document::processMetadataSettings(const String&amp; content)) which means that due to the popularity of Android, pages such as Facebook now uses &apos;;&apos; to separate the viewport meta arguments instead of &apos;,&apos;, which results in the viewport algorithm computing a wrong viewport (like for instance a width of 1800 pixels instead of 320).

[1] https://android.git.kernel.org/?p=platform/external/webkit.git;a=blob;f=WebCore/dom/Document.cpp;h=1f8edeb3505ce7b2e49ff2b88f2ef92c62d9a68d;hb=HEAD</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>293577</commentid>
    <comment_count>1</comment_count>
      <attachid>70644</attachid>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2010-10-13 11:57:00 -0700</bug_when>
    <thetext>Created attachment 70644
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>294178</commentid>
    <comment_count>2</comment_count>
      <attachid>70644</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-10-14 10:25:02 -0700</bug_when>
    <thetext>Comment on attachment 70644
Patch

I&apos;m not saying that I&apos;m necessarily against this change, but it needs a better explanation. Does this work in IE? In Firefox? Opera Mobile? Are these pages (which ones?) broken on iPhone? What do relevant specs say?

What does Android version history say about reasons for such deviation from webkit.org?

I&apos;m also unsure about what the scope of this change is. ChangeLog says &quot;meta tag parser&quot;, but it seems that code changes only affect meta viewport. In the latter is the case, perhaps the question about IE and Firefox isn&apos;t valid, but other ones still stand.

R- because of all the questions, and the lack of test case or an explanation why one isn&apos;t possible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>294186</commentid>
    <comment_count>3</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2010-10-14 10:38:02 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 70644 [details])
&gt; I&apos;m not saying that I&apos;m necessarily against this change, but it needs a better explanation. Does this work in IE? In Firefox? Opera Mobile? Are these pages (which ones?) broken on iPhone? What do relevant specs say?

Facebook recently changed and I do not have an iPhone with me right now to test, but the site might be doing UA sniffing. On the other hand, I have ran into this problem at least twice before.

&gt; What does Android version history say about reasons for such deviation from webkit.org?

The webkit.org code is upstreamed by RIM, presumable from the iPhone code dump, after Android started shipping this code. I do not know the original reason for this change.

&gt; I&apos;m also unsure about what the scope of this change is. ChangeLog says &quot;meta tag parser&quot;, but it seems that code changes only affect meta viewport. In the latter is the case, perhaps the question about IE and Firefox isn&apos;t valid, but other ones still stand.

I&apos;m not sure whether any shipped Opera mobile supports viewport meta tag or not, but at least Firefox support is pretty preliminary and IE does not support it.

&gt; R- because of all the questions, and the lack of test case or an explanation why one isn&apos;t possible.

I just pushed the patch to get feedback. I believe that some of the viewport meta tests that we are not passing might be due to this issue. These tests come from Opera.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>294194</commentid>
    <comment_count>4</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2010-10-14 10:50:54 -0700</bug_when>
    <thetext>Grace, could help cc&apos;ing the proper Android guys, herE?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>294199</commentid>
    <comment_count>5</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2010-10-14 10:57:02 -0700</bug_when>
    <thetext>Facebook, at least with Android UA, is using ; as separator.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>295961</commentid>
    <comment_count>6</comment_count>
    <who name="Grace Kloba">klobag</who>
    <bug_when>2010-10-18 21:06:04 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Grace, could help cc&apos;ing the proper Android guys, herE?

Here is some history. In Android&apos;s original implementation, we didn&apos;t support semi-colon as separator. But we got bugs complaining some sites working on iPhone, but doesn&apos;t work on Android. So we added semi-colon support in Cupcake.

But I believe we have removed this as the version in WebKit doesn&apos;t support it. Can you double check with Froyo port?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296183</commentid>
    <comment_count>7</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2010-10-19 07:34:50 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #4)
&gt; &gt; Grace, could help cc&apos;ing the proper Android guys, herE?
&gt; 
&gt; Here is some history. In Android&apos;s original implementation, we didn&apos;t support semi-colon as separator. But we got bugs complaining some sites working on iPhone, but doesn&apos;t work on Android. So we added semi-colon support in Cupcake.
&gt; 
&gt; But I believe we have removed this as the version in WebKit doesn&apos;t support it. Can you double check with Froyo port?

Following the links for Froyo I end up with the below link, still containing the &quot;;&quot; support.

http://android.git.kernel.org/?p=platform/external/webkit.git;a=blob_plain;f=WebCore/dom/Document.cpp;hb=HEAD

or 

http://android.git.kernel.org/?p=platform/external/webkit.git;a=blob;f=WebCore/dom/Document.cpp;h=1f8edeb3505ce7b2e49ff2b88f2ef92c62d9a68d;hb=0433734318551aac3b7b82b9d8ab5d485d7d0439</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296392</commentid>
    <comment_count>8</comment_count>
    <who name="Grace Kloba">klobag</who>
    <bug_when>2010-10-19 14:04:47 -0700</bug_when>
    <thetext>Hmm, the internal change I referred to is made in May. Maybe it is after we cut the Froyo tree. So it should show up in the next public drop.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296396</commentid>
    <comment_count>9</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2010-10-19 14:10:03 -0700</bug_when>
    <thetext>Closing as invalid then!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>70644</attachid>
            <date>2010-10-13 11:57:00 -0700</date>
            <delta_ts>2010-10-14 10:25:02 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>0001-Meta-tag-parser-needs-to-support-as-separator-due-to.patch</filename>
            <type>text/plain</type>
            <size>3809</size>
            <attacher name="Kenneth Rohde Christiansen">kenneth</attacher>
            
              <data encoding="base64">RnJvbSAwZjQ4NjdiYjlhMDcxMDgyMj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gICAgICAg
d2hpbGUgKGJ1ZmZlcltpXSAhPSAnPScpIHsKLSAgICAgICAgICAgIGlmIChidWZmZXJbaV0gPT0g
JywnIHx8IGkgPj0gbGVuZ3RoKQorICAgICAgICAgICAgaWYgKGJ1ZmZlcltpXSA9PSAnLCcgfHwg
YnVmZmVyW2ldID09ICc7JyB8fCBpID49IGxlbmd0aCkKICAgICAgICAgICAgICAgICBicmVhazsK
ICAgICAgICAgICAgIGkrKzsKICAgICAgICAgfQogCi0gICAgICAgIC8vIHNraXAgdG8gZmlyc3Qg
bm9uLXNlcGFyYXRvciwgYnV0IGRvbid0IHNraXAgcGFzdCBhICcsJyBvciB0aGUgZW5kIG9mIHRo
ZSBzdHJpbmcKKyAgICAgICAgLy8gc2tpcCB0byBmaXJzdCBub24tc2VwYXJhdG9yLCBidXQgZG9u
J3Qgc2tpcCBwYXN0IGEgJywnLCAnOycgb3IgdGhlIGVuZCBvZiB0aGUgc3RyaW5nCiAgICAgICAg
IHdoaWxlIChpc1NlcGFyYXRvcihidWZmZXJbaV0pKSB7Ci0gICAgICAgICAgICBpZiAoYnVmZmVy
W2ldID09ICcsJyB8fCBpID49IGxlbmd0aCkKKyAgICAgICAgICAgIGlmIChidWZmZXJbaV0gPT0g
JywnIHx8IGJ1ZmZlcltpXSA9PSAnOycgfHwgaSA+PSBsZW5ndGgpCiAgICAgICAgICAgICAgICAg
YnJlYWs7CiAgICAgICAgICAgICBpKys7CiAgICAgICAgIH0KLS0gCjEuNy4xCgo=
</data>
<flag name="review"
          id="60511"
          type_id="1"
          status="-"
          setter="ap"
    />
    <flag name="commit-queue"
          id="60512"
          type_id="3"
          status="-"
          setter="ap"
    />
          </attachment>
      

    </bug>

</bugzilla>