mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:38:11 +00:00
Ladybird: Port to Core::Stream::File
This commit is contained in:
parent
3d22efccca
commit
e3d9a3426e
1 changed files with 2 additions and 2 deletions
|
@ -1049,11 +1049,11 @@ Gfx::IntRect WebContentView::notify_server_did_request_fullscreen_window()
|
|||
|
||||
void WebContentView::notify_server_did_request_file(Badge<WebContentClient>, DeprecatedString const& path, i32 request_id)
|
||||
{
|
||||
auto file = Core::File::open(path, Core::OpenMode::ReadOnly);
|
||||
auto file = Core::Stream::File::open(path, Core::Stream::OpenMode::Read);
|
||||
if (file.is_error())
|
||||
client().async_handle_file_return(file.error().code(), {}, request_id);
|
||||
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()), request_id);
|
||||
}
|
||||
|
||||
void WebContentView::request_repaint()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue