mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
WebContent: Added IPC calls for getting source
This commit is contained in:
parent
a032c836c4
commit
306501fd4a
Notes:
sideshowbarker
2024-07-18 21:59:40 +09:00
Author: https://github.com/xeons
Commit: 306501fd4a
Pull-request: https://github.com/SerenityOS/serenity/pull/5477
Reviewed-by: https://github.com/awesomekling
4 changed files with 10 additions and 0 deletions
|
@ -209,4 +209,11 @@ void ClientConnection::handle(const Messages::WebContentServer::DebugRequest& me
|
|||
}
|
||||
}
|
||||
|
||||
void ClientConnection::handle(const Messages::WebContentServer::GetSource&)
|
||||
{
|
||||
if (auto* doc = page().main_frame().document()) {
|
||||
post_message(Messages::WebContentClient::DidGetSource(doc->url(), doc->source()));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue