Bug 279712

Summary: Implement ClipboardItem.supports
Product: WebKit Reporter: Karl Dubost <karlcow>
Component: HTML EditingAssignee: Karl Dubost <karlcow>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: BrowserCompat, InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://wpt.live/clipboard-apis/clipboard-item.https.html
See Also: https://bugs.webkit.org/show_bug.cgi?id=280726
Bug Depends on:    
Bug Blocks: 280664    

Karl Dubost
Reported 2024-09-14 07:07:01 PDT
"supports" in ClipboardItem returns true on Chrome and Firefox returns false on Safari. See https://w3c.github.io/clipboard-apis/#dom-clipboarditem-supports 7.2.4. supports(type) This method must run the below steps: If type is in mandatory data types or optional data types, then return true. If not, then return false. A couple of Web Platform Tests are failing because of this. https://wpt.live/clipboard-apis/clipboard-item.https.html
Attachments
Radar WebKit Bug Importer
Comment 1 2024-09-14 07:07:09 PDT
Karl Dubost
Comment 2 2024-09-14 07:19:22 PDT
On Firefox, it was implemented on Firefox 127 (Closed: 2024-04-19) https://bugzilla.mozilla.org/show_bug.cgi?id=1858788 Example of issues to work around on Safari https://github.com/tomayac/SVGcode/issues/93 There is a WebKit standard issue https://github.com/WebKit/standards-positions/issues/259
Karl Dubost
Comment 3 2024-09-30 22:22:31 PDT
EWS
Comment 4 2024-10-02 18:26:15 PDT
Committed 284593@main (91237d0831bb): <https://commits.webkit.org/284593@main> Reviewed commits have been landed. Closing PR #34489 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.