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

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

Issue 2869923003: Fix crash trying to fire event on destroying Widget with no root view (Closed)
Patch Set: Created 3 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/accessibility/ax_window_obj_wrapper.cc
diff --git a/ui/views/accessibility/ax_window_obj_wrapper.cc b/ui/views/accessibility/ax_window_obj_wrapper.cc
index 0f08a3c8434892d11c5071a577d14714744b795b..113f3646ca64700ee0e8452dc5ea34603014d444 100644
--- a/ui/views/accessibility/ax_window_obj_wrapper.cc
+++ b/ui/views/accessibility/ax_window_obj_wrapper.cc
@@ -103,7 +103,7 @@ void AXWindowObjWrapper::OnWindowBoundsChanged(aura::Window* window,
AXAuraObjCache::GetInstance()->FireEvent(this, ui::AX_EVENT_LOCATION_CHANGED);
Widget* widget = Widget::GetWidgetForNativeView(window);
- if (widget) {
+ if (widget && widget->GetRootView()) {
widget->GetRootView()->NotifyAccessibilityEvent(
ui::AX_EVENT_LOCATION_CHANGED, true);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698