DescriptionMacViews: Retain non-Widget parent NSWindows, as well as the anchor NSView.
Linking against the 10.6 SDK tickles an AppKit bug that causes a parent
NSWindow to disappear from screen when it has a child window that
closes.
NativeWidgetMac tries to ensure windows are only closed when they have
no parent window. However, for child Widgets with non-Widget parents, if
the "anchor" NSView used to create the dialog was removed from its own
view hierarchy while the child dialog is still alive, this step was
being skipped.
Specifically, this happens for tab-modal dialogs that have a fade out
animation that can outlast the NSView it was initially anchored off.
Fix by retaining the NSWindow parent when the parent-child relationship
is initially created.
BUG=485854
Committed: https://crrev.com/ff8d9e06d49636d3729192dbcf791469727a264d
Cr-Commit-Position: refs/heads/master@{#333637}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|