LibWeb: Use double type in ProgressEvent

loaded and total should be double as per spec
https://xhr.spec.whatwg.org/#progressevent
This commit is contained in:
Vishal Biswas 2025-04-17 11:37:30 +05:30 committed by Tim Flynn
commit eb165554e1
Notes: github-actions[bot] 2025-04-17 12:29:50 +00:00
4 changed files with 102 additions and 10 deletions

View file

@ -6,12 +6,12 @@ interface ProgressEvent : Event {
constructor(DOMString type, optional ProgressEventInit eventInitDict = {});
readonly attribute boolean lengthComputable;
readonly attribute unsigned long long loaded;
readonly attribute unsigned long long total;
readonly attribute double loaded;
readonly attribute double total;
};
dictionary ProgressEventInit : EventInit {
boolean lengthComputable = false;
unsigned long long loaded = 0;
unsigned long long total = 0;
double loaded = 0;
double total = 0;
};