Backed out changeset 428c9c1eabb8 (bug 1655866) for multiple failures. CLOSED TREE
This commit is contained in:
@@ -1207,7 +1207,7 @@ nsDocumentViewer::PermitUnload(PermitUnloadAction aAction,
|
||||
RefPtr<nsDocumentViewer> kungFuDeathGrip(this);
|
||||
|
||||
if (StaticPrefs::dom_disable_beforeunload()) {
|
||||
aAction = PermitUnloadAction::Unload;
|
||||
aAction = eDontPromptAndUnload;
|
||||
}
|
||||
|
||||
*aPermitUnload = true;
|
||||
@@ -1245,8 +1245,8 @@ nsDocumentViewer::PermitUnload(PermitUnloadAction aAction,
|
||||
if (!foundBlocker) {
|
||||
return NS_OK;
|
||||
}
|
||||
if (aAction != PermitUnloadAction::Prompt) {
|
||||
*aPermitUnload = aAction == PermitUnloadAction::Unload;
|
||||
if (aAction != ePrompt) {
|
||||
*aPermitUnload = aAction == eDontPromptAndUnload;
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user