backing out patch for bug 376371 to help pinpoint mochitest issue

git-svn-id: svn://10.0.0.236/trunk@226619 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
aaronr%us.ibm.com
2007-05-18 19:02:16 +00:00
parent c8c87c18a1
commit 5da68ea6f2

View File

@@ -681,7 +681,8 @@ nsXFormsSubmissionElement::Submit()
NS_ENSURE_STATE(mFormat != 0);
nsCOMPtr<nsIInputStream> stream;
nsCAutoString uri, contentType;
nsCAutoString contentType;
nsCAutoString uri;
GetSubmissionURI(uri);
rv = SerializeData(submissionDoc, uri, getter_AddRefs(stream), contentType);
@@ -771,9 +772,6 @@ nsXFormsSubmissionElement::GetSubmissionURI(nsACString& aURI)
NS_ENSURE_SUCCESS(rv, rv);
if (xpRes) {
// Truncate uri so GetStringValue replaces the contents with the
// xpath result rather than appending to it.
uri.Truncate();
rv = xpRes->GetStringValue(uri);
NS_ENSURE_SUCCESS(rv, rv);
}
@@ -796,8 +794,8 @@ nsXFormsSubmissionElement::GetSubmissionURI(nsACString& aURI)
if (uri.IsEmpty())
nsXFormsUtils::ReportError(NS_LITERAL_STRING("warnSubmitURI"), mElement,
nsIScriptError::warningFlag);
CopyUTF16toUTF8(uri, aURI);
else
CopyUTF16toUTF8(uri, aURI);
return rv;
}