<?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>283739</bug_id>
          
          <creation_ts>2024-11-26 20:24:47 -0800</creation_ts>
          <short_desc>Streams: writableStreamDefaultControllerGetChunkSize undefined strategy case slightly broken</short_desc>
          <delta_ts>2025-04-02 23:36:10 -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>WebCore Misc.</component>
          <version>WebKit 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>InRadar</keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Domenic Denicola">d</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2077816</commentid>
    <comment_count>0</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2024-11-26 20:24:47 -0800</bug_when>
    <thetext>See https://github.com/whatwg/streams/pull/1333.

Per https://github.com/WebKit/WebKit/blob/3d86280341992fc49475f4a9b7aca7f9c1edad01/Source/WebCore/Modules/streams/WritableStreamInternals.js#L717, WebKit has the same bug as the reference implementation did: it catches the exception caused by trying to call `undefined` as a function, and then attempts to error the stream with it.

I don&apos;t believe this is observable since the stream is already erroring so the &quot;TypeError: cannot call undefined&quot; will not actually be exposed to the web developer.

However, it&apos;s probably best to fix this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2079019</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-12-03 20:25:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/140890218&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2108437</commentid>
    <comment_count>2</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2025-04-02 23:36:10 -0700</bug_when>
    <thetext>The correct fix here is slightly tweaked in https://github.com/whatwg/streams/pull/1342.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>