mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
LibWeb/XHR: Progess event handle empty length
This commit is contained in:
parent
50f642613d
commit
97ca6036fa
Notes:
github-actions[bot]
2024-10-20 20:23:51 +00:00
Author: https://github.com/BroadbentJim 🔰
Commit: 97ca6036fa
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1882
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ static void fire_progress_event(XMLHttpRequestEventTarget& target, FlyString con
|
||||||
// with the loaded attribute initialized to transmitted, and if length is not 0, with the lengthComputable attribute initialized to true
|
// with the loaded attribute initialized to transmitted, and if length is not 0, with the lengthComputable attribute initialized to true
|
||||||
// and the total attribute initialized to length.
|
// and the total attribute initialized to length.
|
||||||
ProgressEventInit event_init {};
|
ProgressEventInit event_init {};
|
||||||
event_init.length_computable = true;
|
event_init.length_computable = length;
|
||||||
event_init.loaded = transmitted;
|
event_init.loaded = transmitted;
|
||||||
event_init.total = length;
|
event_init.total = length;
|
||||||
// FIXME: If we're in an async context, this will propagate to a callback context which can't propagate it anywhere else and does not expect this to fail.
|
// FIXME: If we're in an async context, this will propagate to a callback context which can't propagate it anywhere else and does not expect this to fail.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue