From f50948c82adfa930b445eff0a429bbbf609f5cff Mon Sep 17 00:00:00 2001 From: Moonchild Date: Sat, 15 Jun 2024 12:29:50 +0200 Subject: [PATCH] Issue #2532 - Fix a null pointer crash while doing dialog form submission See Bug 1652699 --- dom/html/HTMLFormSubmission.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/html/HTMLFormSubmission.cpp b/dom/html/HTMLFormSubmission.cpp index d098783dd7..6a931858b3 100644 --- a/dom/html/HTMLFormSubmission.cpp +++ b/dom/html/HTMLFormSubmission.cpp @@ -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;