diff --git a/Userland/Services/WebContent/ConnectionFromClient.cpp b/Userland/Services/WebContent/ConnectionFromClient.cpp index c4c03608951..ca847d9a1f3 100644 --- a/Userland/Services/WebContent/ConnectionFromClient.cpp +++ b/Userland/Services/WebContent/ConnectionFromClient.cpp @@ -459,6 +459,21 @@ void ConnectionFromClient::debug_request(DeprecatedString const& request, Deprec document->window().local_storage().release_value_but_fixme_should_propagate_errors()->dump(); return; } + + if (request == "load-reference-page") { + if (auto* document = page().top_level_browsing_context().active_document()) { + auto maybe_link = document->query_selector("link[rel=match]"sv); + if (maybe_link.is_error() || !maybe_link.value()) { + // To make sure that we fail the ref-test if the link is missing, load the error page. + load_html("