DescriptionUse correct WebTestDelegate from WebViewTestClient and WebTestProxyBase.
Before this CL:
- WebViewTestClient would use a WebTestDelegate from the (effectively
global) TestInterfaces object.
- WebTestProxyBase would use a WebTestDelegate from the global
LayoutTestRenderProcessObserver singleton.
This WebTestDelegate (aka BlinkTestRunner) might or might not be
associated with the specific view related to the given WebView /
RenderView / WebViewTestClient / WebTestProxyBase. This in turn could
lead to UaF (no repro at ToT - this would be trigerred after some other
OOPIF-related changes that have not landed yet).
This CL modifies WebTestProxyCreated function in
layout_test_content_renderer_client.cc to make sure the right
BlinkTestRunner is passed to the WebTestProxyBase. Other changes make
sure that WebViewTestClient uses BlinkTestRunner from the associated
WebTestProxyBase (rather than using one handed over from
WebTestInterfaces).
BUG=595089
Committed: https://crrev.com/eebc689061ed11598010112c5e47cce7edfa80ac
Cr-Commit-Position: refs/heads/master@{#387336}
Patch Set 1 #Patch Set 2 : Extracted focused view tracking to https://crrev.com/1886013002 #
Depends on Patchset: Messages
Total messages: 15 (8 generated)
|