DescriptionMojo: Cancel WaitingCallbacks when their HandleWrappers are closed.
Currently, if a JS connector is left to be garbage collected, the handle
and the WaitingCallback both become ready to be collected at the same
time. If the handle is collected first, this results in an asynchronous
wait on a closed handle. With this change, WaitingCallback registers
itself as an observer to be notified when the handle it's watching is
closing and cancels the wait if the handle closes while the wait is in
progress.
BUG=406487
Committed: https://crrev.com/a9e9f87c058a47db6c5709b38aae09acd56b11cc
Cr-Commit-Position: refs/heads/master@{#294775}
Patch Set 1 : #
Total comments: 2
Patch Set 2 : ObserverList #
Total comments: 10
Patch Set 3 : address comments #
Total comments: 2
Patch Set 4 : DISALLOW_COPY_AND_ASSIGN #
Messages
Total messages: 15 (5 generated)
|