[Webkit-unassigned] [Bug 281648] New: Make [JSManagedValue initWithValue:] more robust against clients using it from non-main threads

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 16 22:14:12 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=281648

            Bug ID: 281648
           Summary: Make [JSManagedValue initWithValue:] more robust
                    against clients using it from non-main threads
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Keywords: InRadar
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mark.lam at apple.com

[JSManagedValue initWithValue:] does not currently acquire the JS API lock because it expects to only be called on the JS main thread.  However, it's easy for clients to make mistakes can call it from different threads.  We should make [JSManagedValue initWithValue:] more robust by simply making it acquire the JS API lock for its VM.

rdar://138037948

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20241017/b6e1c69e/attachment.htm>


More information about the webkit-unassigned mailing list