Bug 943519 - If we don't have a valid nsIFormProcessor, the HTML parser should continue and should not mark the entire document as broken, r=hsivonen

This commit is contained in:
Benjamin Smedberg
2013-12-19 09:08:59 -05:00
parent 0b6254c230
commit 045ef77f02

View File

@@ -382,8 +382,10 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
// Adapted from CNavDTD
nsCOMPtr<nsIFormProcessor> theFormProcessor =
do_GetService(kFormProcessorCID, &rv);
NS_ENSURE_SUCCESS(rv, rv);
if (NS_FAILED(rv)) {
return NS_OK;
}
nsTArray<nsString> theContent;
nsAutoString theAttribute;