Commit 56e7b34c authored by sergeyu@chromium.org's avatar sergeyu@chromium.org

Mac: Disconnect DesktopMediaPicker window from the parent before closing

The window wasn't removing itself from the parent's children list, which
causes linked bug with some versions of Cocoa.

BUG=331058

Review URL: https://codereview.chromium.org/125133006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243212 0039d316-1c4b-4281-b951-d872f2087c98
parent d3603c08
...@@ -229,6 +229,10 @@ const int kExcessButtonPadding = 6; ...@@ -229,6 +229,10 @@ const int kExcessButtonPadding = 6;
// Report the result if it hasn't been reported yet. |reportResult:| ensures // Report the result if it hasn't been reported yet. |reportResult:| ensures
// that the result is only reported once. // that the result is only reported once.
[self reportResult:content::DesktopMediaID()]; [self reportResult:content::DesktopMediaID()];
// Remove self from the parent.
NSWindow* window = [self window];
[[window parentWindow] removeChildWindow:window];
} }
#pragma mark IKImageBrowserDataSource #pragma mark IKImageBrowserDataSource
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment