test-web: Handle WebContent process changes during cross-site navigation

Commit 84db5d8c1c introduced the ability
to load tests over an http:// URL instead of a file:// URL. Each time
this happens, we switch to a new WebContent process due to site
isolation. Our WebContent output capture was not handling this.

For some reason, this was causing a wide array of test failures and
timeouts. Often, the failures were accompanied by the content of the
files loaded over HTTP being dumped to stdout. It's not quite clear
what was going on here.
This commit is contained in:
Timothy Flynn
2026-02-20 10:21:22 -05:00
committed by Tim Flynn
parent 932be463c9
commit 17a420cf97
Notes: github-actions[bot] 2026-02-20 16:42:30 +00:00
3 changed files with 9 additions and 1 deletions

View File

@@ -243,6 +243,7 @@ public:
Function<void(Gfx::Color)> on_theme_color_change;
Function<void(Web::HTML::AudioPlayState)> on_audio_play_state_changed;
Function<void()> on_web_content_crashed;
Function<void()> on_web_content_process_change_for_cross_site_navigation;
Menu& page_context_menu() { return *m_page_context_menu; }
Menu& link_context_menu() { return *m_link_context_menu; }