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

Issue 329053004: Fix race in BrowserAccessibilityManagerWin creation. (Closed)

Created:
6 years, 6 months ago by dmazzoni
Modified:
6 years, 6 months ago
Reviewers:
jam, ananta
CC:
chromium-reviews, creis+watch_chromium.org, yusukes+watch_chromium.org, plundblad+watch_chromium.org, yukishiino+watch_chromium.org, aboxhall+watch_chromium.org, tfarina, nasko+codewatch_chromium.org, penghuang+watch_chromium.org, yuzo+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fix race in BrowserAccessibilityManagerWin creation. Previously, BrowserAccessibilityManagerWin needed its parent HWND and parent IAccessible upon construction, and if RWHVA didn't have those, it didn't create the BAMW. This resulted in at least two races: * If an accessibility tree update came from the renderer but the BAMW wasn't created because the window wasn't available, the tree update would get discarded - possibly leading to an assertion failure / renderer crash later on the next update from being out of sync. * If we tried to create the BAMW before the LegacyRWHH existed, we would fall through and create a BAM instead of a BAMW, making that whole tab inaccessible. To fix both issues, we always create a BAMW when needed, and we update the BAMW with the LegacyRWHH as soon as it's available. BUG=372478, 379019 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276950

Patch Set 1 #

Total comments: 1

Patch Set 2 : Simpler fix #

Total comments: 2

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -25 lines) Patch
M content/browser/accessibility/browser_accessibility_manager_win.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_win.cc View 1 2 2 chunks +12 lines, -3 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 2 chunks +17 lines, -22 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
dmazzoni
6 years, 6 months ago (2014-06-11 08:09:52 UTC) #1
jam
lgtm for files outside of accessibility directories
6 years, 6 months ago (2014-06-11 16:02:35 UTC) #2
ananta
https://codereview.chromium.org/329053004/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/329053004/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1024 content/browser/renderer_host/render_widget_host_view_aura.cc:1024: legacy_render_widget_host_HWND_->set_browser_accessibility_manager( This will crash in Windows 8 ASH. You ...
6 years, 6 months ago (2014-06-12 18:30:17 UTC) #3
dmazzoni
Please take a look again. I want to merge to M36 to fix a top ...
6 years, 6 months ago (2014-06-12 22:01:00 UTC) #4
ananta
https://codereview.chromium.org/329053004/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/329053004/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1263 content/browser/renderer_host/render_widget_host_view_aura.cc:1263: LegacyRenderWidgetHostHWND* parent_hwnd = We should be allocating the BrowserAccessibilityManagerWin ...
6 years, 6 months ago (2014-06-12 22:17:45 UTC) #5
jam
lgtm
6 years, 6 months ago (2014-06-12 23:07:00 UTC) #6
dmazzoni
https://codereview.chromium.org/329053004/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/329053004/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1263 content/browser/renderer_host/render_widget_host_view_aura.cc:1263: LegacyRenderWidgetHostHWND* parent_hwnd = On 2014/06/12 22:17:45, ananta wrote: > ...
6 years, 6 months ago (2014-06-12 23:23:28 UTC) #7
ananta
On 2014/06/12 23:23:28, dmazzoni wrote: > https://codereview.chromium.org/329053004/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc > File content/browser/renderer_host/render_widget_host_view_aura.cc (right): > > https://codereview.chromium.org/329053004/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1263 > ...
6 years, 6 months ago (2014-06-12 23:38:22 UTC) #8
dmazzoni
The CQ bit was checked by dmazzoni@chromium.org
6 years, 6 months ago (2014-06-12 23:44:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/329053004/40001
6 years, 6 months ago (2014-06-12 23:48:41 UTC) #10
dmazzoni
The CQ bit was unchecked by dmazzoni@chromium.org
6 years, 6 months ago (2014-06-13 05:24:08 UTC) #11
dmazzoni
The CQ bit was checked by dmazzoni@chromium.org
6 years, 6 months ago (2014-06-13 05:24:23 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/329053004/40001
6 years, 6 months ago (2014-06-13 05:26:19 UTC) #13
commit-bot: I haz the power
6 years, 6 months ago (2014-06-13 06:57:59 UTC) #14
Message was sent while issue was closed.
Change committed as 276950

Powered by Google App Engine
This is Rietveld 408576698