<?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>35771</bug_id>
          
          <creation_ts>2010-03-04 15:27:58 -0800</creation_ts>
          <short_desc>[chromium] WebDocument:applicationID() crashes on &lt;meta&gt; tag with no http-equiv attribute</short_desc>
          <delta_ts>2010-03-04 21:52:25 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit API</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="John Gregg">johnnyg</reporter>
          <assigned_to name="John Gregg">johnnyg</assigned_to>
          <cc>aa</cc>
    
    <cc>commit-queue</cc>
    
    <cc>fishd</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>196243</commentid>
    <comment_count>0</comment_count>
    <who name="John Gregg">johnnyg</who>
    <bug_when>2010-03-04 15:27:58 -0800</bug_when>
    <thetext>if all the other checks fail, and there is a meta tag with no http-equiv attribute, the code calls .lower() on null.

see also http://code.google.com/p/chromium/issues/detail?id=34961 for repro steps using chrome.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196254</commentid>
    <comment_count>1</comment_count>
      <attachid>50061</attachid>
    <who name="John Gregg">johnnyg</who>
    <bug_when>2010-03-04 15:58:26 -0800</bug_when>
    <thetext>Created attachment 50061
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196255</commentid>
    <comment_count>2</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2010-03-04 16:04:20 -0800</bug_when>
    <thetext>Attachment 50061 did not pass style-queue:

Failed to run &quot;WebKitTools/Scripts/check-webkit-style&quot; exit_code: 1
WebKit/chromium/src/WebDocument.cpp:152:  Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side.  [whitespace/operators] [4]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196257</commentid>
    <comment_count>3</comment_count>
      <attachid>50062</attachid>
    <who name="John Gregg">johnnyg</who>
    <bug_when>2010-03-04 16:25:14 -0800</bug_when>
    <thetext>Created attachment 50062
fix style warning</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196264</commentid>
    <comment_count>4</comment_count>
      <attachid>50062</attachid>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2010-03-04 16:38:14 -0800</bug_when>
    <thetext>Comment on attachment 50062
fix style warning

Can we please just remove WebDocument::applicationID.  As I mentioned to Aaron,
it doesn&apos;t belong here and can be implemented purely in terms of WebKit APIs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196265</commentid>
    <comment_count>5</comment_count>
      <attachid>50062</attachid>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2010-03-04 16:39:22 -0800</bug_when>
    <thetext>Comment on attachment 50062
fix style warning

&gt; Index: WebKit/chromium/src/WebDocument.cpp
&gt; +        if (element-&gt;hasAttribute(&quot;http-equiv&quot;)
&gt; +            &amp;&amp; element-&gt;getAttribute(&quot;http-equiv&quot;).lower() == kChromeApplicationHeader) {
&gt;              return element-&gt;getAttribute(&quot;value&quot;);
&gt;          }

nit: there should be no brackets around single line statements</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196267</commentid>
    <comment_count>6</comment_count>
    <who name="Aaron Boodman">aa</who>
    <bug_when>2010-03-04 16:42:14 -0800</bug_when>
    <thetext>Darin, I knew you&apos;d say that.

I am going to start pulling it out soon. Can johnnyg just fix this immediate
issue in the meantime?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196268</commentid>
    <comment_count>7</comment_count>
    <who name="John Gregg">johnnyg</who>
    <bug_when>2010-03-04 16:47:07 -0800</bug_when>
    <thetext>Because notifications are hooked up to applicationID() already, this is causing real crashes when people use notifications... so i&apos;d rather not wait for a large refactor to fix that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196270</commentid>
    <comment_count>8</comment_count>
      <attachid>50065</attachid>
    <who name="John Gregg">johnnyg</who>
    <bug_when>2010-03-04 16:48:31 -0800</bug_when>
    <thetext>Created attachment 50065
removing {}s

well I didn&apos;t put the braces there but I can remove them...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196323</commentid>
    <comment_count>9</comment_count>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2010-03-04 20:09:38 -0800</bug_when>
    <thetext>Sorry to give you a hard time about the applicationID thing.  I would have r+&apos;d the patch before if it didn&apos;t have the style issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196353</commentid>
    <comment_count>10</comment_count>
      <attachid>50065</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-03-04 21:52:20 -0800</bug_when>
    <thetext>Comment on attachment 50065
removing {}s

Clearing flags on attachment: 50065

Committed r55571: &lt;http://trac.webkit.org/changeset/55571&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>196354</commentid>
    <comment_count>11</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-03-04 21:52:25 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>50061</attachid>
            <date>2010-03-04 15:58:26 -0800</date>
            <delta_ts>2010-03-04 16:25:14 -0800</delta_ts>
            <desc>patch</desc>
            <filename>bug35771.patch</filename>
            <type>text/plain</type>
            <size>1456</size>
            <attacher name="John Gregg">johnnyg</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9jaHJvbWl1bS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gV2ViS2l0L2No
