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

Issue 1903043002: Use correct WebView from AccessibilityController. (Closed)

Created:
4 years, 8 months ago by Łukasz Anforowicz
Modified:
4 years, 8 months ago
CC:
aboxhall+watch_chromium.org, chromium-reviews, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, je_julie, jochen+watch_chromium.org, mlamouri+watch-test-runner_chromium.org, nektar+watch_chromium.org, site-isolation-reviews_chromium.org, yuzo+watch_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 AccessibilityController. Before this CL AccessibilityController would act on the WebView associated with the main test window, rather than acting on the WebView associated with the frame owning the AccessibilityController's javascript bindings. This could lead to UaF in AccessibilityController::NotificationReceived where it was trying to use web_view_->mainFrame on an already destroyed view (no good repro at ToT - repro would happen after other OOPIF refactorings when running in --site-per-process mode). Changes in the current CL: - AccessibilityController's lifetime is now owned by WebViewTestProxy (rather than having AccessibilityController owned by the global TestInterfaces object). - AccessibilityController 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 AccessibilityController object (because there is no longer a central/global AccessibilityController object). This means having to move code that calls AccessibilityController::Install and AccessibilityController::Reset away from TestInterfaces. Additional changes: - AccessibilityController does not need to inherit from base::SupportsWeakPtr<...> (because AccessibilityController already has a weak_factory_ field). BUG=595089 Committed: https://crrev.com/8ee983a2a52420c843fc4ed0de1ee3c107ef00b8 Cr-Commit-Position: refs/heads/master@{#389156}

Patch Set 1 #

Patch Set 2 : Rebasing + self-review. #

Patch Set 3 : Rebasing... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -56 lines) Patch
M components/test_runner/accessibility_controller.h View 1 2 chunks +7 lines, -11 lines 0 comments Download
M components/test_runner/accessibility_controller.cc View 1 10 chunks +18 lines, -19 lines 0 comments Download
M components/test_runner/test_interfaces.h View 1 3 chunks +0 lines, -3 lines 0 comments Download
M components/test_runner/test_interfaces.cc View 1 5 chunks +1 line, -13 lines 0 comments Download
M components/test_runner/web_frame_test_client.h View 2 chunks +0 lines, -2 lines 0 comments Download
M components/test_runner/web_frame_test_client.cc View 1 2 chunks +4 lines, -5 lines 0 comments Download
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 3 chunks +6 lines, -0 lines 0 comments Download
M components/test_runner/web_test_proxy.cc View 1 3 chunks +4 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 13 (6 generated)
Łukasz Anforowicz
jochen@, could you please take a look?
4 years, 8 months ago (2016-04-21 23:03:45 UTC) #3
jochen (gone - plz use gerrit)
lgtm
4 years, 8 months ago (2016-04-22 15:24:58 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1903043002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1903043002/40001
4 years, 8 months ago (2016-04-22 16:06:14 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-22 16:56:29 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1903043002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1903043002/40001
4 years, 8 months ago (2016-04-22 17:41:44 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-22 17:47:57 UTC) #11
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:49:25 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8ee983a2a52420c843fc4ed0de1ee3c107ef00b8
Cr-Commit-Position: refs/heads/master@{#389156}

Powered by Google App Engine
This is Rietveld 408576698