Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e2f2241ebf93fa77d5e47b6d91371d606bc8edbd
      
https://github.com/WebKit/WebKit/commit/e2f2241ebf93fa77d5e47b6d91371d606bc8edbd
  Author: Basuke Suzuki <[email protected]>
  Date:   2026-07-23 (Thu, 23 Jul 2026)

  Changed paths:
    M LayoutTests/TestExpectations
    M 
LayoutTests/imported/w3c/web-platform-tests/webtransport/idlharness.https.sub.any-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/webtransport/idlharness.https.sub.any.serviceworker-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/webtransport/idlharness.https.sub.any.sharedworker-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/webtransport/idlharness.https.sub.any.worker-expected.txt
    M Source/WebCore/CMakeLists.txt
    M Source/WebCore/DerivedSources-input.xcfilelist
    M Source/WebCore/DerivedSources-output.xcfilelist
    M Source/WebCore/DerivedSources.make
    M Source/WebCore/Modules/streams/WritableStreamDefaultWriter.h
    M Source/WebCore/Modules/webtransport/WebTransportSendStream.cpp
    M Source/WebCore/Modules/webtransport/WebTransportSendStream.h
    M Source/WebCore/Modules/webtransport/WebTransportSendStream.idl
    A Source/WebCore/Modules/webtransport/WebTransportWriter.cpp
    A Source/WebCore/Modules/webtransport/WebTransportWriter.h
    A Source/WebCore/Modules/webtransport/WebTransportWriter.idl
    M Source/WebCore/Sources.txt
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebCore/bindings/js/WebCoreBuiltinNames.h

  Log Message:
  -----------
  [WebTransport] Add WebTransportWriter IDL interface and 
WebTransportSendStream.getWriter()
https://bugs.webkit.org/show_bug.cgi?id=320009
rdar://182947195

Reviewed by Alex Christensen.

Add the WebTransportWriter IDL interface (a subclass of 
WritableStreamDefaultWriter
exposing atomicWrite() and commit()) and WebTransportSendStream.getWriter(), so 
the
WebTransport idlharness WPT test passes and can be un-skipped.

This adds the interface shape only. atomicWrite() rejects with 
NotSupportedError and
commit() is a no-op for now: neither is exercised by any functional WPT test 
(only
idlharness checks the interface shape), and the functional implementation is 
tracked
separately by rdar://167646357 (WebTransportWriter) and rdar://164169921 
(commit). This
is enabled by the recently subclassable C++ WritableStreamDefaultWriter; a 
small type
discriminator is added there so bindings can dispatch to the WebTransportWriter 
wrapper.

This clears the final 9 idlharness FAILs, so the four
imported/w3c/web-platform-tests/webtransport/idlharness.https.sub.any variants 
are
un-skipped and now pass.

* LayoutTests/TestExpectations: Un-skip the four webtransport idlharness 
variants.
* 
LayoutTests/imported/w3c/web-platform-tests/webtransport/idlharness.https.sub.any-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/webtransport/idlharness.https.sub.any.serviceworker-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/webtransport/idlharness.https.sub.any.sharedworker-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/webtransport/idlharness.https.sub.any.worker-expected.txt:
* Source/WebCore/CMakeLists.txt:
* Source/WebCore/DerivedSources-input.xcfilelist:
* Source/WebCore/DerivedSources-output.xcfilelist:
* Source/WebCore/DerivedSources.make:
* Source/WebCore/Modules/streams/WritableStreamDefaultWriter.h:
(WebCore::WritableStreamDefaultWriter::type const):
* Source/WebCore/Modules/webtransport/WebTransportSendStream.cpp:
(WebCore::WebTransportSendStream::getWriter):
* Source/WebCore/Modules/webtransport/WebTransportSendStream.h:
* Source/WebCore/Modules/webtransport/WebTransportSendStream.idl:
* Source/WebCore/Modules/webtransport/WebTransportWriter.cpp: Added.
(WebCore::WebTransportWriter::create):
(WebCore::WebTransportWriter::WebTransportWriter):
(WebCore::WebTransportWriter::atomicWrite):
(WebCore::WebTransportWriter::commit):
* Source/WebCore/Modules/webtransport/WebTransportWriter.h: Added.
* Source/WebCore/Modules/webtransport/WebTransportWriter.idl: Added.
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/bindings/js/WebCoreBuiltinNames.h:

Canonical link: https://commits.webkit.org/317810@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to