<?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>32712</bug_id>
          
          <creation_ts>2009-12-18 07:39:13 -0800</creation_ts>
          <short_desc>WebKit crashes on svg font-face-uri element with empty href</short_desc>
          <delta_ts>2009-12-18 08:28:41 -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>SVG</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>32357</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chang Shu">cshu</reporter>
          <assigned_to name="Chang Shu">cshu</assigned_to>
          <cc>darin</cc>
    
    <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>173149</commentid>
    <comment_count>0</comment_count>
    <who name="Chang Shu">cshu</who>
    <bug_when>2009-12-18 07:39:13 -0800</bug_when>
    <thetext>Either DumpRenderTree or any browsers will crash running the following svg page.

&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;?xml-stylesheet href=&quot;data:text/css,text%7Bfont-family%3AACID3svgfont%7D&quot;?&gt;
&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; width=&quot;100&quot; height=&quot;100&quot;&gt;
        
    &lt;font-face font-family=&quot;ACID3svgfont&quot;&gt;
        &lt;font-face-src&gt;
            &lt;font-face-uri xlink:href=&quot;&quot;/&gt;
        &lt;/font-face-src&gt;
    &lt;/font-face&gt;
    &lt;text&gt;X&lt;/text&gt;
&lt;/svg&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173153</commentid>
    <comment_count>1</comment_count>
      <attachid>45149</attachid>
    <who name="Chang Shu">cshu</who>
    <bug_when>2009-12-18 07:55:21 -0800</bug_when>
    <thetext>Created attachment 45149
fix patch

I didn&apos;t add a layout test for this crash. I feel the layout tests are growing too big if we add test cases for this type of code change. But if the reviewers prefer the other way, I can add it real quick.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173160</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2009-12-18 08:17:44 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; I didn&apos;t add a layout test for this crash. I feel the layout tests are growing
&gt; too big if we add test cases for this type of code change.

I do not agree. We do want a test for this kind of crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173161</commentid>
    <comment_count>3</comment_count>
      <attachid>45149</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2009-12-18 08:17:56 -0800</bug_when>
    <thetext>Comment on attachment 45149
fix patch

Please add a test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173163</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2009-12-18 08:28:41 -0800</bug_when>
    <thetext>This was filed as bug 32357 and fixed about 10 hours ago.

*** This bug has been marked as a duplicate of bug 32357 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>45149</attachid>
            <date>2009-12-18 07:55:21 -0800</date>
            <delta_ts>2009-12-18 08:17:56 -0800</delta_ts>
            <desc>fix patch</desc>
            <filename>bug32712_1.patch</filename>
            <type>text/plain</type>
            <size>1500</size>
            <attacher name="Chang Shu">cshu</attacher>
            
              <data encoding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Q29yZS9zdmcvU1ZHRm9udEZhY2VVcmlFbGVtZW50
LmNwcAkocmV2aXNpb24gNTIxMTQpCisrKyBXZWJDb3JlL3N2Zy9TVkdGb250RmFjZVVyaUVsZW1l
bnQuY3BwCSh3b3JraW5nIGNvcHkpCkBAIC05MSw5ICs5MSwxMSBAQCB2b2lkIFNWR0ZvbnRGYWNl
VXJpRWxlbWVudDo6bG9hZEZvbnQoKQogICAgIGlmICghaHJlZi5pc051bGwoKSkgeyAgICAgICAg
CiAgICAgICAgIERvY0xvYWRlciogZG9jTG9hZGVyID0gZG9jdW1lbnQoKS0+ZG9jTG9hZGVyKCk7
CiAgICAgICAgIG1fY2FjaGVkRm9udCA9IGRvY0xvYWRlci0+cmVxdWVzdEZvbnQoaHJlZik7Ci0g
ICAgICAgIG1fY2FjaGVkRm9udC0+c2V0U1ZHRm9udCh0cnVlKTsKLSAgICAgICAgbV9jYWNoZWRG
b250LT5hZGRDbGllbnQodGhpcyk7Ci0gICAgICAgIG1fY2FjaGVkRm9udC0+YmVnaW5Mb2FkSWZO
ZWVkZWQoZG9jTG9hZGVyKTsKKyAgICAgICAgaWYgKG1fY2FjaGVkRm9udCkgeworICAgICAgICAg
ICAgbV9jYWNoZWRGb250LT5zZXRTVkdGb250KHRydWUpOworICAgICAgICAgICAgbV9jYWNoZWRG
b250LT5hZGRDbGllbnQodGhpcyk7CisgICAgICAgICAgICBtX2NhY2hlZEZvbnQtPmJlZ2luTG9h
ZElmTmVlZGVkKGRvY0xvYWRlcik7CisgICAgICAgIH0KICAgICB9IGVsc2UKICAgICAgICAgbV9j
YWNoZWRGb250ID0gMDsKIH0K
</data>
<flag name="review"
          id="27132"
          type_id="1"
          status="-"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>