Index: content/browser/web_contents/web_contents_view_aura.cc |
=================================================================== |
--- content/browser/web_contents/web_contents_view_aura.cc (revision 235277) |
+++ content/browser/web_contents/web_contents_view_aura.cc (working copy) |
@@ -799,6 +799,13 @@ |
window->GetDispatcher()->RemoveRootWindowObserver(this); |
#if defined(OS_WIN) |
window->GetRootWindow()->RemoveObserver(this); |
+ |
+ const aura::Window::Windows& root_children = |
+ window->GetRootWindow()->children(); |
+ for (size_t i = 0; i < root_children.size(); ++i) { |
+ if (root_children[i] != view_->window_ && root_children[i] != parent_) |
+ root_children[i]->RemoveObserver(this); |
+ } |
#endif |
} |
} |