<?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>28885</bug_id>
          
          <creation_ts>2009-09-01 12:16:41 -0700</creation_ts>
          <short_desc>Invalid parsing of backslash in url function</short_desc>
          <delta_ts>2017-05-14 20:51:27 -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>CSS</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>WORKSFORME</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>
          
          <blocked>37641</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Erik Arvidsson">arv</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ap</cc>
    
    <cc>glenn</cc>
    
    <cc>josimjamalpur</cc>
    
    <cc>seikwon.kim</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>143975</commentid>
    <comment_count>0</comment_count>
    <who name="Erik Arvidsson">arv</who>
    <bug_when>2009-09-01 12:16:41 -0700</bug_when>
    <thetext>According to http://www.w3.org/TR/css3-values/#uris

Parentheses, commas, whitespace characters, single quotes (&apos;) and double quotes (&quot;) appearing in a URI must be escaped with a backslash: &apos;\(&apos;, &apos;\)&apos;, &apos;\,&apos;.

We unescape those escaped characters but the unescaping of \\ at the end of the url is broken.

The following works

url(&quot;http://digg.com/?\\abc&quot;)

but this does not work

url(&quot;http://digg.com/?\\&quot;)

it never even tries to do a network request.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190858</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-02-16 19:08:32 -0800</bug_when>
    <thetext>See also: bug 18604.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>730177</commentid>
    <comment_count>2</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2012-09-27 20:01:42 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; See also: bug 18604.

I closed bug 18604 as invalid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>730204</commentid>
    <comment_count>3</comment_count>
      <attachid>166135</attachid>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2012-09-27 20:47:52 -0700</bug_when>
    <thetext>Created attachment 166135
test example - worksforme</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>730205</commentid>
    <comment_count>4</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2012-09-27 20:50:29 -0700</bug_when>
    <thetext>the just attached test shows there is no problem with escaped backslash at end of url(), both in quoted and unquoted forms; verified (manually) that both perform network access on URL with single backslash at end (after unescape)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>730210</commentid>
    <comment_count>5</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2012-09-27 20:56:49 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; the just attached test shows there is no problem with escaped backslash at end of url(), both in quoted and unquoted forms; verified (manually) that both perform network access on URL with single backslash at end (after unescape)

tested in 537+ mac-mountainlion</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>166135</attachid>
            <date>2012-09-27 20:47:52 -0700</date>
            <delta_ts>2012-09-27 20:47:52 -0700</delta_ts>
            <desc>test example - worksforme</desc>
            <filename>test.xhtml</filename>
            <type>application/xhtml+xml</type>
            <size>673</size>
            <attacher name="Glenn Adams">glenn</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjEvL0VOIiAiaHR0cDov
L3d3dy53My5vcmcvVFIveGh0bWwxMS9EVEQveGh0bWwxMS5kdGQiPgo8aHRtbCB4bWxucz0iaHR0
cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCI+CiA8aGVhZD4KICA8dGl0bGU+Q2hlY2sgZXNjYXBl
ZCBiYWNrc2xhc2ggYXQgZW5kIG9mIFVSTCwgYm90aCBxdW90ZWQgYW5kIHVucXVvdGVkLjwvdGl0
bGU+CiAgPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KICAgIGRpdiB7YmFja2dyb3VuZC1jb2xvcjog
cmVkfQogIDwvc3R5bGU+CiAgPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KICAgICNvbmUge2JhY2tn
cm91bmQ6IHVybCgiaHR0cDovL2RpZ2cuY29tLz9cXCIpOyBiYWNrZ3JvdW5kLWNvbG9yOiBncmVl
bn0KICA8L3N0eWxlPgogIDxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+CiAgICAjdHdvIHtiYWNrZ3Jv
dW5kOiB1cmwoaHR0cDovL2RpZ2cuY29tLz9cXCk7IGJhY2tncm91bmQtY29sb3I6IGdyZWVufQog
IDwvc3R5bGU+CiA8L2hlYWQ+CiA8Ym9keT4KICA8ZGl2IGlkPSJvbmUiPlRoaXMgc2hvdWxkIGhh
dmUgYSBncmVlbiBiYWNrZ3JvdW5kPC9kaXY+CiAgPGRpdiBpZD0idHdvIj5UaGlzIHNob3VsZCBo
YXZlIGEgZ3JlZW4gYmFja2dyb3VuZDwvZGl2PgogPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>