<?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>241676</bug_id>
          
          <creation_ts>2022-06-16 00:58:51 -0700</creation_ts>
          <short_desc>Resetting source on a long-loading &lt;img&gt; still prevents window &quot;load&quot; event</short_desc>
          <delta_ts>2023-02-17 02:55:26 -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>Page Loading</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>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=235131</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=240325</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Antoine Quint">graouts</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>cdumez</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1876204</commentid>
    <comment_count>0</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-06-16 00:58:51 -0700</bug_when>
    <thetext>If you have an &lt;img&gt; element pointing to a long-loading resource it should prevent the window &quot;load&quot; event from firing until that image is loaded. However, if you cancel the load by setting the &quot;src&quot; to the empty string, the window &quot;load&quot; event should trigger and not be delayed anymore. In WebKit, the original resource load will continue to block the window &quot;load&quot; event. This came up investigating the failure of a CSS Transition WPT test, see https://github.com/web-platform-tests/wpt/issues/34444.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1876206</commentid>
    <comment_count>1</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-06-16 01:18:58 -0700</bug_when>
    <thetext>I&apos;m adding a new WPT for this in https://github.com/web-platform-tests/wpt/pull/34463.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1876208</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-06-16 01:31:34 -0700</bug_when>
    <thetext>&lt;rdar://problem/95277912&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1876290</commentid>
    <comment_count>3</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-06-16 11:49:51 -0700</bug_when>
    <thetext>The WPT PR has landed, so now we should import https://github.com/web-platform-tests/wpt/commit/644aba8746b83668d5d9033cda16ae3f8bba0b3d to have the new dedicated test for this, and rebase the result for the css/css-transitions test changed in that revision as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1876309</commentid>
    <comment_count>4</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-06-16 12:53:50 -0700</bug_when>
    <thetext>The import is being done in https://bugs.webkit.org/show_bug.cgi?id=235131.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1934535</commentid>
    <comment_count>5</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2023-02-17 02:55:26 -0800</bug_when>
    <thetext>The related tests have been fixed, so I think this is done now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>