1
Fork 0
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:
Karol Kosek 2023-01-08 23:20:29 +01:00 committed by Linus Groh
parent 3d22efccca
commit e3d9a3426e

View file

@ -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()