Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Issue 1885993002: Use correct WebTestDelegate from WebViewTestClient and WebTestProxyBase. (Closed)

Created:
4 years, 8 months ago by Łukasz Anforowicz
Modified:
4 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, jochen+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -28 lines) Patch
M components/test_runner/web_test_interfaces.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M components/test_runner/web_test_proxy.h View 1 chunk +7 lines, -1 line 0 comments Download
M components/test_runner/web_test_proxy.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M components/test_runner/web_view_test_client.h View 2 chunks +1 line, -2 lines 0 comments Download
M components/test_runner/web_view_test_client.cc View 1 8 chunks +17 lines, -16 lines 0 comments Download
M content/shell/renderer/layout_test/layout_test_content_renderer_client.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 15 (8 generated)
Łukasz Anforowicz
jochen@, could you please take a look?
4 years, 8 months ago (2016-04-13 21:24:26 UTC) #5
jochen (gone - plz use gerrit)
lgtm
4 years, 8 months ago (2016-04-14 13:30:59 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1885993002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1885993002/20001
4 years, 8 months ago (2016-04-14 13:51:01 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-14 14:27:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1885993002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1885993002/20001
4 years, 8 months ago (2016-04-14 16:30:56 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-14 16:36:19 UTC) #13
commit-bot: I haz the power
4 years, 8 months ago (2016-04-14 16:37:52 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/eebc689061ed11598010112c5e47cce7edfa80ac
Cr-Commit-Position: refs/heads/master@{#387336}

Powered by Google App Engine
This is Rietveld 408576698