cm9taXVtL0NoYW5nZUxvZwkocmV2aXNpb24gNTU1NTgpCisrKyBXZWJLaXQvY2hyb21pdW0vQ2hh
bmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTQgQEAKKzIwMTAtMDMtMDQgIEpvaG4g
R3JlZ2cgIDxqb2hubnlnQGdvb2dsZS5jb20+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZ
IChPT1BTISkuCisKKyAgICAgICAgW2Nocm9taXVtXSBXZWJEb2N1bWVudDphcHBsaWNhdGlvbklE
KCkgY3Jhc2hlcyBvbiA8bWV0YT4gdGFnIHdpdGggbm8gaHR0cC1lcXVpdiBhdHRyaWJ1dGUKKyAg
ICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTM1NzcxCisKKyAg
ICAgICAgKiBzcmMvV2ViRG9jdW1lbnQuY3BwOgorICAgICAgICAoV2ViS2l0OjpXZWJEb2N1bWVu
dDo6YXBwbGljYXRpb25JRCk6CisgICAgICAgIGNoZWNrIGZvciBwcmVzZW5jZSBvZiBodHRwLWVx
dWl2IGF0dHJpYnV0ZSBiZWZvcmUgbG93ZXIoKWluZyBpdC4KKwogMjAxMC0wMy0wNCAgRGFyaW4g
RmlzaGVyICA8ZGFyaW5AY2hyb21pdW0ub3JnPgogCiAgICAgICAgIFJldmlld2VkIGJ5IERtaXRy
eSBUaXRvdi4KSW5kZXg6IFdlYktpdC9jaHJvbWl1bS9zcmMvV2ViRG9jdW1lbnQuY3BwCj09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT0KLS0tIFdlYktpdC9jaHJvbWl1bS9zcmMvV2ViRG9jdW1lbnQuY3BwCShyZXZpc2lvbiA1
NTU1NykKKysrIFdlYktpdC9jaHJvbWl1bS9zcmMvV2ViRG9jdW1lbnQuY3BwCSh3b3JraW5nIGNv
cHkpCkBAIC0xNDksNyArMTQ5LDggQEAgV2ViU3RyaW5nIFdlYkRvY3VtZW50OjphcHBsaWNhdGlv
bklEKCkgYwogICAgICAgICBjb25zdF9jYXN0PERvY3VtZW50Kj4oZG9jdW1lbnQpLT5nZXRFbGVt
ZW50c0J5VGFnTmFtZSgibWV0YSIpOwogICAgIGZvciAodW5zaWduZWQgaSA9IDA7IGkgPCBtZXRh
VGFncy0+bGVuZ3RoKCk7ICsraSkgewogICAgICAgICBFbGVtZW50KiBlbGVtZW50ID0gc3RhdGlj
X2Nhc3Q8RWxlbWVudCo+KG1ldGFUYWdzLT5pdGVtKGkpKTsKLSAgICAgICAgaWYgKGVsZW1lbnQt
PmdldEF0dHJpYnV0ZSgiaHR0cC1lcXVpdiIpLmxvd2VyKCkgPT0KKyAgICAgICAgaWYgKGVsZW1l
bnQtPmhhc0F0dHJpYnV0ZSgiaHR0cC1lcXVpdiIpICYmCisgICAgICAgICAgICBlbGVtZW50LT5n
ZXRBdHRyaWJ1dGUoImh0dHAtZXF1aXYiKS5sb3dlcigpID09CiAgICAgICAgICAgICAgICAga0No
cm9tZUFwcGxpY2F0aW9uSGVhZGVyKSB7CiAgICAgICAgICAgICByZXR1cm4gZWxlbWVudC0+Z2V0
QXR0cmlidXRlKCJ2YWx1ZSIpOwogICAgICAgICB9Cg==
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>50062</attachid>
            <date>2010-03-04 16:25:14 -0800</date>
            <delta_ts>2010-03-04 16:48:31 -0800</delta_ts>
            <desc>fix style warning</desc>
            <filename>bug35771b.patch</filename>
            <type>text/plain</type>
            <size>1491</size>
            <attacher name="John Gregg">johnnyg</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9jaHJvbWl1bS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gV2ViS2l0L2No
