<?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>30262</bug_id>
          
          <creation_ts>2009-10-09 14:54:50 -0700</creation_ts>
          <short_desc>[Chromium] KURLGoogle&apos;s protocolIs barfs on input containing hyphens</short_desc>
          <delta_ts>2009-10-10 06:54:31 -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>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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="Darin Fisher (:fishd, Google)">fishd</reporter>
          <assigned_to name="Darin Fisher (:fishd, Google)">fishd</assigned_to>
          <cc>brettw</cc>
    
    <cc>eric</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>153767</commentid>
    <comment_count>0</comment_count>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2009-10-09 14:54:50 -0700</bug_when>
    <thetext>[Chromium] KURLGoogle&apos;s protocolIs barfs on input containing hyphens</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>153769</commentid>
    <comment_count>1</comment_count>
      <attachid>40965</attachid>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2009-10-09 14:57:48 -0700</bug_when>
    <thetext>Created attachment 40965
v1 patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>153795</commentid>
    <comment_count>2</comment_count>
      <attachid>40965</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-10-09 16:16:30 -0700</bug_when>
    <thetext>Comment on attachment 40965
v1 patch

Needs test case or explanation of why there is none in the ChangeLog.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>153796</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-10-09 16:16:51 -0700</bug_when>
    <thetext>At least, I assume this is tesatable via a layout test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>153835</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2009-10-09 19:48:54 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; At least, I assume this is tesatable via a layout test?

This assertion was getting hit via a Chrome UI test when I switched some code in Chromium&apos;s webkit/glue from using GURL to KURL.  I think the assertion is plainly bogus.

This is a case where a unit test would be superior to a layout test IMO since you&apos;d be able to be certain that you are executing this code path.

Also, I realized that this change would probably be better:

-        ASSERT(isASCIILower(*str));
+        ASSERT(toASCIILower(*str) == *str);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>153841</commentid>
    <comment_count>5</comment_count>
      <attachid>40983</attachid>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2009-10-09 20:36:04 -0700</bug_when>
    <thetext>Created attachment 40983
v2 patch

Now with a better solution and a better ChangeLog entry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>153842</commentid>
    <comment_count>6</comment_count>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2009-10-09 20:38:23 -0700</bug_when>
    <thetext>Unfortunately, I could not find a way to cause this code path to be reached with input that contains a hyphen.  It is a code path that can only be reached in Chrome due to the way it uses WebCore.

I&apos;ll add something to GKURL_unittest.cpp, which I plan to one day upstream to svn.webkit.org.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>153844</commentid>
    <comment_count>7</comment_count>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2009-10-09 20:54:39 -0700</bug_when>
    <thetext>FYI, unit test is here:  http://codereview.chromium.org/261058</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>153847</commentid>
    <comment_count>8</comment_count>
      <attachid>40983</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-10-09 22:04:09 -0700</bug_when>
    <thetext>Comment on attachment 40983
v2 patch

LGTM.  Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>153872</commentid>
    <comment_count>9</comment_count>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2009-10-10 06:54:31 -0700</bug_when>
    <thetext>Landed as http://trac.webkit.org/changeset/49416</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>40965</attachid>
            <date>2009-10-09 14:57:48 -0700</date>
            <delta_ts>2009-10-09 20:36:04 -0700</delta_ts>
            <desc>v1 patch</desc>
            <filename>kurl_1.txt</filename>
            <type>text/plain</type>
            <size>1192</size>
            <attacher name="Darin Fisher (:fishd, Google)">fishd</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQotLS0gV2ViQ29yZS9DaGFuZ2VM
b2cJKHJldmlzaW9uIDQ5NDA0KQorKysgV2ViQ29yZS9DaGFuZ2VMb2cJKHdvcmtpbmcgY29weSkK
QEAgLTEsMyArMSwxMyBAQAorMjAwOS0xMC0wOSAgRGFyaW4gRmlzaGVyICA8ZGFyaW5AY2hyb21p
dW0ub3JnPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAg
IFtDaHJvbWl1bV0gS1VSTEdvb2dsZSdzIHByb3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FTQ0lJTG93ZXIoKmJl
Z2luKyspICE9ICpzdHIrKykKICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICB9Cg==
</data>
<flag name="review"
          id="22267"
          type_id="1"
          status="-"
          setter="eric"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>40983</attachid>
            <date>2009-10-09 20:36:04 -0700</date>
            <delta_ts>2009-10-09 22:04:09 -0700</delta_ts>
            <desc>v2 patch</desc>
            <filename>kurl_2.txt</filename>
            <type>text/plain</type>
            <size>1437</size>
            <attacher name="Darin Fisher (:fishd, Google)">fishd</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQotLS0gV2ViQ29yZS9DaGFuZ2VM
b2cJKHJldmlzaW9uIDQ5NDEzKQorKysgV2ViQ29yZS9DaGFuZ2VMb2cJKHdvcmtpbmcgY29weSkK
QEAgLTEsMyArMSwxOCBAQAorMjAwOS0xMC0wOSAgRGFyaW4gRmlzaGVyICA8ZGFyaW5AY2hyb21p
dW0ub3JnPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAg
IFtDaHJvbWl1bV0gS1VSTEdvb2dsZSdzIHByb3RvY29sSXMgYmFyZnMgb24gaW5wdXQgY29udGFp
bmluZyBoeXBoZW5zCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNn
aT9pZD0zMDI2MgorCisgICAgICAgIFRoaXMgaXMgbm90IHRlc3RhYmxlIGZyb20gV2ViS2l0IHNp
bmNlIFdlYktpdCBuZXZlciB1c2VzIHRoZSBtZW1iZXIKKyAgICAgICAgZnVuY3Rpb24gZm9ybSBv
ZiBwcm90b2NvbElzIHdpdGggaW5wdXQgdGhhdCBjYW4gYmUgY29udH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RvQVNDSUlMb3dlcigqYmVnaW4rKykgIT0gKnN0cisrKQogICAgICAgICAgICAgcmV0dXJuIGZh
bHNlOwogICAgIH0K
</data>
<flag name="review"
          id="22284"
          type_id="1"
          status="+"
          setter="eric"
    />
          </attachment>
      

    </bug>

</bugzilla>