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

Unified Diff: ui/views/accessibility/native_view_accessibility_win.cc

Issue 23851012: Fix crash when calling get_accChild on empty WebView. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/views/accessibility/native_view_accessibility_win_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/accessibility/native_view_accessibility_win.cc
diff --git a/ui/views/accessibility/native_view_accessibility_win.cc b/ui/views/accessibility/native_view_accessibility_win.cc
index 5a853ab69b950b216ac9d134ea4d3d4173100c42..55bf1985a82e7a4d0540b469315fc90ff12ac9cf 100644
--- a/ui/views/accessibility/native_view_accessibility_win.cc
+++ b/ui/views/accessibility/native_view_accessibility_win.cc
@@ -106,7 +106,7 @@ IAccessible* AccessibleWebViewRegistry::GetAccessibleFromWebView(
for (std::set<View*>::iterator iter = web_views_.begin();
iter != web_views_.end(); ++iter) {
View* web_view = *iter;
- if (!top_view->Contains(web_view))
+ if (top_view == web_view || !top_view->Contains(web_view))
continue;
IAccessible* accessible = AccessibleObjectFromChildId(web_view, child_id);
if (accessible) {
« no previous file with comments | « no previous file | ui/views/accessibility/native_view_accessibility_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698