mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:24:58 +00:00
Ladybird+LibWebView: Migrate file APIs to LibWebView callbacks
This also sets the default callback to do what every non-Serenity browser is doing, rather than copy-pasting this callback into every implementation. The callback is still available for any platform which might want to override the default behavior. For example, OOPWV now overrides this callback to use FileSystemAccessClient.
This commit is contained in:
parent
ebdcba8b3b
commit
15da77f4c4
10 changed files with 21 additions and 44 deletions
|
@ -366,7 +366,8 @@ Messages::WebContentClient::DidRequestFullscreenWindowResponse WebContentClient:
|
|||
|
||||
void WebContentClient::did_request_file(DeprecatedString const& path, i32 request_id)
|
||||
{
|
||||
m_view.notify_server_did_request_file({}, path, request_id);
|
||||
if (m_view.on_request_file)
|
||||
m_view.on_request_file(path, request_id);
|
||||
}
|
||||
|
||||
void WebContentClient::did_finish_handling_input_event(bool event_was_accepted)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue