mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 23:58:12 +00:00
LibWebView: Port to Core::Stream
This commit is contained in:
parent
e3d9a3426e
commit
ab57fde8ec
1 changed files with 2 additions and 2 deletions
|
@ -525,11 +525,11 @@ Gfx::IntRect OutOfProcessWebView::notify_server_did_request_fullscreen_window()
|
||||||
|
|
||||||
void OutOfProcessWebView::notify_server_did_request_file(Badge<WebContentClient>, DeprecatedString const& path, i32 request_id)
|
void OutOfProcessWebView::notify_server_did_request_file(Badge<WebContentClient>, DeprecatedString const& path, i32 request_id)
|
||||||
{
|
{
|
||||||
auto file = FileSystemAccessClient::Client::the().try_request_file_read_only_approved_deprecated(window(), path);
|
auto file = FileSystemAccessClient::Client::the().request_file_read_only_approved(window(), path);
|
||||||
if (file.is_error())
|
if (file.is_error())
|
||||||
client().async_handle_file_return(file.error().code(), {}, request_id);
|
client().async_handle_file_return(file.error().code(), {}, request_id);
|
||||||
else
|
else
|
||||||
client().async_handle_file_return(0, IPC::File(file.value()->leak_fd()), request_id);
|
client().async_handle_file_return(0, IPC::File(file.value().stream()), request_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OutOfProcessWebView::did_scroll()
|
void OutOfProcessWebView::did_scroll()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue