Closed Bug 876805 Opened 11 years ago Closed 11 years ago

Fix unsafe reference hazards in dom/ code

Categories

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

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(1 file)

Most of these seem to be real issues.
Attachment #754982 - Flags: review?(bugs)
I think that leaves the following unsafe references in dom/ code: dom/plugins/base/nsJSNPRuntime.cpp:534 -- False positive, I think, due to virtual hashtable ops. We could try to rearrange code to make it not so, but it's hard. dom/plugins/base/nsJSNPRuntime.cpp:1025 -- same dom/workers/EventListenerManager.cpp:362 -- false positive for nsAutoJSValHolder, I think
Comment on attachment 754982 [details] [diff] [review] Fix unsafe reference gc hazards in dom/ code. I wonder if there was some other way to do JS::Rooted<JS::Value> undef(cx, JS::UndefinedValue()); ...
Attachment #754982 - Flags: review?(bugs) → review+
For what it's worth, that code dies in bug 877281. Thanks for the review!
Flags: in-testsuite-
Whiteboard: [need review]
Target Milestone: --- → mozilla24
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
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: