<?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>274025</bug_id>
          
          <creation_ts>2024-05-10 18:28:59 -0700</creation_ts>
          <short_desc>`m_maxMessageSize` should be `infinity()` instead of `max()` in RTCSctpTransport.h</short_desc>
          <delta_ts>2024-05-21 00:02:51 -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>WebRTC</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmad Saleem">ahmad.saleem792</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>2034664</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-05-10 18:28:59 -0700</bug_when>
    <thetext>Hi Team,

While trying to investigate our &apos;Safari&apos; (WebKit) specific failures, I noticed that we are failing few tests here:

WPT Test Case: https://wpt.fyi/results/webrtc/RTCSctpTransport-maxMessageSize.html?label=master&amp;label=experimental&amp;aligned=&amp;q=firefox%3Apass+safari%3Afail

In order to investigate, I noted that we have following:

Source: https://searchfox.org/wubkat/rev/5169139ac1127c419017b37d9f2106a2c199070f/Source/WebCore/Modules/mediastream/RTCSctpTransport.h#76

double m_maxMessageSize { std::numeric_limits&lt;double&gt;::max() };

While as per web-specification:

https://w3c.github.io/webrtc-pc/#dfn-update-the-data-max-message-size

If both remoteMaxMessageSize and canSendSize are 0, set [[MaxMessageSize]] to the positive Infinity value.

Changing above to:

double m_maxMessageSize { std::numeric_limits&lt;double&gt;::infinity() };

leads to us, progressing one more WPT (following - max-message-size with a (non-zero) value larger than canSendSize provided by the remote peer).

Just raising so we can fix at least one test.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2036175</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-05-17 18:29:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/128306030&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2036629</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-05-21 00:02:29 -0700</bug_when>
    <thetext>Committed 279039@main (868f20242ed9): &lt;https://commits.webkit.org/279039@main&gt;

Reviewed commits have been landed. Closing PR #28752 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>