mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Implement separate DataTransfer factories for IDL / internal use
The IDL constructor has to take separate steps than a DataTransfer that is internally constructed. Notably, an IDL-created object has its own drag data store, and that store is placed in a read-write mode.
This commit is contained in:
committed by
Andreas Kling
parent
f7c4165dde
commit
5c9287aa99
Notes:
github-actions[bot]
2024-08-22 12:22:55 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/5c9287aa99e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1158 Reviewed-by: https://github.com/shannonbooth
8
Tests/LibWeb/Text/input/HTML/data-transfer.html
Normal file
8
Tests/LibWeb/Text/input/HTML/data-transfer.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
let dataTransfer = new DataTransfer();
|
||||
println(`dropEffect: ${dataTransfer.dropEffect}`);
|
||||
println(`effectAllowed: ${dataTransfer.effectAllowed}`);
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user