mac: Fix a gmail/calendar UI deadlock.
commitaa22ab042e9586fd22dd142e7262751931ebed7e
authorerikchen@chromium.org <erikchen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 28 Jun 2014 01:35:54 +0000 (28 01:35 +0000)
committererikchen@chromium.org <erikchen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 28 Jun 2014 01:35:54 +0000 (28 01:35 +0000)
tree8ce429cbf9e35541cfeacca857552b657fbbf500
parent4f9bdf64c677bf30aea185acaf765e2dc140b248
mac: Fix a gmail/calendar UI deadlock.

NSSavePanel is implemented incorrectly, and if an NSAlert is presented while
the NSSavePanel has its "New folder" modal dialog open, the UI will deadlock.
This CL dispatches the presentation of the NSAlert to the top of the CFRunLoop
via '-performSelector:withObject:afterDelay:', which fixes this instantiation
of the bug. (The selector will not be performed until after the "New folder"
modal dialog is dismissed.)

BUG=375785

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280476 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.h
chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.mm