mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-26 04:07:51 +00: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:
parent
f7c4165dde
commit
5c9287aa99
Notes:
github-actions[bot]
2024-08-22 12:22:55 +00:00
Author: https://github.com/trflynn89
Commit: 5c9287aa99
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1158
Reviewed-by: https://github.com/shannonbooth
5 changed files with 34 additions and 14 deletions
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>
|
Loading…
Add table
Add a link
Reference in a new issue