Descriptionmojo: Fix Blink's shutdown sequence in AxProviderImplTest
This patch ensures the sequence used to tear down Blink in
AxProviderImplTest matches the real implementation in RenderThreadImpl.
Specifically, we need to shut down the scheduler before terminating
Blink, because otherwise the scheduler might keep pointers to tasks
that live on the Blink heap and access freed memory in its destructor.
We also add an assertion to the renderer scheduler that it is shut down
explicitly.
Note that Blink cannot shut down the scheduler internally because of
crbug.com/467369. We expect that this depedency can be cleaned up once
the message loop is better integrated with the scheduler
(crbug.com/465354) and when the Blink repository has been merged into
Chromium.
BUG=463143
Committed: https://crrev.com/23e04e72e8121a372fcbaf779fde9faae2bc772f
Cr-Commit-Position: refs/heads/master@{#332221}
Patch Set 1 #Patch Set 2 : Add missing shutdown call to html_viewer::Setup #
Messages
Total messages: 14 (5 generated)
|