From 3510fca20df5f4df3a3f47a425daf5746e6bdbaf Mon Sep 17 00:00:00 2001 From: "morse%netscape.com" Date: Mon, 10 May 1999 20:53:35 +0000 Subject: [PATCH] get wallet editor working again after someone changed behavior of docURL --- layout/html/forms/src/nsFormFrame.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/layout/html/forms/src/nsFormFrame.cpp b/layout/html/forms/src/nsFormFrame.cpp index 0780943c10e9..d892197f3cfc 100644 --- a/layout/html/forms/src/nsFormFrame.cpp +++ b/layout/html/forms/src/nsFormFrame.cpp @@ -770,16 +770,18 @@ void nsFormFrame::ProcessAsURLEncoded(PRBool isPost, nsString& aData, nsIFormCon nsIDocument* doc = nsnull; mContent->GetDocument(doc); - while (doc && !docURL) { + const char* spec; + while (doc) { docURL = doc->GetDocumentURL(); - if (!docURL) { - doc = GetParentHTMLFrameDocument(doc); - if (!doc) break; + if (nsnull != docURL) { + (void)docURL->GetSpec(&spec); + if (PL_strcmp(spec, "about:blank")) { + break; + } } + doc = GetParentHTMLFrameDocument(doc); } if (nsnull != docURL) { - const char* spec; - (void)docURL->GetSpec(&spec); URLName = (char*)PR_Malloc(PL_strlen(spec)+1); PL_strcpy(URLName, spec); NS_IF_RELEASE(docURL);