Truly independent web browser
Tests: Release unclaimed Mach ports in the spare WebContent test
Timothy Flynna747f39c0b0f
diff --git a/Tests/LibWebView/TestSpareWebContentProcess.cpp b/Tests/LibWebView/TestSpareWebContentProcess.cppindex 8fcf73480fe..ccf7e71b676 100644--- a/Tests/LibWebView/TestSpareWebContentProcess.cpp+++ b/Tests/LibWebView/TestSpareWebContentProcess.cpp@@ -114,6 +114,11 @@ TEST_CASE(spare_is_not_taken_once_its_connection_closed)handle_exit(move(process), exit_status);return;}+#if defined(AK_OS_MACOS)+ // Release any unclaimed Mach ports while the application's exit handler is delayed. Otherwise, killing+ // the spare before it fetches its transport leaves the connection open.+ WebView::Application::transport_bootstrap_server().unregister_child_transport(process.pid());+#endifheld_spare_exit = move(process);held_spare_exit_status = exit_status;};