Browser: Pledge thread for FilePicker

This fixes a crash when attempting to display thumbnails for image
files in the FilePicker if thread is not pledged.
This commit is contained in:
Alec Murphy authored and Andrew Kaster committed 2024-05-12 15:37:36 -06:00
1 parent 3ff1d7da59
commit 8b14b5ef36
1 file changed
+2 -2
+2 -2
View File
@@ -131,11 +131,11 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
return 1;
}
TRY(Core::System::pledge("sigaction stdio recvfd sendfd accept unix fattr cpath rpath wpath proc exec"));
TRY(Core::System::pledge("sigaction stdio thread recvfd sendfd accept unix fattr cpath rpath wpath proc exec"));
WebView::ProcessManager::initialize();
TRY(Core::System::pledge("stdio recvfd sendfd accept unix fattr cpath rpath wpath proc exec"));
TRY(Core::System::pledge("stdio thread recvfd sendfd accept unix fattr cpath rpath wpath proc exec"));
Vector<ByteString> specified_urls;
bool new_window = false;