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

Issue 1809793002: Fix connection between BrowserAccessibilityManager and ContentViewCore (Closed)

Created:
4 years, 9 months ago by dmazzoni
Modified:
4 years, 9 months ago
Reviewers:
jam, dcheng
CC:
chromium-reviews, creis+watch_chromium.org, danakj+watch_chromium.org, darin-cc_chromium.org, jbauman+watch_chromium.org, kalyank, nasko+codewatch_chromium.org, nona+watch_chromium.org, piman+watch_chromium.org, shuchen+watch_chromium.org, sievers+watch_chromium.org, James Su, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix connection between BrowserAccessibilityManager and ContentViewCore In r380416, we switched to one accessibility tree per frame, whether site isolation is on or not. On Android we only want the main frame's BrowserAccessibilityManager to be connected to the ContentViewCore, not any child frames. I modified RWHVAndroid::CreateBrowserAccessibilityManager in that change so that it wouldn't associate child frames with ContentViewCore, but I got my logic flipped (in a way that made tests pass, but didn't work in practice). In fixing it here, I realized that it may not be safe to assume that the main frame is the first one to create a BrowserAccessibilityManager. A more robust fix is for RFHI to pass a flag indicating whether it wants a BAM for the main frame or for another frame. In the future we may want to use that flag on other platforms, too - like on Mac really only the main frame's BAM should have the cocoa_view_, but I'll do that in a follow-up. BUG=595150 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/de9c87d3f524226eed52f2d7373bcde5b31ea169 Cr-Commit-Position: refs/heads/master@{#381844}

Patch Set 1 #

Patch Set 2 : InternalGetChild -> PlatformGetChild so we can walk into iframes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -20 lines) Patch
M content/browser/accessibility/browser_accessibility_manager_android.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 chunk +5 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 chunk +5 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (4 generated)
dmazzoni
4 years, 9 months ago (2016-03-16 18:36:59 UTC) #3
dcheng
lgtm
4 years, 9 months ago (2016-03-17 05:53:19 UTC) #4
jam
rubberstamp lgtm
4 years, 9 months ago (2016-03-17 23:02:34 UTC) #5
jam
On 2016/03/17 23:02:34, jam wrote: > rubberstamp lgtm (i.e. can someone familiar with this code ...
4 years, 9 months ago (2016-03-17 23:02:50 UTC) #6
dmazzoni
I believe Daniel Cheng is familiar enough with this change. If you feel this needs ...
4 years, 9 months ago (2016-03-17 23:05:09 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1809793002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1809793002/20001
4 years, 9 months ago (2016-03-17 23:09:12 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-18 00:16:55 UTC) #10
commit-bot: I haz the power
4 years, 9 months ago (2016-03-18 00:18:45 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/de9c87d3f524226eed52f2d7373bcde5b31ea169
Cr-Commit-Position: refs/heads/master@{#381844}

Powered by Google App Engine
This is Rietveld 408576698