Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Issue 15744014: Allow the IAccessible parent to be known late in the game. (Closed)

Created:
7 years, 7 months ago by grt (UTC plus 2)
Modified:
7 years, 7 months ago
CC:
chromium-reviews, James Su, yusukes+watch_chromium.org, hashimoto+watch_chromium.org, aboxhall+watch_chromium.org, yoshiki+watch_chromium.org, jam, penghuang+watch_chromium.org, yuzo+watch_chromium.org, davidbarr+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, ctguil+watch_chromium.org, zork+watch_chromium.org
Visibility:
Public.

Description

Allow the IAccessible parent to be known late in the game. In the case of a tab loading in the background, accessibility notifications may arrive from the renderer before the tab's WebContents is added to a WebView. In this case, the accessible parent isn't yet known. Handle this case by allowing the RWHVA's BrowserAccessibilityManager to be created without an accessible parent and then receive that parent (from a WebContentsImpl) when the WebContents is finally attached to a WebView. BUG=242524 [email protected] Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202247

Patch Set 1 #

Total comments: 2

Patch Set 2 : A proper fix rather than a band-aid #

Patch Set 3 : compile fix #

Total comments: 1

Patch Set 4 : No NotifyWinEvent without a parent, and pass parent through RWHVPort to RWHVA. #

Total comments: 2

Patch Set 5 : MaybeCallNotifyWinEvent #

Total comments: 3

Patch Set 6 : NOTREACHED becomes CHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -23 lines) Patch
M content/browser/accessibility/browser_accessibility_manager_win.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_win.cc View 1 2 3 4 3 chunks +15 lines, -11 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win.cc View 1 2 3 4 5 4 chunks +14 lines, -11 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 2 chunks +14 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_guest.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_guest.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/port/browser/render_widget_host_view_port.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
grt (UTC plus 2)
7 years, 7 months ago (2013-05-22 21:57:40 UTC) #1
grt (UTC plus 2)
Here's a band-aid to make cpu@ happy. Please loop in sky@ or another content/browser OWNER ...
7 years, 7 months ago (2013-05-22 22:00:28 UTC) #2
dmazzoni
lgtm with the suggestion that we change NOTREACHED to LOG(ERROR), see below +sky https://codereview.chromium.org/15744014/diff/1/content/browser/accessibility/browser_accessibility_win.cc File ...
7 years, 7 months ago (2013-05-22 23:08:04 UTC) #3
sky
https://codereview.chromium.org/15744014/diff/1/content/browser/accessibility/browser_accessibility_win.cc File content/browser/accessibility/browser_accessibility_win.cc (right): https://codereview.chromium.org/15744014/diff/1/content/browser/accessibility/browser_accessibility_win.cc#newcode498 content/browser/accessibility/browser_accessibility_win.cc:498: NOTREACHED(); If this is a valid state then you ...
7 years, 7 months ago (2013-05-23 00:09:24 UTC) #4
grt (UTC plus 2)
Thanks for the comments. I believe I've turned the band-aid into a proper fix for ...
7 years, 7 months ago (2013-05-23 14:10:32 UTC) #5
dmazzoni
Thanks for the right fix! This is the right idea - but it's still possible ...
7 years, 7 months ago (2013-05-23 14:53:35 UTC) #6
grt (UTC plus 2)
Thanks for the suggestions, Dominic. I've consolidated calls to NotifyWinEvent into a new method on ...
7 years, 7 months ago (2013-05-23 18:30:47 UTC) #7
dmazzoni
lgtm with nit content/browser/accessibility looks fine - I'll defer to Scott on whether using RWHVPort ...
7 years, 7 months ago (2013-05-23 18:41:51 UTC) #8
grt (UTC plus 2)
Thanks. sky: PTAL, specifically the way I plumbed through RenderWidgetHostViewPort. Please see Dominic's and my ...
7 years, 7 months ago (2013-05-23 18:52:43 UTC) #9
sky
https://codereview.chromium.org/15744014/diff/29018/content/browser/accessibility/browser_accessibility_win.cc File content/browser/accessibility/browser_accessibility_win.cc (right): https://codereview.chromium.org/15744014/diff/29018/content/browser/accessibility/browser_accessibility_win.cc#newcode495 content/browser/accessibility/browser_accessibility_win.cc:495: // This can only happen if the BrowserAccessibilityManagerWin was ...
7 years, 7 months ago (2013-05-23 21:16:07 UTC) #10
grt (UTC plus 2)
https://codereview.chromium.org/15744014/diff/29018/content/browser/accessibility/browser_accessibility_win.cc File content/browser/accessibility/browser_accessibility_win.cc (right): https://codereview.chromium.org/15744014/diff/29018/content/browser/accessibility/browser_accessibility_win.cc#newcode495 content/browser/accessibility/browser_accessibility_win.cc:495: // This can only happen if the BrowserAccessibilityManagerWin was ...
7 years, 7 months ago (2013-05-24 01:15:16 UTC) #11
grt (UTC plus 2)
https://codereview.chromium.org/15744014/diff/29018/content/browser/accessibility/browser_accessibility_win.cc File content/browser/accessibility/browser_accessibility_win.cc (right): https://codereview.chromium.org/15744014/diff/29018/content/browser/accessibility/browser_accessibility_win.cc#newcode495 content/browser/accessibility/browser_accessibility_win.cc:495: // This can only happen if the BrowserAccessibilityManagerWin was ...
7 years, 7 months ago (2013-05-24 13:22:37 UTC) #12
dmazzoni
On 2013/05/24 13:22:37, grt wrote: > Upon further thought, I think CHECK(parent) is better. Although ...
7 years, 7 months ago (2013-05-24 13:50:15 UTC) #13
grt (UTC plus 2)
On 2013/05/24 13:50:15, Dominic Mazzoni wrote: > On 2013/05/24 13:22:37, grt wrote: > > Upon ...
7 years, 7 months ago (2013-05-24 15:53:33 UTC) #14
sky
LGTM
7 years, 7 months ago (2013-05-24 16:06:03 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/15744014/43001
7 years, 7 months ago (2013-05-24 16:07:41 UTC) #16
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=4840
7 years, 7 months ago (2013-05-24 16:15:51 UTC) #17
grt (UTC plus 2)
+joi for content/port OWNERS review.
7 years, 7 months ago (2013-05-24 17:17:53 UTC) #18
Jói
LGTM for //content/port.
7 years, 7 months ago (2013-05-24 21:33:03 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/15744014/43001
7 years, 7 months ago (2013-05-24 22:09:54 UTC) #20
commit-bot: I haz the power
7 years, 7 months ago (2013-05-25 01:14:52 UTC) #21
Message was sent while issue was closed.
Change committed as 202247

Powered by Google App Engine
This is Rietveld 408576698