Bug 266893 - Sync 'DataTransfer*' with IDL Web Specification
Summary: Sync 'DataTransfer*' with IDL Web Specification
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-12-26 10:23 PST by Ahmad Saleem
Modified: 2024-02-04 05:46 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Saleem 2023-12-26 10:23:01 PST
Hi Team,

While looking into 'DataTransfer' related failures, I noted that we have few stuff to sync with web-specification:

Source/WebCore/dom/DataTransfer.idl:

-> Add web-spec link: https://html.spec.whatwg.org/multipage/dnd.html#the-datatransfer-interface

Source/WebCore/dom/DataTransferItem.idl:

-> Add web-spec link: https://html.spec.whatwg.org/multipage/dnd.html#the-datatransferitem-interface

-> Change following: File getAsFile(); to File? getAsFile();

Source/WebCore/dom/DataTransferItemList.idl:

-> Add web-spec link: https://html.spec.whatwg.org/multipage/dnd.html#the-datatransferitemlist-interface

-> Change following: readonly attribute long length; to readonly attribute unsigned long length;

-> Change following: getter DataTransferItem item(unsigned long index); to getter DataTransferItem (unsigned long index);

___

These are few quick ones, it might have one or two more stuff but just wanted to raise, so we can do these changes and fix it.

Thanks!
Comment 1 Radar WebKit Bug Importer 2024-01-02 10:23:30 PST
<rdar://problem/120376716>
Comment 2 Ahmad Saleem 2024-02-04 05:46:49 PST
As mentioned by Anne on PR - https://github.com/WebKit/WebKit/pull/23827 , it needs test coverage.