mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Bug 729048 - Part 3: Replace call to nsParserService::CheckQName with nsContentUtils::CheckQName in nsXULDocument.cpp. r=hsivonen
This commit is contained in:
parent
6bfeaa8a5a
commit
9f2f5d2bad
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user