<?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>225146</bug_id>
          
          <creation_ts>2021-04-28 02:34:51 -0700</creation_ts>
          <short_desc>onerror event not triggered when origin uses TLS 1.0/1.1</short_desc>
          <delta_ts>2021-05-05 02:35:13 -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>Images</component>
          <version>Safari 14</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <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="Tomáš Dvořák">toomas2d</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>ap</cc>
    
    <cc>jean-yves.avenard</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1754970</commentid>
    <comment_count>0</comment_count>
      <attachid>427248</attachid>
    <who name="Tomáš Dvořák">toomas2d</who>
    <bug_when>2021-04-28 02:34:51 -0700</bug_when>
    <thetext>Created attachment 427248
Simple script that demonstrates the issue

When you try to load an image from the origin which uses an obsolete version of the TLS (1.0 and 1.1) image will not be loaded and thus `onerror` event should be fired. 
It does not happen. I am attaching a simple script that demonstrates this issue.

The problem also persists in Safari 13.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1755516</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-04-29 13:37:35 -0700</bug_when>
    <thetext>Weird. I can reproduce.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1755619</commentid>
    <comment_count>2</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2021-04-29 20:22:26 -0700</bug_when>
    <thetext>Very strange.  This is probably related to r265835 which Safari hits in this case.  It&apos;s especially strange because we are getting a NSURLErrorCancelled after cancelling the authentication challenge.  Needs more investigation.

We should probably fix it, but there is a straightforward workaround: use TLS 1.2 or 1.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756874</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-05-05 02:35:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/77548636&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>427248</attachid>
            <date>2021-04-28 02:34:51 -0700</date>
            <delta_ts>2021-04-28 02:34:51 -0700</delta_ts>
            <desc>Simple script that demonstrates the issue</desc>
            <filename>image-event-tls-bug.html</filename>
            <type>text/html</type>
            <size>1125</size>
            <attacher name="Tomáš Dvořák">toomas2d</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgogIDxoZWFkPkJ1ZyAvIEltYWdlIGhhbmRsaW5nLCBvYnNv
bGV0ZSBUTFM8L2hlYWQ+CgogIDxib2R5PgogICAgPHA+SSBhbSB0cnlpbmcgdG8gbG9hZCBhbiBp
bWFnZS4uLi48L3A+CgogICAgPHNjcmlwdD4KICAgICAgZnVuY3Rpb24gbG9hZEltYWdlKHNyYykg
ewogICAgICAgIGNvbnN0IGltZyA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoImltZyIpOwogICAg
ICAgIGxldCB0aW1lb3V0SWQgPSBzZXRUa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29t
OjEwMTEvIik7CiAgICA8L3NjcmlwdD4KICA8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>