зеркало из https://github.com/mozilla/gecko-dev.git
Bug 940825 - Initialize dialogsWereEnabled to false. r=roc
This commit is contained in:
Родитель
716b04b9a8
Коммит
efc93e36c8
|
@ -1094,7 +1094,7 @@ nsDocumentViewer::PermitUnload(bool aCallerClosesWindow, bool *aPermitUnload)
|
||||||
|
|
||||||
// Never permit dialogs from the beforeunload handler
|
// Never permit dialogs from the beforeunload handler
|
||||||
nsCOMPtr<nsIDOMWindowUtils> utils = do_GetInterface(window);
|
nsCOMPtr<nsIDOMWindowUtils> utils = do_GetInterface(window);
|
||||||
bool dialogsWereEnabled;
|
bool dialogsWereEnabled = false;
|
||||||
utils->AreDialogsEnabled(&dialogsWereEnabled);
|
utils->AreDialogsEnabled(&dialogsWereEnabled);
|
||||||
utils->DisableDialogs();
|
utils->DisableDialogs();
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче