Closed Bug 875622 Opened 11 years ago Closed 11 years ago

Fix unsafe JS::Value reference in ConvertJSValueToString

Categories

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

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(2 files)

We should just have a handle here, I suspect.
Attachment #753613 - Flags: review?(bugs)
Whiteboard: [need review]
Attachment #753612 - Flags: review?(bugs) → review+
Comment on attachment 753613 [details] [diff] [review] part 2. Use handles in ConvertJSValueToString. Why don't we get Handle as param to nsGenericHTMLElement::SetItemValue?
Attachment #753613 - Flags: review?(bugs) → review+
> Why don't we get Handle as param to nsGenericHTMLElement::SetItemValue? The bindings used to pass raw Value and I didn't update all callees when I changed them to pass in handles. But it wouldn't help here anyway, since we need a MutableHandle here too, so we'd still need to set up the Rooted.
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: