Examine device/vr use of weakptr and callbacks. There may be cases where we don't call callbacks deterministically |
|||||
Issue description
We have a pattern of:
task_runner()->PostTask(
FROM_HERE, base::BindOnce(&SomeClass::SomeFunction, GetWeakPtr())), where we expect to call callbacks inside SomeFunction.
However, if the weak pointer is invalidated before the callback is run, we may leave some callbacks uncalled, and therefore outstanding mojo calls may not be resolved, and promises may not resolve in blink.
Make a pass over where we do this to ensure we don't have bugs. Add tests, and see if there are safer patterns.
,
Jul 4
,
Aug 7
Removing Internals>VR component and assigning to Internals>XR
,
Aug 7
,
Dec 7
,
Dec 7
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by asimjour@chromium.org
, Jun 7 2018