Bug 1744425 - Replace nsContentUtils::GenerateUUID() to nsID::GenerateUUID(). r=nika
Bug 1723674 added a new nsID::GenerateUUID() static factory function to generate UUIDs without the overhead of querying and instantiating an nsIUUIDGenerator object. nsContentUtils::GenerateUUID() is a utility function that amortizes that overhead by holding an nsIUUIDGenerator singleton. That's no longer necessary because code that calls nsContentUtils::GenerateUUID() can now just call nsID::GenerateUUID(). No nsIUUDGenerator is needed. Differential Revision: https://phabricator.services.mozilla.com/D132866
This commit is contained in:
@@ -368,7 +368,7 @@ already_AddRefed<BrowsingContext> BrowsingContext::CreateDetached(
|
||||
nsILoadInfo::OPENER_POLICY_SAME_ORIGIN_ALLOW_POPUPS);
|
||||
}
|
||||
|
||||
nsContentUtils::GenerateUUIDInPlace(fields.mHistoryID);
|
||||
fields.mHistoryID = nsID::GenerateUUID();
|
||||
fields.mExplicitActive = [&] {
|
||||
if (parentBC) {
|
||||
// Non-root browsing-contexts inherit their status from its parent.
|
||||
|
||||
Reference in New Issue
Block a user