Use nsContentUtils::GenerateUUIDInPlace() in nsIDocument::GenerateDocumentId(), no bug

This commit is contained in:
Ehsan Akhgari 2015-12-02 20:43:29 -05:00
parent 13f05d19b5
commit c2eb83a207

View File

@ -13081,14 +13081,8 @@ nsIDocument::CreateHTMLElement(nsIAtom* aTag)
nsresult
nsIDocument::GenerateDocumentId(nsAString& aId)
{
nsresult rv;
nsCOMPtr<nsIUUIDGenerator> uuidgen = do_GetService("@mozilla.org/uuid-generator;1", &rv);
if (NS_WARN_IF(NS_FAILED(rv))) {
return rv;
}
nsID id;
rv = uuidgen->GenerateUUIDInPlace(&id);
nsresult rv = nsContentUtils::GenerateUUIDInPlace(id);
if (NS_WARN_IF(NS_FAILED(rv))) {
return rv;
}