Bug 729048 - Part 3: Replace call to nsParserService::CheckQName with nsContentUtils::CheckQName in nsXULDocument.cpp. r=hsivonen

This commit is contained in:
Matias Juntunen 2012-03-29 17:31:40 -04:00
parent 6bfeaa8a5a
commit 9f2f5d2bad

View File

@ -1357,11 +1357,9 @@ nsXULDocument::Persist(const nsAString& aID,
}
else {
// Make sure that this QName is going to be valid.
nsIParserService *parserService = nsContentUtils::GetParserService();
NS_ASSERTION(parserService, "Running scripts during shutdown?");
const PRUnichar *colon;
rv = parserService->CheckQName(PromiseFlatString(aAttr), true, &colon);
rv = nsContentUtils::CheckQName(PromiseFlatString(aAttr), true, &colon);
if (NS_FAILED(rv)) {
// There was an invalid character or it was malformed.
return NS_ERROR_INVALID_ARG;