Bug 940825 - Initialize dialogsWereEnabled to false. r=roc

This commit is contained in:
Dongie Agnir 2013-11-20 09:40:32 -05:00
parent 0c21529b34
commit 8dc2cde983

View File

@ -1094,7 +1094,7 @@ nsDocumentViewer::PermitUnload(bool aCallerClosesWindow, bool *aPermitUnload)
// Never permit dialogs from the beforeunload handler
nsCOMPtr<nsIDOMWindowUtils> utils = do_GetInterface(window);
bool dialogsWereEnabled;
bool dialogsWereEnabled = false;
utils->AreDialogsEnabled(&dialogsWereEnabled);
utils->DisableDialogs();