Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e3c49184f6ef80a04d39e1a9929e6cbb63d274e7
      
https://github.com/WebKit/WebKit/commit/e3c49184f6ef80a04d39e1a9929e6cbb63d274e7
  Author: Luke Warlow <lwar...@igalia.com>
  Date:   2024-04-02 (Tue, 02 Apr 2024)

  Changed paths:
    M LayoutTests/TestExpectations
    M 
LayoutTests/imported/w3c/web-platform-tests/trusted-types/DOMWindowTimers-setTimeout-setInterval-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/trusted-types/DOMWindowTimers-setTimeout-setInterval.html
    M 
LayoutTests/imported/w3c/web-platform-tests/trusted-types/block-string-assignment-to-DOMWindowTimers-setTimeout-setInterval-expected.txt
    M Source/WebCore/bindings/js/JSDOMConvertScheduledAction.h
    M Source/WebCore/bindings/js/JSDOMConvertStrings.cpp
    M Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
    M Source/WebCore/bindings/scripts/test/BindingTestGlobalConstructors.idl
    M Source/WebCore/bindings/scripts/test/JS/JSTestGlobalObject.cpp
    A Source/WebCore/bindings/scripts/test/JS/JSTestScheduledAction.cpp
    A Source/WebCore/bindings/scripts/test/JS/JSTestScheduledAction.h
    M Source/WebCore/bindings/scripts/test/SupplementalDependencies.dep
    A Source/WebCore/bindings/scripts/test/TestScheduledAction.idl

  Log Message:
  -----------
  Implement trusted types integration with setTimeout and setInterval
https://bugs.webkit.org/show_bug.cgi?id=267692

Reviewed by Anne van Kesteren and Darin Adler.

Make use of StringContext IDL adaptor for TrustedScript within the 
ScheduledAction IDL converter.

Includes fix InterfaceName attribute within StringContext IDL generator code.

Also handles exceptions in IDL string conversion code within 
trustedTypeCompliantString converter.

* LayoutTests/TestExpectations:
* 
LayoutTests/imported/w3c/web-platform-tests/trusted-types/DOMWindowTimers-setTimeout-setInterval-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/trusted-types/DOMWindowTimers-setTimeout-setInterval.html:
* 
LayoutTests/imported/w3c/web-platform-tests/trusted-types/block-string-assignment-to-DOMWindowTimers-setTimeout-setInterval-expected.txt:
* Source/WebCore/bindings/js/JSDOMConvertScheduledAction.h:
(WebCore::Converter<IDLScheduledAction>::convert):
* Source/WebCore/bindings/js/JSDOMConvertStrings.cpp:
(WebCore::trustedTypeCompliantString):
* Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:
(JSValueToNative):
* Source/WebCore/bindings/scripts/test/BindingTestGlobalConstructors.idl:
* Source/WebCore/bindings/scripts/test/JS/JSTestGlobalObject.cpp:
(WebCore::jsTestGlobalObject_TestScheduledActionRealConstructorGetter):
(WebCore::JSC_DEFINE_CUSTOM_GETTER):
* Source/WebCore/bindings/scripts/test/JS/JSTestScheduledAction.cpp: Added.
(WebCore::JSTestScheduledActionDOMConstructor::prototypeForStructure):
(WebCore::JSTestScheduledActionDOMConstructor::initializeProperties):
(WebCore::JSTestScheduledActionPrototype::finishCreation):
(WebCore::JSTestScheduledAction::JSTestScheduledAction):
(WebCore::JSTestScheduledAction::createPrototype):
(WebCore::JSTestScheduledAction::prototype):
(WebCore::JSTestScheduledAction::getConstructor):
(WebCore::JSTestScheduledAction::destroy):
(WebCore::JSC_DEFINE_CUSTOM_GETTER):
(WebCore::jsTestScheduledActionPrototypeFunction_methodBody):
(WebCore::JSC_DEFINE_HOST_FUNCTION):
(WebCore::JSTestScheduledAction::subspaceForImpl):
(WebCore::JSTestScheduledAction::analyzeHeap):
(WebCore::JSTestScheduledActionOwner::isReachableFromOpaqueRoots):
(WebCore::JSTestScheduledActionOwner::finalize):
(WebCore::toJSNewlyCreated):
(WebCore::toJS):
(WebCore::JSTestScheduledAction::toWrapped):
* Source/WebCore/bindings/scripts/test/JS/JSTestScheduledAction.h: Added.
(WebCore::JSTestScheduledAction::create):
(WebCore::JSTestScheduledAction::createStructure):
(WebCore::JSTestScheduledAction::subspaceFor):
(WebCore::wrapperOwner):
(WebCore::wrapperKey):
(WebCore::toJS):
(WebCore::toJSNewlyCreated):
* Source/WebCore/bindings/scripts/test/SupplementalDependencies.dep:
* Source/WebCore/bindings/scripts/test/TestScheduledAction.idl: Copied from 
Source/WebCore/bindings/js/JSDOMConvertScheduledAction.h.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to