From ab57fde8ecef1a4a6985f02afef6c6036585fbe8 Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Sun, 8 Jan 2023 23:20:44 +0100 Subject: [PATCH] LibWebView: Port to Core::Stream --- Userland/Libraries/LibWebView/OutOfProcessWebView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp index c00662ae960..d9c5a89cd3c 100644 --- a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp +++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp @@ -525,11 +525,11 @@ Gfx::IntRect OutOfProcessWebView::notify_server_did_request_fullscreen_window() void OutOfProcessWebView::notify_server_did_request_file(Badge, 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()) 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().stream()), request_id); } void OutOfProcessWebView::did_scroll()