Everywhere: Use URL::about_XXX factory functions

This commit is contained in:
Shannon Booth 2025-02-15 23:51:45 +13:00 committed by Tim Ledbetter
commit 9072a7caef
Notes: github-actions[bot] 2025-02-15 17:06:59 +00:00
18 changed files with 28 additions and 28 deletions

View file

@ -73,7 +73,7 @@ void Page::load_html(StringView html)
// FIXME: #23909 Figure out why GC threshold does not stay low when repeatedly loading html from the WebView
heap().collect_garbage();
(void)top_level_traversable()->navigate({ .url = "about:srcdoc"sv,
(void)top_level_traversable()->navigate({ .url = URL::about_srcdoc(),
.source_document = *top_level_traversable()->active_document(),
.document_resource = String::from_utf8(html).release_value_but_fixme_should_propagate_errors(),
.user_involvement = HTML::UserNavigationInvolvement::BrowserUI });