Bug 870568. Change assertion about destroying an nsCocoaWindow while modal to a warning because the code handles that case. r=smichaud

This commit is contained in:
Timothy Nikkel 2013-05-09 18:57:19 -05:00
parent 3d1118cab6
commit 1a14c4a198

View File

@ -168,8 +168,8 @@ nsCocoaWindow::~nsCocoaWindow()
NS_IF_RELEASE(mPopupContentView);
// Deal with the possiblity that we're being destroyed while running modal.
NS_ASSERTION(!mModal, "Widget destroyed while running modal!");
if (mModal) {
NS_WARNING("Widget destroyed while running modal!");
--gXULModalLevel;
NS_ASSERTION(gXULModalLevel >= 0, "Wierdness setting modality!");
}