Issue #2532 - Fix a null pointer crash while doing dialog form submission

See Bug 1652699
This commit is contained in:
Moonchild 2024-06-15 12:29:50 +02:00 committed by roytam1
commit f50948c82a

View file

@ -957,7 +957,7 @@ HTMLFormSubmission::GetFromForm(nsGenericHTMLElement* aForm,
// If there isn't one, or if it does not have an open attribute, do
// nothing.
if (!dialog || !dialog->Open()) {
return NS_OK;
return NS_ERROR_FAILURE;
}
nsAutoString result;