Closed
Bug 871259
Opened 12 years ago
Closed 12 years ago
Fix rooting hazards in ContextWrapperChild.h
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file, 1 obsolete file)
1.32 KB,
patch
|
till
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #748524 -
Flags: review?(tschneidereit)
Assignee | ||
Comment 1•12 years ago
|
||
Wrong patch!
Attachment #748524 -
Attachment is obsolete: true
Attachment #748524 -
Flags: review?(tschneidereit)
Attachment #748525 -
Flags: review?(tschneidereit)
Comment 2•12 years ago
|
||
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+
Assignee | ||
Comment 3•12 years ago
|
||
OK, so I'll just land this patch then!
Assignee | ||
Comment 4•12 years ago
|
||
Comment 5•12 years ago
|
||
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.
Description
•