[Webkit-unassigned] [Bug 270610] New: [IPCTestingAPI] JSGlobalObject may be destroyed when sending IPC messages during page teardown
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 6 17:25:06 PST 2024
https://bugs.webkit.org/show_bug.cgi?id=270610
Bug ID: 270610
Summary: [IPCTestingAPI] JSGlobalObject may be destroyed when
sending IPC messages during page teardown
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Tools / Tests
Assignee: webkit-unassigned at lists.webkit.org
Reporter: charliew at apple.com
Some objects send IPC messages in their destructor. So, when the page is being torn down, it is possible that the JSGlobalObject associated with the JSContextRef we are storing has already been destroyed. To fix this, we should instead hold a weak reference to the global object and early return when it has been destroyed.
--
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/20240307/fc46e003/attachment.htm>
More information about the webkit-unassigned
mailing list