DescriptionFix crash when closing a window with an associated widget child
This is a similar issue to
https://codereview.chromium.org/1644863003/
When closing some windows, the following occurs:
- WebContentsImpl enters its destructor
- a widget fires OnWidgetDestroying
- an AXWidgetObjWrapper gets destroyed
- WebContentsImpl fires an ax event
- the ax serializer walks the aura window and gets the widget "child" of the aura window
- a new AXWidgetObjWrapper gets created
- the widget's OnWidgetDestroying finishes and widget is destroyed
- WebContentsImpl exits its destructor
- the AXWidgetObjWrapper instance is now wrapping a deallocated widget
- future access to the AXWidgetObjWrapper causes a uaf.
BUG=617020
Committed: https://crrev.com/0ede80c428189d30bb398e351d16217464bd9294
Cr-Commit-Position: refs/heads/master@{#398407}
Patch Set 1 #
Messages
Total messages: 11 (6 generated)
|