mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +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
Notes:
sideshowbarker
2024-07-16 23:57:20 +09:00
Author: https://github.com/alec3660 Commit: https://github.com/SerenityOS/serenity/commit/8b14b5ef36 Pull-request: https://github.com/SerenityOS/serenity/pull/24302 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 2 additions and 2 deletions
|
@ -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