Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 69ef6b7ccf965dca1e5a816ee41f68ec2a0dad55
https://github.com/WebKit/WebKit/commit/69ef6b7ccf965dca1e5a816ee41f68ec2a0dad55
Author: Ryosuke Niwa <[email protected]>
Date: 2025-12-10 (Wed, 10 Dec 2025)
Changed paths:
A LayoutTests/fast/dom/event-listener-webkit-trusted-only-expected.txt
A LayoutTests/fast/dom/event-listener-webkit-trusted-only.html
M Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
M Source/WebCore/bindings/scripts/IDLAttributes.json
M Source/WebCore/bindings/scripts/test/JS/JSTestDictionary.cpp
M Source/WebCore/bindings/scripts/test/JS/JSTestGlobalObject.cpp
M Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp
M Source/WebCore/bindings/scripts/test/TestDictionary.idl
M Source/WebCore/dom/AddEventListenerOptions.idl
Log Message:
-----------
webkitTrustedOnly getter should not be called during addEventListener in the
main world
https://bugs.webkit.org/show_bug.cgi?id=303903
Reviewed by Alex Christensen and Sihui Liu.
Only access webkitTrustedOnly in addEventListener's options dictionary in the
DOM wrapper
world which enables autofill features.
Test: fast/dom/event-listener-webkit-trusted-only.html
* LayoutTests/fast/dom/event-listener-webkit-trusted-only-expected.txt: Added.
* LayoutTests/fast/dom/event-listener-webkit-trusted-only.html: Added.
* Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:
(GenerateRuntimeEnableConditionalString):
* Source/WebCore/bindings/scripts/IDLAttributes.json:
* Source/WebCore/bindings/scripts/test/JS/JSTestDictionary.cpp:
(WebCore::convertDictionary<TestDictionary>):
* Source/WebCore/bindings/scripts/test/JS/JSTestGlobalObject.cpp:
(WebCore::JSTestGlobalObject::finishCreation):
* Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::JSTestObjPrototype::finishCreation):
* Source/WebCore/bindings/scripts/test/TestDictionary.idl:
* Source/WebCore/dom/AddEventListenerOptions.idl:
Canonical link: https://commits.webkit.org/304251@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications