Skip to content

Conversation

@lukewarlow
Copy link
Member

@lukewarlow lukewarlow commented Feb 7, 2024

9fc59f1

Implement trusted types integration with execCommand
https://bugs.webkit.org/show_bug.cgi?id=267690

Reviewed by Youenn Fablet and Ryosuke Niwa.

Call trustedTypeCompliantString from within document execCommand when command is insertHTML.

* LayoutTests/imported/w3c/web-platform-tests/trusted-types/block-Document-execCommand-expected.txt:
* Source/WebCore/dom/Document+HTML.idl:
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::execCommand):
* Source/WebCore/dom/Document.h:
* Source/WebCore/dom/TrustedHTML.h:

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

c1247a0

Misc iOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 wincairo
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ✅ 🧪 wpe-wk2
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🧪 api-wpe
✅ 🧪 ios-wk2-wpt ✅ 🧪 mac-wk1 ✅ 🛠 gtk
✅ 🧪 api-ios ✅ 🧪 mac-wk2 ✅ 🧪 gtk-wk2
✅ 🛠 tv ✅ 🧪 mac-AS-debug-wk2 ✅ 🧪 api-gtk
✅ 🛠 tv-sim
✅ 🛠 🧪 merge ✅ 🛠 watch
✅ 🛠 watch-sim

@lukewarlow lukewarlow force-pushed the trusted-types-exec-command branch from 7cb8340 to 2668944 Compare February 7, 2024 13:30
@lukewarlow lukewarlow self-assigned this Feb 7, 2024
@lukewarlow lukewarlow added the WebCore Misc. For miscellaneous bugs in the WebCore framework (and not JavaScriptCore or WebKit). label Feb 7, 2024
@lukewarlow lukewarlow changed the title Implement Implement trusted types integration with execCommand Feb 7, 2024
@lukewarlow lukewarlow changed the title Implement trusted types integration with execCommand Implement Feb 7, 2024
@lukewarlow lukewarlow force-pushed the trusted-types-exec-command branch from 2668944 to ebbd015 Compare February 7, 2024 13:37
@lukewarlow lukewarlow changed the title Implement Implement trusted types integration with execCommand Feb 7, 2024
@lukewarlow lukewarlow changed the title Implement trusted types integration with execCommand Implement Feb 8, 2024
@lukewarlow lukewarlow force-pushed the trusted-types-exec-command branch from ebbd015 to 86d9523 Compare February 8, 2024 17:31
@lukewarlow lukewarlow changed the title Implement Implement trusted types integration with execCommand Feb 8, 2024
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Feb 8, 2024
@lukewarlow lukewarlow removed the merging-blocked Applied to prevent a change from being merged label Feb 12, 2024
@lukewarlow lukewarlow changed the title Implement trusted types integration with execCommand Implement Feb 12, 2024
@lukewarlow lukewarlow force-pushed the trusted-types-exec-command branch from 86d9523 to dd7143b Compare February 12, 2024 14:21
@lukewarlow lukewarlow changed the title Implement Implement trusted types integration with execCommand Feb 12, 2024
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Feb 12, 2024
@lukewarlow lukewarlow added skip-ews Applied to prevent a change from being run on EWS and removed merging-blocked Applied to prevent a change from being merged skip-ews Applied to prevent a change from being run on EWS labels Feb 14, 2024
@lukewarlow lukewarlow changed the title Implement trusted types integration with execCommand Implement Feb 14, 2024
@lukewarlow lukewarlow force-pushed the trusted-types-exec-command branch from dd7143b to baf7bff Compare February 14, 2024 11:45
@lukewarlow lukewarlow changed the title Implement Implement trusted types integration with execCommand Feb 14, 2024
@lukewarlow lukewarlow changed the title Implement trusted types integration with execCommand Implement Feb 14, 2024
@lukewarlow lukewarlow force-pushed the trusted-types-exec-command branch from baf7bff to feb554e Compare February 14, 2024 12:13
@lukewarlow lukewarlow added the skip-ews Applied to prevent a change from being run on EWS label Feb 14, 2024
@lukewarlow lukewarlow changed the title Implement Implement trusted types integration with execCommand Feb 14, 2024
@lukewarlow lukewarlow removed the skip-ews Applied to prevent a change from being run on EWS label Mar 4, 2024
@lukewarlow lukewarlow marked this pull request as ready for review March 4, 2024 16:14
@lukewarlow lukewarlow requested review from cdumez and rniwa as code owners March 4, 2024 16:14
@lukewarlow lukewarlow force-pushed the trusted-types-exec-command branch from feb554e to b16c56c Compare March 4, 2024 16:14
@lukewarlow lukewarlow force-pushed the trusted-types-exec-command branch from b16c56c to a55de0f Compare March 4, 2024 16:15
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this was needed for the build to succeed previously. I will just double check if it's still needed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So it's needed else WebKitLegacy doesn't build, I think it's because Document::execCommand is exported.

@lukewarlow lukewarlow force-pushed the trusted-types-exec-command branch from a55de0f to 0dfce70 Compare March 4, 2024 17:44
@lukewarlow lukewarlow added the safe-merge-queue Applied to automatically send a pull-request to merge-queue after passing EWS checks label Mar 4, 2024
@rniwa
Copy link
Member

rniwa commented Mar 4, 2024

Call trustedTypeCompliantString from within document execCommand when command is innerHTML.

You mean insertHTML.

@lukewarlow lukewarlow removed the safe-merge-queue Applied to automatically send a pull-request to merge-queue after passing EWS checks label Mar 4, 2024
@lukewarlow lukewarlow force-pushed the trusted-types-exec-command branch from 0dfce70 to c1247a0 Compare March 4, 2024 19:24
@lukewarlow lukewarlow added the safe-merge-queue Applied to automatically send a pull-request to merge-queue after passing EWS checks label Mar 4, 2024
@webkit-ews-buildbot webkit-ews-buildbot removed the safe-merge-queue Applied to automatically send a pull-request to merge-queue after passing EWS checks label Mar 5, 2024
@webkit-ews-buildbot
Copy link
Collaborator

Safe-Merge-Queue: Build #13999.

@webkit-ews-buildbot webkit-ews-buildbot added the merge-queue Applied to send a pull request to merge-queue label Mar 5, 2024
https://bugs.webkit.org/show_bug.cgi?id=267690

Reviewed by Youenn Fablet and Ryosuke Niwa.

Call trustedTypeCompliantString from within document execCommand when command is insertHTML.

* LayoutTests/imported/w3c/web-platform-tests/trusted-types/block-Document-execCommand-expected.txt:
* Source/WebCore/dom/Document+HTML.idl:
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::execCommand):
* Source/WebCore/dom/Document.h:
* Source/WebCore/dom/TrustedHTML.h:

Canonical link: https://commits.webkit.org/275667@main
@webkit-commit-queue webkit-commit-queue force-pushed the trusted-types-exec-command branch from c1247a0 to 9fc59f1 Compare March 5, 2024 01:39
@webkit-commit-queue
Copy link
Collaborator

Committed 275667@main (9fc59f1): https://commits.webkit.org/275667@main

Reviewed commits have been landed. Closing PR #23997 and removing active labels.

@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Mar 5, 2024
@webkit-commit-queue webkit-commit-queue merged commit 9fc59f1 into WebKit:main Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WebCore Misc. For miscellaneous bugs in the WebCore framework (and not JavaScriptCore or WebKit).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants