RESOLVED FIXED 230954
Make WebLocalizedString() thread-safe
https://bugs.webkit.org/show_bug.cgi?id=230954
Summary Make WebLocalizedString() thread-safe
Chris Dumez
Reported 2021-09-29 07:54:22 PDT
Make WebLocalizedString() thread-safe. It takes minimal effort to make it thread-safe given that the NSBundle API is thread-safe and clients keep calling it on the background thread.
Attachments
Patch (2.48 KB, patch)
2021-09-29 07:59 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2021-09-29 07:59:08 PDT
Alexey Proskuryakov
Comment 2 2021-09-29 08:37:04 PDT
Comment on attachment 439607 [details] Patch Seems like a bad idea to me. This assertion caught thread safety bug in important clients several times in recent memory. One could claim that we shouldn't care because those re client bugs not WebKit ones; I will not agree with that.
Alexey Proskuryakov
Comment 3 2021-09-29 08:49:16 PDT
Comment on attachment 439607 [details] Patch I've been told that all those recent instances were not real bugs, and it was OK to call WebLocalizedString on background threads then. So r+.
EWS
Comment 4 2021-09-29 09:12:39 PDT
Committed r283225 (242267@main): <https://commits.webkit.org/242267@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 439607 [details].
Radar WebKit Bug Importer
Comment 5 2021-09-29 09:13:15 PDT
Note You need to log in before you can comment on or make changes to this bug.