mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 18:19:03 +00:00
LibWeb: Implement DataTransferItem.prototype.getAsFile()
This is used on imgur after drag-and-dropping an image onto its page.
This commit is contained in:
parent
6c9adf3dbc
commit
b978dba8bd
Notes:
github-actions[bot]
2024-08-23 09:11:45 +00:00
Author: https://github.com/trflynn89
Commit: b978dba8bd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1163
Reviewed-by: https://github.com/tcl3 ✅
5 changed files with 36 additions and 1 deletions
|
@ -29,6 +29,9 @@
|
|||
println(`fileItem: kind=${fileItem.kind}, type=${fileItem.type}`);
|
||||
println(`length=${dataTransferItemList.length}, types=${dataTransfer.types}`);
|
||||
|
||||
let fileItemAsFile = fileItem.getAsFile();
|
||||
println(`fileItemAsFile: name=${fileItemAsFile.name}, type=${fileItemAsFile.type}`);
|
||||
|
||||
if (dataTransferItemList[1] !== fileItem) {
|
||||
println("FAILED");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue