<?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>74500</bug_id>
          
          <creation_ts>2011-12-14 04:59:47 -0800</creation_ts>
          <short_desc>&lt;img src=&quot;#&quot;&gt; requests main document resource unnecessarily</short_desc>
          <delta_ts>2014-04-07 04:03:00 -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>Page Loading</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Vsevolod Vlasov">vsevik</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>darin</cc>
    
    <cc>ian</cc>
    
    <cc>japhet</cc>
    
    <cc>m.goleb+bugzilla</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>520856</commentid>
    <comment_count>0</comment_count>
    <who name="Vsevolod Vlasov">vsevik</who>
    <bug_when>2011-12-14 04:59:47 -0800</bug_when>
    <thetext>Looks like the fragment case was missed in https://bugs.webkit.org/show_bug.cgi?id=69211.
Originally found in https://code.google.com/p/chromium/issues/detail?id=105535.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>520954</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-12-14 08:45:35 -0800</bug_when>
    <thetext>Empty URL is a special case in HTML5. We&apos;ll need new research for src=&quot;#&quot;, and a change in the spec if it&apos;s warranted. See &lt;http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-December/024357.html&gt; for a discussion that resulted in changing the spec for empty URLs.

What do other browsers do?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>521835</commentid>
    <comment_count>2</comment_count>
    <who name="Vsevolod Vlasov">vsevik</who>
    <bug_when>2011-12-15 04:46:35 -0800</bug_when>
    <thetext>I used following test cases:

1. &lt;img src=&quot;&quot;&gt;&lt;/img&gt;
2. &lt;img src=&quot;#&quot;&gt;&lt;/img&gt;
3. &lt;img src=&quot;#test&quot;&gt;&lt;/img&gt;

Opera 11 makes only one request (main document) in each case, so they are ignoring fragment and consider &quot;#&quot; an empty url.

Firefox 3.6 makes one request in the first case and two in other cases.

Firefox 8 makes two requests in each case (so they are making two requests for src=&quot;&quot; again!)

Chromium/Safari with ToT webkit make one request in the first case and two in other cases as we would expect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>521932</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-12-15 08:52:53 -0800</bug_when>
    <thetext>&gt; Firefox 8 makes two requests in each case (so they are making two requests for src=&quot;&quot; again!)

Please file a bugzilla.mozilla.org bug for them to fix.

&gt; Chromium/Safari with ToT webkit make one request in the first case and two in other cases as we would expect.

Getting a spec change first is probably the best way to go about this. Would you be willing to e-mail WHATWG?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>546576</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-01-31 15:40:54 -0800</bug_when>
    <thetext>How common is this? Unless it&apos;s really common (why would it be?) I&apos;d suggest not doing anything special for the latter two cases. (src=&quot;&quot; is common because it&apos;s the default value.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>