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

Issue 415633002: Simplify access to LegacyRenderWidgetHostHWND. (Closed)

Created:
6 years, 5 months ago by dmazzoni
Modified:
6 years, 5 months ago
Reviewers:
ananta, jam, aboxhall
CC:
chromium-reviews, creis+watch_chromium.org, yusukes+watch_chromium.org, plundblad+watch_chromium.org, yukishiino+watch_chromium.org, aboxhall+watch_chromium.org, nasko+codewatch_chromium.org, jam, 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@render_frame_ax_4
Project:
chromium
Visibility:
Public.

Description

Simplify access to LegacyRenderWidgetHostHWND. Instead of giving BrowserAccessibilityManagerWin a pointer to a LegacyRenderWidgetHostHWND, which has been a source of problems due to complicated lifecycles, just have BAMW request the parent HWND and parent IAccessible from its delegate whenever needed, with the understanding that these may be NULL sometimes. Note: this change fixes a DrMemory UAF detected in the patch that migrated accessibility from RVH to RFH (codereview.chromium.org/273423004), and also fixes a potential concern in another fix to LegacyRenderWidgetHostHWND (codereview.chromium.org/387353004). BUG=368298, 393665 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285818

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase and fix style issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -200 lines) Patch
M content/browser/accessibility/browser_accessibility_manager.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_unittest.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_win.h View 4 chunks +2 lines, -20 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_win.cc View 6 chunks +18 lines, -52 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win_unittest.cc View 3 chunks +0 lines, -89 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 1 chunk +18 lines, -0 lines 0 comments Download
M content/browser/renderer_host/legacy_render_widget_host_win.h View 3 chunks +0 lines, -9 lines 0 comments Download
M content/browser/renderer_host/legacy_render_widget_host_win.cc View 5 chunks +15 lines, -12 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 4 chunks +19 lines, -15 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
dmazzoni
6 years, 5 months ago (2014-07-23 15:38:41 UTC) #1
jam
rubberstamp lgtm for files outside of accessibility https://codereview.chromium.org/415633002/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/415633002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1204 content/browser/renderer_host/render_widget_host_view_aura.cc:1204: RenderWidgetHostViewAura::AccessibilityGetAcceleratedWidget() { ...
6 years, 5 months ago (2014-07-24 01:15:48 UTC) #2
dmazzoni
+aboxhall to review the accessibility code
6 years, 5 months ago (2014-07-24 21:48:22 UTC) #3
aboxhall
LGTM for c/b/accessibility/*
6 years, 5 months ago (2014-07-25 16:14:48 UTC) #4
dmazzoni
https://codereview.chromium.org/415633002/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/415633002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1204 content/browser/renderer_host/render_widget_host_view_aura.cc:1204: RenderWidgetHostViewAura::AccessibilityGetAcceleratedWidget() { On 2014/07/24 01:15:47, jam wrote: > nit: ...
6 years, 5 months ago (2014-07-26 21:13:48 UTC) #5
dmazzoni
The CQ bit was checked by dmazzoni@chromium.org
6 years, 5 months ago (2014-07-26 21:13:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/415633002/10001
6 years, 5 months ago (2014-07-26 21:14:04 UTC) #7
commit-bot: I haz the power
6 years, 5 months ago (2014-07-26 23:34:45 UTC) #8
Message was sent while issue was closed.
Change committed as 285818

Powered by Google App Engine
This is Rietveld 408576698