1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

LibWeb: Make factory method of XHR::ProgressEvent fallible

This commit is contained in:
Kenneth Myhra 2023-02-15 20:38:53 +01:00 committed by Linus Groh
parent 35622606c1
commit 84c7af4dcb
3 changed files with 6 additions and 6 deletions

View file

@ -83,7 +83,7 @@ void XMLHttpRequest::fire_progress_event(DeprecatedString const& event_name, u64
event_init.length_computable = true;
event_init.loaded = transmitted;
event_init.total = length;
dispatch_event(*ProgressEvent::create(realm(), event_name, event_init));
dispatch_event(*ProgressEvent::create(realm(), event_name, event_init).release_value_but_fixme_should_propagate_errors());
}
// https://xhr.spec.whatwg.org/#dom-xmlhttprequest-responsetext