mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-06 16:09:30 +00:00
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:
parent
3ff1d7da59
commit
8b14b5ef36
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue