diff --git a/Userland/Libraries/LibWeb/HTML/Navigable.cpp b/Userland/Libraries/LibWeb/HTML/Navigable.cpp index 93c96553123..c6b09fa6a9f 100644 --- a/Userland/Libraries/LibWeb/HTML/Navigable.cpp +++ b/Userland/Libraries/LibWeb/HTML/Navigable.cpp @@ -855,7 +855,7 @@ static WebIDL::ExceptionOr create_navigation } // 7. Wait until either response is non-null, or navigable's ongoing navigation changes to no longer equal navigationId. - Platform::EventLoopPlugin::the().spin_until([&]() { + HTML::main_thread_event_loop().spin_until([&]() { if (response_holder->response() != nullptr) return true;