[Webkit-unassigned] [Bug 158004] Modern IDB: TransactionOperations from a worker thread might be destroyed on main thread
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 24 08:57:31 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=158004
--- Comment #3 from Brady Eidson <beidson at apple.com> ---
(In reply to comment #2)
> One idea for part of this:
>
> All of the IDB ActiveDOMObjects guard their own "postTask" which has a guard
> lock around the scriptExecutionContext(). They also use that lock inside
> their "contextDestroyed()" observer.
>
> That will definitely solve the first big problem - the race with the
> scriptExecutionContext itself existing and being active.
>
> Then we just need to solve "the thread runloop itself may no longer be
> active enough to use."
And the moment I woke up this morning, the super obvious answer hit me: When the thread shuts down, it cancels all currently registered operations, which will cause them to get destroyed on the appropriate thread before said thread goes away.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160524/f2ef245e/attachment.html>
More information about the webkit-unassigned
mailing list