mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02: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:
committed by
Tim Ledbetter
parent
6c9adf3dbc
commit
b978dba8bd
Notes:
github-actions[bot]
2024-08-23 09:11:45 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/b978dba8bdb Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1163 Reviewed-by: https://github.com/tcl3 ✅
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user