<?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>254655</bug_id>
          
          <creation_ts>2023-03-29 02:22:59 -0700</creation_ts>
          <short_desc>event.relatedTarget is null in blur event handler when button is clicked</short_desc>
          <delta_ts>2023-05-02 16:07:09 -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>DOM</component>
          <version>Safari 16</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=109176</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>qwant94</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>akeerthi</cc>
    
    <cc>cdumez</cc>
    
    <cc>karlcow</cc>
    
    <cc>qwant94</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1944915</commentid>
    <comment_count>0</comment_count>
      <attachid>465657</attachid>
    <who name="">qwant94</who>
    <bug_when>2023-03-29 02:22:59 -0700</bug_when>
    <thetext>Created attachment 465657
html file for demonstrate behavior

event.relatedTarget doesn&apos;t set in correctly when blur event occures. Example of that behavior included in attachment index.html file.

tested on browserstack 12.1 - 16.3 and in real 16.4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1944918</commentid>
    <comment_count>1</comment_count>
    <who name="">qwant94</who>
    <bug_when>2023-03-29 02:30:01 -0700</bug_when>
    <thetext>In Chrome 111 and Firefox 110 event.relatedTarget is not null (HTML Button Element in case of attachment)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1946700</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-04-05 02:23:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/107650876&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1952515</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2023-05-02 16:06:55 -0700</bug_when>
    <thetext>This is because button is not mouse focusable by default in Safari.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>465657</attachid>
            <date>2023-03-29 02:22:59 -0700</date>
            <delta_ts>2023-03-29 02:22:59 -0700</delta_ts>
            <desc>html file for demonstrate behavior</desc>
            <filename>index.html</filename>
            <type>text/html</type>
            <size>974</size>
            <attacher>qwant94</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCiAgPGhlYWQ+DQogICAgPG1ldGEgY2hhcnNldD0iVVRG
LTgiIC8+DQogIDwvaGVhZD4NCg0KICA8Ym9keT4NCiAgICA8ZGl2IGlkPSJhcHAiPg0KICAgICAg
PGRpdj4NCiAgICAgICAgU2V0IGZvY3VzIG9uIGlucHV0IGFuZCB0aGVuIGNsaWNrIG9uIGJ1dHRv
bi4NCiAgICAgIDwvZGl2Pg0KICAgICAgPGlucHV0IGlkPSJpbnB1dCIgLz4NCiAgICAgIDxzcGFu
PnJlbGF0ZWQgdGFyZ2V0IGlzOiA8c3BhbiBpZD0iZGVzY3JpcHRpb24iPjwvc3Bhbj48L3NwYW4+
DQogICAgICA8ZGl2IGlkPSJmbHlvdXQiIHN0eWxlPSJkaXNwbGF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