<?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>201104</bug_id>
          
          <creation_ts>2019-08-23 16:41:22 -0700</creation_ts>
          <short_desc>Parsing a data URL image with a fragment identifier at the end results a broken image</short_desc>
          <delta_ts>2022-10-21 16:31:21 -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>SVG</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</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>200143</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Said Abou-Hallawa">sabouhallawa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1564688</commentid>
    <comment_count>0</comment_count>
      <attachid>377179</attachid>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2019-08-23 16:41:22 -0700</bug_when>
    <thetext>Created attachment 377179
test case

Open the attached test case.

Result: The SVG shows a broken image.
Expected: A 100x100 green rectangle.

The SVG has an image which has href=&quot;data:image/svg+xml&lt;svg&gt;...&lt;view id=&apos;view&apos;/&gt;...&lt;/svg&gt;#view&quot;. Parsing this URL fails and the image loader marks the image a &quot;broken image&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1564690</commentid>
    <comment_count>1</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2019-08-23 16:43:51 -0700</bug_when>
    <thetext>Related WPT failed test:

https://wpt.fyi/results/svg/embedded/image-embedding-svg-viewref-with-viewbox.svg?label=master&amp;label=experimental&amp;aligned</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1565016</commentid>
    <comment_count>2</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2019-08-26 11:06:28 -0700</bug_when>
    <thetext>It looks like something special needs to be done when loading an SVN data url with a fragment:
https://svgwg.org/svg2-draft/linking.html#LinksIntoSVG</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907465</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-10-21 16:31:21 -0700</bug_when>
    <thetext>Safari Technology Preview 156 passes following WPT test mentioned in Comment 01 and also the attached test case show &quot;green&quot; square similar to Chrome Canary 109 and Firefox Nightly 108. Marking this as &quot;RESOLVED CONFIGURATION CHANGED&quot;. Thanks!

Please reopen if this is reproducible with other test case. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>377179</attachid>
            <date>2019-08-23 16:41:22 -0700</date>
            <delta_ts>2019-08-23 16:41:22 -0700</delta_ts>
            <desc>test case</desc>
            <filename>test004.svg</filename>
            <type>image/svg+xml</type>
            <size>355</size>
            <attacher name="Said Abou-Hallawa">sabouhallawa</attacher>
            
              <data encoding="base64">PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxyZWN0IHdpZHRoPSIx
MDAiIGhlaWdodD0iMTAwIiBmaWxsPSJyZWQiLz4KICA8aW1hZ2Ugd2lkdGg9IjEwMCIgaGVpZ2h0
PSIxMDAiCiAgICAgICAgIGhyZWY9ImRhdGE6aW1hZ2Uvc3ZnK3htbCwKICAgICAgICAgICAgJTNj
c3ZnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyclM2UKICAgICAgICAgICAgICAg
ICUzY3ZpZXcgaWQ9J3ZpZXcnIC8lM2UKICAgICAgICAgICAgICAgICUzY3JlY3Qgd2lkdGg9JzEw
MCcgaGVpZ2h0PScxMDAnIGZpbGw9J2dyZWVuJy8lM2UKICAgICAgICAgICAgJTNjL3N2ZyUzZSN2
aWV3Ii8+Cjwvc3ZnPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>