Bug 852847 - Part 5: Fix assertions caused by part 4. r=me

This commit is contained in:
Justin Lebar 2013-04-29 18:12:11 -04:00
parent 11667a9a95
commit 86b8cafec6

View File

@ -326,7 +326,9 @@ BrowserElementChild.prototype = {
let returnValue = win.modalReturnValue;
delete win.modalReturnValue;
utils.leaveModalStateWithWindow(modalStateWin);
if (!this._shuttingDown) {
utils.leaveModalStateWithWindow(modalStateWin);
}
debug("Leaving modal state (outerID=" + outerWindowID + ", " +
"innerID=" + innerWindowID + ")");