diff --git a/Userland/Libraries/LibWebView/ViewImplementation.cpp b/Userland/Libraries/LibWebView/ViewImplementation.cpp index 3c0bff806d..faded7ab49 100644 --- a/Userland/Libraries/LibWebView/ViewImplementation.cpp +++ b/Userland/Libraries/LibWebView/ViewImplementation.cpp @@ -200,6 +200,10 @@ ErrorOr> ViewImplementation::launch_web ErrorOr result; for (auto const& path : candidate_web_content_paths) { constexpr auto callgrind_prefix_length = 3; + + if (Core::System::access(path, X_OK).is_error()) + continue; + auto arguments = Vector { "valgrind"sv, "--tool=callgrind"sv,