Closed Bug 438999 Opened 17 years ago Closed 17 years ago

nsHTMLDocument::UpdateIdTableEntry should not return an error just because the ID table is not live

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: roc, Assigned: roc)

References

Details

Attachments

(1 obsolete file)

Attached patch fix (obsolete) — Splinter Review
It does NS_ENSURE_TRUE(entry, NS_ERROR_OUT_OF_MEMORY); when the entry may be null just because the ID table is not live and the ID is not being tracked. In that case we should return NS_OK. I couldn't come up with a testcase where this causes a problem but it is worrying.
Attachment #324910 - Flags: superreview?(jonas)
Attachment #324910 - Flags: review?(jonas)
Comment on attachment 324910 [details] [diff] [review] fix I think it'll only return null for out-of-memory. If there is no entry it'll return a non-null-but-not-busy entry.
I guess you're right!
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
Attachment #324910 - Attachment is obsolete: true
Attachment #324910 - Flags: superreview?(jonas)
Attachment #324910 - Flags: review?(jonas)
Component: DOM: Core → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: