Closed Bug 871259 Opened 12 years ago Closed 12 years ago

Fix rooting hazards in ContextWrapperChild.h

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Patch (v1) (obsolete) — Splinter Review
No description provided.
Attachment #748524 - Flags: review?(tschneidereit)
Attached patch Patch (v1)Splinter Review
Wrong patch!
Attachment #748524 - Attachment is obsolete: true
Attachment #748524 - Flags: review?(tschneidereit)
Attachment #748525 - Flags: review?(tschneidereit)
Comment on attachment 748525 [details] [diff] [review] Patch (v1) Review of attachment 748525 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/ipc/ContextWrapperChild.h @@ +29,5 @@ > } > > JSContext* GetContext() { return mContext; } > > + PObjectWrapperChild* GetOrCreateWrapper(JSObject* obj_, I keep forgetting that we don't do handle-ization outside of SpiderMonkey. Seems like a waste to me not to use a handle here, as I'd pretty much bet that all callers already root obj_. Not a request to change anything here, though. More like something the js team should discuss during the work week.
Attachment #748525 - Flags: review?(tschneidereit) → review+
OK, so I'll just land this patch then!
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: