[Webkit-unassigned] [Bug 209254] New: Avoid calling 'notifyThisWebProcessPoolWasCreated' inside the constructor
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 18 16:11:23 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=209254
Bug ID: 209254
Summary: Avoid calling 'notifyThisWebProcessPoolWasCreated'
inside the constructor
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit2
Assignee: webkit-unassigned at lists.webkit.org
Reporter: bfulgham at webkit.org
The constructor for WebProcessPool calls a method 'notifyThisWebProcessPoolWasCreated', which calls a set of functions registered by observers interested in knowing that the pool was constructed.
However, since this call is made during the construction of the object, code that attempts to do things like Ref<> the WebProcessPool do so with a partially-constructed object.
Instead, we should enqueue the notification call so that it fires on the next spin of the runloop, after the current object is finished being constructed.
--
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/20200318/1e6e2df5/attachment.htm>
More information about the webkit-unassigned
mailing list