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 2024-05-12 15:30:56 -04:00 committed by Andrew Kaster
parent 3ff1d7da59
commit 8b14b5ef36

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;