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

Issue 2386683002: Do not store TestRunner in WebFrameTestClient. (Closed)

Created:
4 years, 2 months ago by Łukasz Anforowicz
Modified:
4 years, 2 months ago
CC:
chromium-reviews, einbinder+watch-test-runner_chromium.org, jochen+watch_chromium.org, mlamouri+watch-test-runner_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -72 lines) Patch
M components/test_runner/web_frame_test_client.h View 2 chunks +5 lines, -5 lines 0 comments Download
M components/test_runner/web_frame_test_client.cc View 21 chunks +44 lines, -42 lines 0 comments Download
M components/test_runner/web_test_interfaces.cc View 1 2 1 chunk +6 lines, -5 lines 0 comments Download
M components/test_runner/web_view_test_client.h View 1 2 2 chunks +4 lines, -6 lines 0 comments Download
M components/test_runner/web_view_test_client.cc View 1 2 3 4 9 chunks +16 lines, -14 lines 0 comments Download

Messages

Total messages: 22 (15 generated)
Łukasz Anforowicz
jochen@, can you take a look please? What I really want is to get rid ...
4 years, 2 months ago (2016-09-30 23:20:03 UTC) #11
jochen (gone - plz use gerrit)
lgtm
4 years, 2 months ago (2016-10-04 14:42:26 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2386683002/40001
4 years, 2 months ago (2016-10-04 15:20:29 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/273675) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 2 months ago (2016-10-04 15:32:14 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2386683002/80001
4 years, 2 months ago (2016-10-04 18:33:40 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-04 20:21:12 UTC) #20
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 20:23:42 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/bdc126c7556aa6499acefbd0b3b4945cb46d08c3
Cr-Commit-Position: refs/heads/master@{#422901}

Powered by Google App Engine
This is Rietveld 408576698