mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
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:
committed by
Andreas Kling
parent
5968ff90af
commit
34ae80d602
Notes:
github-actions[bot]
2026-02-06 10:47:26 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/34ae80d6020 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7718
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user