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

Issue 1841833005: Revert of Extract WebFrameClient implementation out of WebTestProxyBase. (Closed)

Created:
4 years, 8 months ago by jochen (gone - plz use gerrit)
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

Revert of Extract WebFrameClient implementation out of WebTestProxyBase. (patchset #5 id:80001 of https://codereview.chromium.org/1821923003/ ) Reason for revert: use after free in color chooser Original issue's description: > Extract WebFrameClient implementation out of WebTestProxyBase. > > Overview > ======== > > This CL extracts WebFrameClient-specific parts of WebTestProxyBase into > a new WebFrameTestClient class. > > This CL is part of a sequence of CLs that make progress toward: > > 1) Splitting WebTestProxyBase into separate WebFrameClient / > WebWidgetClient / WebViewClient focused classes > > 2) Removing WebTestProxyBase from public API of components/test_runner > (and having WebTestProxy and WebFrameTestProxy consume instead > abstract WebFrameClient / WebWidgetClient / WebViewClient interfaces). > > Details > ======= > > Most of the change is mechanical move of code from WebTestProxyBase > into the new WebFrameTestClient (slightly tweaking method signatures > as needed to make them fit WebFrameClient interface - note camelCasing > and extra parameters here and there). > > Additionally some helper methods (i.e. URLDescription and > WebNavigationPolicyToString) are now needed by both WebTestProxyBase and > by WebFrameTestClient. Consequently, to facilitate code reuse, these > helper methods were moved to test_common.cc. > > Finally, in order to decouple WebFrameTestClient from view-specific > WebTestProxyBase the CL does the following: > > - It moves counting currently active color choosers from > WebTestProxyBase into TestRunner (and adjusts MockColorChooser > accordingly). > > - It moves ownership of MockWebUserMediaClient from > WebTestProxyBase into TestRunner. This is quite natural, as > MockWebUserMediaClient depends only on WebTestDelegate::PostTask and > WebTestDelegate::AddMediaStreamAudioSourceAndTrack (which are not > view-specific). > > - Replacing WebFrameTestProxy::set_base_proxy with > WebFrameTestProxy::set_test_client requires refactoring how higher > layers provide the necessary object - in particular after the CL the > WebFrame[Test]Client cannot be extracted from WebTestProxy/RenderView > (because the whole point of this CL is to remove the coupling between > view-specific WebTestProxy and frame-focused WebFrameTestProxy). This > part of the refactoring is accomplished by adding a frame-proxy > creation callback that can be provided to EnableWebTestProxyCreation > (similarily how it already was accepting equivalent view-proxy > creation callback). This refactoring also necessitates extracting a > WebFrameTestProxyBase (to have a concrete/non-templatized type that > content/shell/.../layout_tests layer can take a dependency on). > > BUG=595089 > > Committed: https://crrev.com/11e459b088ab4736f10776a3831d0b9ddf249517 > Cr-Commit-Position: refs/heads/master@{#384044} TBR=kochi@chromium.org,lukasza@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=595089 Committed: https://crrev.com/69e85e2e09b39a7c5366a8c704a984622b1e7846 Cr-Commit-Position: refs/heads/master@{#384269}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1045 lines, -1148 lines) Patch
M components/test_runner/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M components/test_runner/mock_color_chooser.h View 1 chunk +15 lines, -19 lines 0 comments Download
M components/test_runner/mock_color_chooser.cc View 2 chunks +6 lines, -9 lines 0 comments Download
M components/test_runner/test_common.h View 2 chunks +0 lines, -7 lines 0 comments Download
M components/test_runner/test_common.cc View 3 chunks +0 lines, -38 lines 0 comments Download
M components/test_runner/test_runner.h View 4 chunks +1 line, -11 lines 0 comments Download
M components/test_runner/test_runner.cc View 6 chunks +1 line, -18 lines 0 comments Download
M components/test_runner/test_runner.gyp View 1 chunk +0 lines, -2 lines 0 comments Download
D components/test_runner/web_frame_test_client.h View 1 chunk +0 lines, -129 lines 0 comments Download
D components/test_runner/web_frame_test_client.cc View 1 chunk +0 lines, -765 lines 0 comments Download
M components/test_runner/web_frame_test_proxy.h View 11 chunks +61 lines, -70 lines 0 comments Download
M components/test_runner/web_test_interfaces.h View 3 chunks +0 lines, -9 lines 0 comments Download
M components/test_runner/web_test_interfaces.cc View 2 chunks +0 lines, -12 lines 0 comments Download
M components/test_runner/web_test_proxy.h View 9 chunks +122 lines, -0 lines 0 comments Download
M components/test_runner/web_test_proxy.cc View 13 chunks +779 lines, -4 lines 0 comments Download
M content/public/test/layouttest_support.h View 2 chunks +5 lines, -11 lines 0 comments Download
M content/shell/renderer/layout_test/layout_test_content_renderer_client.h View 2 chunks +18 lines, -0 lines 0 comments Download
M content/shell/renderer/layout_test/layout_test_content_renderer_client.cc View 3 chunks +18 lines, -28 lines 0 comments Download
M content/test/layouttest_support.cc View 3 chunks +19 lines, -14 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
jochen (gone - plz use gerrit)
Created Revert of Extract WebFrameClient implementation out of WebTestProxyBase.
4 years, 8 months ago (2016-03-31 08:43:00 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1841833005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1841833005/1
4 years, 8 months ago (2016-03-31 08:43:11 UTC) #2
commit-bot: I haz the power
Failed to apply patch for components/test_runner/test_runner.cc: While running git apply --index -3 -p1; error: patch ...
4 years, 8 months ago (2016-03-31 08:44:41 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1841833005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1841833005/1
4 years, 8 months ago (2016-03-31 14:19:10 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-03-31 14:20:23 UTC) #8
commit-bot: I haz the power
4 years, 8 months ago (2016-03-31 14:21:31 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/69e85e2e09b39a7c5366a8c704a984622b1e7846
Cr-Commit-Position: refs/heads/master@{#384269}

Powered by Google App Engine
This is Rietveld 408576698