Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 747ac91cfae91994e62d499648fb029f2f179704
https://github.com/WebKit/WebKit/commit/747ac91cfae91994e62d499648fb029f2f179704
Author: Alex Christensen <[email protected]>
Date: 2025-10-01 (Wed, 01 Oct 2025)
Changed paths:
M Source/WebCore/Modules/webtransport/WebTransport.cpp
M Source/WebCore/Modules/webtransport/WebTransport.h
M Source/WebCore/Modules/webtransport/WebTransportError.cpp
M Source/WebCore/Sources.txt
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
A Source/WebCore/bindings/js/JSDOMExceptionCustom.cpp
M Source/WebCore/dom/DOMException.cpp
M Source/WebCore/dom/DOMException.h
M Source/WebCore/dom/DOMException.idl
M Tools/TestWebKitAPI/Tests/WebKitCocoa/WebTransport.mm
Log Message:
-----------
Implement WebTransport CSP check during initialization
https://bugs.webkit.org/show_bug.cgi?id=299992
rdar://141593282
Reviewed by Matthew Finkel.
The test is very similar to csp-pass.https.window.js and
csp-fail.https.window.js
from WPT, but it works with our current test infrastructure.
In order to get it to completely pass, I needed to make sure JS saw the correct
type of DOMException when rejecting the promises.
Test: Tools/TestWebKitAPI/Tests/WebKitCocoa/WebTransport.mm
* Source/WebCore/Modules/webtransport/WebTransport.cpp:
(WebCore::WebTransport::initializeOverHTTP):
(WebCore::WebTransport::cleanupWithSessionError):
(WebCore::WebTransport::close):
(WebCore::WebTransport::cleanup):
* Source/WebCore/Modules/webtransport/WebTransport.h:
* Source/WebCore/Modules/webtransport/WebTransportError.cpp:
(WebCore::WebTransportError::WebTransportError):
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/bindings/js/JSDOMExceptionCustom.cpp: Copied from
Source/WebCore/Modules/webtransport/WebTransportError.cpp.
(WebCore::toJS):
(WebCore::toJSNewlyCreated):
* Source/WebCore/dom/DOMException.cpp:
(WebCore::DOMException::DOMException):
* Source/WebCore/dom/DOMException.h:
(WebCore::DOMException::type const):
* Source/WebCore/dom/DOMException.idl:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/WebTransport.mm:
(TestWebKitAPI::TEST(WebTransport, CSP)):
Canonical link: https://commits.webkit.org/300858@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes