<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>266893</bug_id>
          
          <creation_ts>2023-12-26 10:23:01 -0800</creation_ts>
          <short_desc>Sync &apos;DataTransfer*&apos; with IDL Web Specification</short_desc>
          <delta_ts>2024-02-04 05:46:49 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2001992</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-12-26 10:23:01 -0800</bug_when>
    <thetext>Hi Team,

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

Source/WebCore/dom/DataTransfer.idl:

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

Source/WebCore/dom/DataTransferItem.idl:

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

-&gt; Change following: File getAsFile(); to File? getAsFile();

Source/WebCore/dom/DataTransferItemList.idl:

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

-&gt; Change following: readonly attribute long length; to readonly attribute unsigned long length;

-&gt; 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!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002546</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-01-02 10:23:30 -0800</bug_when>
    <thetext>&lt;rdar://problem/120376716&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2010482</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-02-04 05:46:49 -0800</bug_when>
    <thetext>As mentioned by Anne on PR - https://github.com/WebKit/WebKit/pull/23827 , it needs test coverage.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>