[webkit-changes] [WebKit/WebKit] e84b70: Update implementation of TT enforcement for docume...

Luke Warlow noreply at github.com
Wed May 8 03:53:25 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e84b70e7fa81a96f61afc01534992746135fdc8f
      https://github.com/WebKit/WebKit/commit/e84b70e7fa81a96f61afc01534992746135fdc8f
  Author: Luke Warlow <lwarlow at igalia.com>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/trusted-types/Document-write-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/trusted-types/Document-write.html
    M LayoutTests/imported/w3c/web-platform-tests/trusted-types/block-string-assignment-to-Document-write-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/trusted-types/block-string-assignment-to-Document-write.html
    M Source/WebCore/dom/Document+HTML.idl
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/dom/Document.h

  Log Message:
  -----------
  Update implementation of TT enforcement for document.write(ln)
https://bugs.webkit.org/show_bug.cgi?id=273819

Reviewed by Ryosuke Niwa.

This patch switches document.write and writeln to use a union IDL type and single call to default policy.

This brings it close to chromium behaviour.

See https://github.com/whatwg/html/pull/10328

* LayoutTests/imported/w3c/web-platform-tests/trusted-types/Document-write-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/trusted-types/Document-write.html:
* LayoutTests/imported/w3c/web-platform-tests/trusted-types/block-string-assignment-to-Document-write-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/trusted-types/block-string-assignment-to-Document-write.html:
* Source/WebCore/dom/Document+HTML.idl:
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::write):
(WebCore::Document::writeln):
* Source/WebCore/dom/Document.h:

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



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


More information about the webkit-changes mailing list