mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-09 06:58:44 +00:00
To protect the main Browser process against nefarious cookies, parse the cookies out-of-process and then send the parsed result over IPC to the main process. This way, if the cookie parser blows up, only that tab will be affected.
31 lines
1.5 KiB
Plaintext
31 lines
1.5 KiB
Plaintext
endpoint WebContentClient = 90
|
|
{
|
|
DidStartLoading(URL url) =|
|
|
DidFinishLoading(URL url) =|
|
|
DidPaint(Gfx::IntRect content_rect, i32 bitmap_id) =|
|
|
DidInvalidateContentRect(Gfx::IntRect content_rect) =|
|
|
DidChangeSelection() =|
|
|
DidRequestCursorChange(i32 cursor_type) =|
|
|
DidLayout(Gfx::IntSize content_size) =|
|
|
DidChangeTitle(String title) =|
|
|
DidRequestScroll(int wheel_delta) =|
|
|
DidRequestScrollIntoView(Gfx::IntRect rect) =|
|
|
DidEnterTooltipArea(Gfx::IntPoint content_position, String title) =|
|
|
DidLeaveTooltipArea() =|
|
|
DidHoverLink(URL url) =|
|
|
DidUnhoverLink() =|
|
|
DidClickLink(URL url, String target, unsigned modifiers) =|
|
|
DidMiddleClickLink(URL url, String target, unsigned modifiers) =|
|
|
DidRequestContextMenu(Gfx::IntPoint content_position) =|
|
|
DidRequestLinkContextMenu(Gfx::IntPoint content_position, URL url, String target, unsigned modifiers) =|
|
|
DidRequestImageContextMenu(Gfx::IntPoint content_position, URL url, String target, unsigned modifiers, Gfx::ShareableBitmap bitmap) =|
|
|
DidRequestAlert(String message) => ()
|
|
DidRequestConfirm(String message) => (bool result)
|
|
DidRequestPrompt(String message, String default_) => (String response)
|
|
DidGetSource(URL url, String source) =|
|
|
DidJSConsoleOutput(String method, String line) =|
|
|
DidChangeFavicon(Gfx::ShareableBitmap favicon) =|
|
|
DidRequestCookie(URL url, u8 source) => (String cookie)
|
|
DidSetCookie(URL url, Web::Cookie::ParsedCookie cookie, u8 source) =|
|
|
}
|