Closed Bug 1724152 Opened 3 years ago Closed 3 years ago

Replace GkRustUtils::GenerateUUID with nsUUIDGenerator

Categories

(Core :: DOM: Web Crypto, task, P3)

task

Tracking

()

RESOLVED FIXED
96 Branch
Tracking Status
firefox96 --- fixed

People

(Reporter: cpeterson, Assigned: n.goeggi)

References

Details

Attachments

(1 file)

There is only one caller to GkRustUtils::GenerateUUID:

https://searchfox.org/mozilla-central/rev/00977c4e37865a92f1c15572ae4aea90e934b25b/caps/NullPrincipal.cpp#94

We can replace it with nsUUIDGenerator (or one of the helper functions nsContentUtils::GenerateUUID or nsContentUtils::GenerateUUIDInPlace):

https://searchfox.org/mozilla-central/rev/4b49a0dc50104e03ecadd1fd1902b27be6b9c0c8/dom/base/nsContentUtils.cpp#7326,7337

And then remove GkRustUtils::GenerateUUID.

See Also: → crypto-randomUUID

I have a patch for removing GkRustUtils::GenerateUUID and replacing it with nsUUIDGenerator. That patch should work on top of your changes in bug 1723674, and i will add it to this bug when those changes land.

(In reply to Niklas from comment #1)

I have a patch for removing GkRustUtils::GenerateUUID and replacing it with nsUUIDGenerator. That patch should work on top of your changes in bug 1723674, and i will add it to this bug when those changes land.

Thanks. I also have follow-up patches to replace nsContentUtils::GenerateUUID() with the new nsID::GenerateUUID() static factory function.

Blocks: 1700675
Assignee: nobody → ngogge
Status: NEW → ASSIGNED
Pushed by mozilla@christophkerschbaumer.com: https://hg.mozilla.org/integration/autoland/rev/e98317efef63 Replace GkRustUtils::GenerateUUID with nsID::GenerateUUID. r=ckerschb
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: