From 4add737e88ae52ef9e5b7aa845b90342ab4e99f3 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Tue, 12 Nov 2024 08:44:11 -0500 Subject: [PATCH] LibWebView: Log the last URL we loaded when WebContent crashes We display this URL in the error page, but let's log it for headless- browser as well. --- Libraries/LibWebView/ViewImplementation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWebView/ViewImplementation.cpp b/Libraries/LibWebView/ViewImplementation.cpp index 98ec023e243..0e267cd5c42 100644 --- a/Libraries/LibWebView/ViewImplementation.cpp +++ b/Libraries/LibWebView/ViewImplementation.cpp @@ -496,7 +496,7 @@ void ViewImplementation::handle_resize() void ViewImplementation::handle_web_content_process_crash(LoadErrorPage load_error_page) { - dbgln("WebContent process crashed!"); + dbgln("\033[31;1mWebContent process crashed!\033[0m Last page loaded: {}", m_url); dbgln("Consider raising an issue at https://github.com/LadybirdBrowser/ladybird/issues/new/choose"); ++m_crash_count;