Closed Bug 1445117 Opened 7 years ago Closed 7 years ago

Remove duplicates from nsGkAtoms

Categories

(Core :: XPCOM, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: n.nethercote, Assigned: n.nethercote)

References

Details

Attachments

(1 file)

nsGkAtoms has multiple atoms listed twice.
Comment on attachment 8958338 [details] Bug 1445117 - Remove duplicates from nsGkAtoms. https://reviewboard.mozilla.org/r/227272/#review233242 I think this is OK. What are the error messages going to be like in a future world where you simply *can't* repeat atom values?
Attachment #8958338 - Flags: review?(nfroyd) → review+
> What are the error messages going to be like in a > future world where you simply *can't* repeat atom values? The relevant code is here: https://searchfox.org/mozilla-central/rev/8fa0b32c84f924c6809c690117dbd59591f79607/xpcom/ds/nsAtomTable.cpp#697-706 Currently we crash and print the name of the offending atom if you register a static atom that already exists as a dynamic atom. In the future we will be stricter and crash in the same way if you register a static atom that already exists as a static atom.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Depends on: 1446097
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: