From e6a33079551d8bfd3ecd9dce2246dfd65f7165f2 Mon Sep 17 00:00:00 2001 From: Kenneth Myhra Date: Thu, 21 Aug 2025 18:46:14 +0200 Subject: [PATCH] LibWeb/XHR: Remove outdated FIXMEs about propagating errors The methods these FIXMEs refer to is no longer fallible. --- Libraries/LibWeb/XHR/XMLHttpRequest.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Libraries/LibWeb/XHR/XMLHttpRequest.cpp b/Libraries/LibWeb/XHR/XMLHttpRequest.cpp index 6fabab637d8..08ca8345f91 100644 --- a/Libraries/LibWeb/XHR/XMLHttpRequest.cpp +++ b/Libraries/LibWeb/XHR/XMLHttpRequest.cpp @@ -110,7 +110,6 @@ static void fire_progress_event(XMLHttpRequestEventTarget& target, FlyString con event_init.length_computable = length; event_init.loaded = transmitted; 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. target.dispatch_event(*ProgressEvent::create(target.realm(), event_name, event_init)); } @@ -789,7 +788,6 @@ WebIDL::ExceptionOr XMLHttpRequest::send(Optionalrealm(), EventNames::readystatechange)); // 6. If this’s state is not headers received, then return. @@ -804,7 +802,6 @@ WebIDL::ExceptionOr XMLHttpRequest::send(Optionalheader_list()->extract_length(); // 9. If length is not an integer, then set it to 0. @@ -1198,7 +1195,6 @@ WebIDL::ExceptionOr XMLHttpRequest::handle_response_end_of_body() m_send = false; // 9. Fire an event named readystatechange at xhr. - // 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. dispatch_event(*DOM::Event::create(realm, EventNames::readystatechange)); // 10. Fire a progress event named load at xhr with transmitted and length. @@ -1250,7 +1246,6 @@ JS::ThrowCompletionOr XMLHttpRequest::request_error_steps(FlyString const& } // 5. Fire an event named readystatechange at xhr. - // FIXME: Since 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. dispatch_event(*DOM::Event::create(realm(), EventNames::readystatechange)); // 6. If xhr’s upload complete flag is unset, then: