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:
Timothy Flynn 2024-08-21 06:50:22 -04:00 committed by Andreas Kling
commit 5c9287aa99
Notes: github-actions[bot] 2024-08-22 12:22:55 +00:00
5 changed files with 34 additions and 14 deletions

View 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>