LibWeb: Work around a spec bug regarding cancelling dragenter events

The spec dictates that dragenter events must be cancelled in order for
drops to be accepted on the entered element. Web reality disagrees, as
all three major browsers do not have this requirement.
This commit is contained in:
Timothy Flynn
2026-04-04 20:17:37 -04:00
committed by Tim Flynn
parent dafb5cbe05
commit b7076c366d
Notes: github-actions[bot] 2026-04-05 15:35:47 +00:00
5 changed files with 33 additions and 36 deletions

View File

@@ -24,9 +24,17 @@ drop
files: 1
test2
Drag enter not accepted:
Drag enter not accepted (but still allowed):
dragenter
types: Files
dragover
types: Files
dragover
types: Files
drop
types: Files
files: 1
test3
Drag over not accepted:
dragenter