<?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>237403</bug_id>
          
          <creation_ts>2022-03-02 18:54:53 -0800</creation_ts>
          <short_desc>Can&apos;t transfer an ImageBitmap through a MessageChannel</short_desc>
          <delta_ts>2025-12-09 00:27:57 -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>Canvas</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</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="Kaiido">tristan.fraipont</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>cdumez</cc>
    
    <cc>dino</cc>
    
    <cc>heycam</cc>
    
    <cc>karlcow</cc>
    
    <cc>kkinnunen</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>1847718</commentid>
    <comment_count>0</comment_count>
    <who name="Kaiido">tristan.fraipont</who>
    <bug_when>2022-03-02 18:54:53 -0800</bug_when>
    <thetext>Transferring an ImageBitmap through the ports of a MessageChannel makes the `data` of the MessageEvent `null`.  
This doesn&apos;t happen when only cloning the ImageBitmap instead of transferring it. This also doesn&apos;t happen when transferring from a Worker&apos;s `postMessage` (this is being tested by WPT), nor when transferred from an WindowProxy, i.e this only concerns MessageChannel.

You can see a minimal repro at https://jsfiddle.net/1kzxvad9/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1849941</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-03-09 18:55:15 -0800</bug_when>
    <thetext>&lt;rdar://problem/90072516&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2164351</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-12-09 00:02:57 -0800</bug_when>
    <thetext>*** Safari 26.2 Beta ***

&quot;clone&quot;, [object ImageBitmap] {
  close: function close() {
    [native code]
},
  height: 20,
  width: 20
}

&quot;transfer&quot;, [object ImageBitmap] {
  close: function close() {
    [native code]
},
  height: 20,
  width: 20
}

*** Chrome Canary 144 ***

&quot;clone&quot;, [object ImageBitmap] {
  close: function close() { [native code] },
  height: 20,
  width: 20
}
&quot;transfer&quot;, [object ImageBitmap] {
  close: function close() { [native code] },
  height: 20,
  width: 20
}

*** Firefox Nightly 148 ***

clone&quot;, [object ImageBitmap] {
  close: function close() {
    [native code]
},
  height: 20,
  width: 20
}
&quot;transfer&quot;, [object ImageBitmap] {
  close: function close() {
    [native code]
},
  height: 20,
  width: 20
}

_________

All browsers now match, It might have been fixed while it was reported. @Karl - anything I missed, or we can mark as `Config Changed`?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2164354</commentid>
    <comment_count>3</comment_count>
    <who name="Kaiido">tristan.fraipont</who>
    <bug_when>2025-12-09 00:26:51 -0800</bug_when>
    <thetext>It probably has been fixed, indeed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2164355</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-12-09 00:27:57 -0800</bug_when>
    <thetext>(In reply to Kaiido from comment #3)
&gt; It probably has been fixed, indeed.

Thanks for confirming.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>