<?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>164386</bug_id>
          
          <creation_ts>2016-11-03 16:20:09 -0700</creation_ts>
          <short_desc>SVG sprites don&apos;t work when served from server</short_desc>
          <delta_ts>2016-11-11 11:39:42 -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>Images</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>163811</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=163811</see_also>
          <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="Xidorn Quan">xidorn-webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>sabouhallawa</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1247914</commentid>
    <comment_count>0</comment_count>
      <attachid>293824</attachid>
    <who name="Xidorn Quan">xidorn-webkit</who>
    <bug_when>2016-11-03 16:20:09 -0700</bug_when>
    <thetext>Created attachment 293824
testcase

Using URL fragment to specify SVG sprite as image works when the SVG file is a local file. However, it doesn&apos;t work when the SVG file is served remotely. (Or even from localhost)

Steps to Reproduce:
1. Extract the testcase file to a directory
2. Run an HTTP server for that directory (simplest way is python -mSimpleHTTPServer)
3. Browse the test file via HTTP

Expected Results:
It should show a green block, like what it shows when you open the file from local directly.

Actual Results:
It shows a red block.


I can reliably reproduce this issue on Safari 10 as well as the Technology Preview. I tried to test Nightly but it seems it doesn&apos;t work at all, so I gave up...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1248757</commentid>
    <comment_count>1</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2016-11-07 09:08:11 -0800</bug_when>
    <thetext>Probably a duplicate of 163811</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1250317</commentid>
    <comment_count>2</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2016-11-11 11:39:42 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 163811 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>293824</attachid>
            <date>2016-11-03 16:20:09 -0700</date>
            <delta_ts>2016-11-03 16:20:09 -0700</delta_ts>
            <desc>testcase</desc>
            <filename>test.zip</filename>
            <type>application/x-zip-compressed</type>
            <size>565</size>
            <attacher name="Xidorn Quan">xidorn-webkit</attacher>
            
              <data encoding="base64">UEsDBBQACAAIAKsDZEkAAAAAAAAAAAAAAAAJABAAdGVzdC5odG1sVVgMABM8G1ixOxtY9QEAALNR
dPF3DokMcFXIKMnNseOyAVEKOYl56bZKqXlKQIHc1JJEheSMxKLi1BJbpdAQN10LkHBmbrpCcVGy
rVJJanGJXnFZunJ6USpQh0J5ZkpJhq2SoYEBUBkAUEsHCIUMZ5ZZAAAAXwAAAFBLAwQUAAgACACZ
A2RJAAAAAAAAAAAAAAAACAAQAHRlc3Quc3ZnVVgMAA48G1iSOxtY9QEAAI2QsQ6CMBCGd57ici66
0KITtWVwxhdwI6FCYy2ENhRifHdpxbg4eMnlcrnv///kuB0bmO7aWIGtcz0jxHuf+kPaDQ3ZU0rJ
QmACoSLHJq3M7Red5XlO4nXlRyX9qZsEUqCQ0dhYLDdu3axlsWkGKQ0zndsyVw2NdDt4QK1sr6uZ
gemMPMKTkzcddH3lWrgqrQUOskaoBZ4huJfR/zNDl2vmBclXqhZBDMXVZV3+9eHhG0XyAlBLBwiC
VtKItAAAADYBAABQSwECFQMUAAgACACrA2RJhQxnllkAAABfAAAACQAMAAAAAAAAAABApIEAAAAA
dGVzdC5odG1sVVgIABM8G1ixOxtYUEsBAhUDFAAIAAgAmQNkSYJW0oi0AAAANgEAAAgADAAAAAAA
AAAAQKSBoAAAAHRlc3Quc3ZnVVgIAA48G1iSOxtYUEsFBgAAAAACAAIAhQAAAJoBAAAAAA==
</data>

          </attachment>
      

    </bug>

</bugzilla>