DescriptionFix 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 #Dependent Patchsets: Messages
Total messages: 12 (4 generated)
|