mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10: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:
1 parent
3ff1d7da59
commit
8b14b5ef36
1 file changed
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user