Chromium Code Reviews
DescriptionHandle early destruction of CanvasCaptureHandler
Fuzz testing showed that CanvasCaptureHandler can be destructed
earlier than CanvasCaptureHandler::VideoCapturerSource. Both instances
are owned by Blink side objects, and destruction sequence might be
different(oilpan).
CanvasCaptureHandler invalidates weakptrs in dtor() on main_render_thread.
We can check if weakptr is valid in StopCapture() that also runs
on main_render_thread.
BUG=597077
TEST=Added unittest "DestructHandler" to reproduce the fuzz case.
Committed: https://crrev.com/7dc969b13dd7747c575ee60d8e2e498da60d3ea8
Cr-Commit-Position: refs/heads/master@{#382966}
Patch Set 1 #
Total comments: 8
Patch Set 2 : #
Messages
Total messages: 13 (6 generated)
|
|||||||||||||||||||||||||||||||||||||