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

Issue 1896413003: Use correct WebView from TextInputController. (Closed)

Created:
4 years, 8 months ago by Łukasz Anforowicz
Modified:
4 years, 8 months ago
CC:
chromium-reviews, jochen+watch_chromium.org, mlamouri+watch-test-runner_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@event-sender-per-view
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use correct WebView from TextInputController. Before this CL TextInputController would act on the WebView associated with the main test window, rather than acting on the WebView associated with the frame owning the TextInputController's javascript bindings. This could potentially lead to UaF (there is no known repro though at the moment). Changes in the current CL: - TextInputController's lifetime is now owned by WebViewTestProxy (rather than having TextInputController owned by the global TestInterfaces object). - TextInputController now uses WebView from the correct WebViewTestProxy (rather than one associted with the main test window). - TestInterfaces object no longer has a pointer to an TextInputController object (because there is no longer a central/global TextInputController object). This means having to move code that calls TextInputController::Install away from TestInterfaces. Additional changes: - TextInputController does not need to inherit from base::SupportsWeakPtr<...> (because TextInputController already has a weak_factory_ field). BUG=595089 Committed: https://crrev.com/8b6d5f3c021f312bb13f4a4cf2c04bd8f1c5187f Cr-Commit-Position: refs/heads/master@{#389142}

Patch Set 1 #

Patch Set 2 : Self-review. #

Patch Set 3 : Constructor should be explicit. #

Patch Set 4 : Rebasing... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -44 lines) Patch
M components/test_runner/test_interfaces.h View 2 chunks +0 lines, -2 lines 0 comments Download
M components/test_runner/test_interfaces.cc View 1 5 chunks +0 lines, -7 lines 0 comments Download
M components/test_runner/text_input_controller.h View 1 2 2 chunks +8 lines, -7 lines 0 comments Download
M components/test_runner/text_input_controller.cc View 8 chunks +27 lines, -27 lines 0 comments Download
M components/test_runner/web_test_proxy.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M components/test_runner/web_test_proxy.cc View 1 3 chunks +5 lines, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 12 (5 generated)
Łukasz Anforowicz
jochen@, could you please take a look?
4 years, 8 months ago (2016-04-21 23:03:10 UTC) #2
jochen (gone - plz use gerrit)
lgtm
4 years, 8 months ago (2016-04-22 15:24:32 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1896413003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1896413003/60001
4 years, 8 months ago (2016-04-22 16:06:13 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-22 16:40:18 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1896413003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1896413003/60001
4 years, 8 months ago (2016-04-22 16:51:39 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-22 16:56:42 UTC) #10
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:48:52 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8b6d5f3c021f312bb13f4a4cf2c04bd8f1c5187f
Cr-Commit-Position: refs/heads/master@{#389142}

Powered by Google App Engine
This is Rietveld 408576698