[webkit-changes] [WebKit/WebKit] 91237d: Implement ClipboardItem.supports

Karl Dubost noreply at github.com
Wed Oct 2 18:26:34 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 91237d0831bb66fe1c980301b4cbf62b72b51124
      https://github.com/WebKit/WebKit/commit/91237d0831bb66fe1c980301b4cbf62b72b51124
  Author: Karl Dubost <karlcow at apple.com>
  Date:   2024-10-02 (Wed, 02 Oct 2024)

  Changed paths:
    R LayoutTests/editing/async-clipboard/clipboard-interfaces-expected.txt
    R LayoutTests/editing/async-clipboard/clipboard-interfaces.html
    M LayoutTests/editing/async-clipboard/clipboard-write-basic-expected.txt
    M LayoutTests/editing/async-clipboard/clipboard-write-basic.html
    M LayoutTests/imported/w3c/web-platform-tests/clipboard-apis/clipboard-item.https-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/clipboard-apis/clipboard-item.https.html
    M LayoutTests/platform/mac-wk1/TestExpectations
    M Source/WebCore/Modules/async-clipboard/ClipboardItem.cpp
    M Source/WebCore/Modules/async-clipboard/ClipboardItem.h
    M Source/WebCore/Modules/async-clipboard/ClipboardItem.idl

  Log Message:
  -----------
  Implement ClipboardItem.supports
https://bugs.webkit.org/show_bug.cgi?id=279712
rdar://136008522

Reviewed by Wenson Hsieh.

Adds ClipboardItem.supports()
Adds also text/uri-lists per spec to the list of types in WPT
Defers custom web format implementation to <https://webkit.org/b/280664>
Defers support for image/svg+xml to <https://webkit.org/b/280726>

* LayoutTests/editing/async-clipboard/clipboard-interfaces-expected.txt: Removed.
* LayoutTests/editing/async-clipboard/clipboard-interfaces.html: Removed.
  These are covered by WPT

* LayoutTests/editing/async-clipboard/clipboard-write-basic-expected.txt:
* LayoutTests/editing/async-clipboard/clipboard-write-basic.html:
  Removed the invalid case of an empty clipboardItem()

* LayoutTests/imported/w3c/web-platform-tests/clipboard-apis/clipboard-item.https-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/clipboard-apis/clipboard-item.https.html:
  Fixing the tests. Needs to be exported back to WPT

* LayoutTests/platform/mac-wk1/TestExpectations:
* Source/WebCore/Modules/async-clipboard/ClipboardItem.cpp:
(WebCore::ClipboardItem::create):
(WebCore::ClipboardItem::supports):
* Source/WebCore/Modules/async-clipboard/ClipboardItem.h:
* Source/WebCore/Modules/async-clipboard/ClipboardItem.idl:

Canonical link: https://commits.webkit.org/284593@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