cm9taXVtL0NoYW5nZUxvZwkocmV2aXNpb24gNTU1NTgpCisrKyBXZWJLaXQvY2hyb21pdW0vQ2hh
bmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTQgQEAKKzIwMTAtMDMtMDQgIEpvaG4g
R3JlZ2cgIDxqb2hubnlnQGdvb2dsZS5jb20+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZ
IChPT1BTISkuCisKKyAgICAgICAgW2Nocm9taXVtXSBXZWJEb2N1bWVudDphcHBsaWNhdGlvbklE
KCkgY3Jhc2hlcyBvbiA8bWV0YT4gdGFnIHdpdGggbm8gaHR0cC1lcXVpdiBhdHRyaWJ1dGUKKyAg
ICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTM1NzcxCisKKyAg
ICAgICAgKiBzcmMvV2ViRG9jdW1lbnQuY3BwOgorICAgICAgICAoV2ViS2l0OjpXZWJEb2N1bWVu
dDo6YXBwbGljYXRpb25JRCk6CisgICAgICAgIGNoZWNrIGZvciBwcmVzZW5jZSBvZiBodHRwLWVx
dWl2IGF0dHJpYnV0ZSBiZWZvcmUgbG93ZXIoKWluZyBpdC4KKwogMjAxMC0wMy0wNCAgRGFyaW4g
RmlzaGVyICA8ZGFyaW5AY2hyb21pdW0ub3JnPgogCiAgICAgICAgIFJldmlld2VkIGJ5IERtaXRy
eSBUaXRvdi4KSW5kZXg6IFdlYktpdC9jaHJvbWl1bS9zcmMvV2ViRG9jdW1lbnQuY3BwCj09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT0KLS0tIFdlYktpdC9jaHJvbWl1bS9zcmMvV2ViRG9jdW1lbnQuY3BwCShyZXZpc2lvbiA1
NTU1NykKKysrIFdlYktpdC9jaHJvbWl1bS9zcmMvV2ViRG9jdW1lbnQuY3BwCSh3b3JraW5nIGNv
cHkpCkBAIC0xNDksOCArMTQ5LDggQEAgV2ViU3RyaW5nIFdlYkRvY3VtZW50OjphcHBsaWNhdGlv
bklEKCkgYwogICAgICAgICBjb25zdF9jYXN0PERvY3VtZW50Kj4oZG9jdW1lbnQpLT5nZXRFbGVt
ZW50c0J5VGFnTmFtZSgibWV0YSIpOwogICAgIGZvciAodW5zaWduZWQgaSA9IDA7IGkgPCBtZXRh
VGFncy0+bGVuZ3RoKCk7ICsraSkgewogICAgICAgICBFbGVtZW50KiBlbGVtZW50ID0gc3RhdGlj
X2Nhc3Q8RWxlbWVudCo+KG1ldGFUYWdzLT5pdGVtKGkpKTsKLSAgICAgICAgaWYgKGVsZW1lbnQt
PmdldEF0dHJpYnV0ZSgiaHR0cC1lcXVpdiIpLmxvd2VyKCkgPT0KLSAgICAgICAgICAgICAgICBr
Q2hyb21lQXBwbGljYXRpb25IZWFkZXIpIHsKKyAgICAgICAgaWYgKGVsZW1lbnQtPmhhc0F0dHJp
YnV0ZSgiaHR0cC1lcXVpdiIpCisgICAgICAgICAgICAmJiBlbGVtZW50LT5nZXRBdHRyaWJ1dGUo
Imh0dHAtZXF1aXYiKS5sb3dlcigpID09IGtDaHJvbWVBcHBsaWNhdGlvbkhlYWRlcikgewogICAg
ICAgICAgICAgcmV0dXJuIGVsZW1lbnQtPmdldEF0dHJpYnV0ZSgidmFsdWUiKTsKICAgICAgICAg
fQogICAgIH0K
</data>
<flag name="review"
          id="33109"
          type_id="1"
          status="-"
          setter="fishd"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>50065</attachid>
            <date>2010-03-04 16:48:31 -0800</date>
            <delta_ts>2010-03-04 21:52:20 -0800</delta_ts>
            <desc>removing {}s</desc>
            <filename>bug35771c.patch</filename>
            <type>text/plain</type>
            <size>1517</size>
            <attacher name="John Gregg">johnnyg</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9jaHJvbWl1bS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gV2ViS2l0L2No
cm9taXVtL0NoYW5nZUxvZwkocmV2aXNpb24gNTU1NTgpCisrKyBXZWJLaXQvY2hyb21pdW0vQ2hh
bmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTQgQEAKKzIwMTAtMDMtMDQgIEpvaG4g
R3JlZ2cgIDxqb2hubnlnQGdvb2dsZS5jb20+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZ
IChPT1BTISkuCisKKyAgICAgICAgW2Nocm9taXVtXSBXZWJEb2N1bWVudDphcHBsaWNhdGlvbklE
KCkgY3Jhc2hlcyBvbiA8bWV0YT4gdGFnIHdpdGggbm8gaHR0cC1lcXVpdiBhdHRyaWJ1dGUKKyAg
ICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTM1NzcxCisKKyAg
ICAgICAgKiBzcmMvV2ViRG9jdW1lbnQuY3BwOgorICAgICAgICAoV2ViS2l0OjpXZWJEb2N1bWVu
dDo6YXBwbGljYXRpb25JRCk6CisgICAgICAgIGNoZWNrIGZvciBwcmVzZW5jZSBvZiBodHRwLWVx
dWl2IGF0dHJpYnV0ZSBiZWZvcmUgbG93ZXIoKWluZyBpdC4KKwogMjAxMC0wMy0wNCAgRGFyaW4g
RmlzaGVyICA8ZGFya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2YWx1ZSIpOwotICAgICAgICB9
CiAgICAgfQogCiAgICAgcmV0dXJuIFdlYlN0cmluZygpOwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>