LibWeb: Add a workaround for excessive memory usage in Page::load_html

This commit is contained in:
Andrew Kaster 2024-04-09 15:13:13 -06:00 committed by Andrew Kaster
commit 29b12cb449
Notes: sideshowbarker 2024-07-17 09:37:30 +09:00

View file

@ -65,6 +65,8 @@ void Page::load(URL::URL const& url)
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,
.source_document = *top_level_traversable()->active_document(),