Open Bug 1133154 Opened 5 years ago Updated 5 years ago

Add a method to provide UUID strings without { } and the null terminator when using nsIUUIDGenerator

Categories

(Core :: XPCOM, defect)

defect
Not set

Tracking

()

People

(Reporter: yrliou, Unassigned)

References

Details

|ToProvidedString| in nsID only provide UUID in {xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx} format, though in some use cases, what we need is a uuid string without {} and the null terminator.

For example,
https://dxr.mozilla.org/mozilla-central/source/dom/base/nsHostObjectProtocolHandler.cpp#373
https://dxr.mozilla.org/mozilla-central/source/netwerk/base/nsNetUtil.h#2463

Maybe it's worth to add a method to directly provide uuid strings without {} and the null terminator.
See Also: → 1063449
You need to log in before you can comment on or make changes to this bug.