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: