mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 940825 - Initialize dialogsWereEnabled to false. r=roc
This commit is contained in:
parent
0c21529b34
commit
8dc2cde983
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user