DescriptionDo not store TestRunner* in WebViewTestClient and/or WebFrameTestClient.
Instead of storing borrowed pointer to TestRunner, WebFrameTestClient
and WebViewTestClient can both obtain the same pointer via another (also
borrowed) pointer they already have - one to WebViewTestProxyBase.
Less fields to worry about (e.g. wrt lifetime management) is good.
In the long-term we also should remove |delegate_| field from
WebFrameTestClient (responsible for UaF in https://crbug.com/606594).
BUG=595089
Committed: https://crrev.com/bdc126c7556aa6499acefbd0b3b4945cb46d08c3
Cr-Commit-Position: refs/heads/master@{#422901}
Patch Set 1 #Patch Set 2 : Added a TODO comment for also not storing WebTestDelegate. #Patch Set 3 : Remove similar field from WebViewTestClient. #Patch Set 4 : Rebasing... #Patch Set 5 : s/test_runner_/test_runner()/ for one case pulled after rebasing. #
Messages
Total messages: 22 (15 generated)
|