WebContent+LibWebView: Send GC graphs etc over IPC as shared memory

These can get very large, exceeding the new IPC message size limits.
Instead of serializing them into messages (which was silly anyway)
we now send them as Core::AnonymousBuffer which uses shared memory.
This commit is contained in:
Andreas Kling
2026-02-01 20:18:43 +01:00
committed by Andreas Kling
parent 5968ff90af
commit 34ae80d602
Notes: github-actions[bot] 2026-02-06 10:47:26 +00:00
6 changed files with 16 additions and 8 deletions

View File

@@ -786,11 +786,17 @@ NonnullRefPtr<Core::Promise<String>> ViewImplementation::request_internal_page_i
return promise;
}
void ViewImplementation::did_receive_internal_page_info(Badge<WebContentClient>, PageInfoType, String const& info)
void ViewImplementation::did_receive_internal_page_info(Badge<WebContentClient>, PageInfoType, Optional<Core::AnonymousBuffer> const& info)
{
VERIFY(m_pending_info_request);
m_pending_info_request->resolve(String { info });
String info_string;
if (!info.has_value()) {
info_string = "(no page)"_string;
} else {
info_string = MUST(String::from_utf8(info->bytes()));
}
m_pending_info_request->resolve(move(info_string));
m_pending_info_request = nullptr;
}