Allow XPConnect to pass the JSContext through XPIDL when requested

RESOLVED FIXED in mozilla2.0b1

Status

()

Core
XPCOM
RESOLVED FIXED
8 years ago
8 years ago

People

(Reporter: Ben Turner (not reading bugmail, use the needinfo flag!), Assigned: Ben Turner (not reading bugmail, use the needinfo flag!))

Tracking

Trunk
mozilla2.0b1
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

Created attachment 454179 [details] [diff] [review]
Patch, v1

The attached patch adds an XPIDL annotation "[callerjscontext]" be appended to methods and attributes which XPConnect (and quickstubs) then use to pass the JSContext through to the C++ callee. This can help us avoid getting the native call context in a bunch of cases.
Attachment #454179 - Flags: review?(jst)
shaver and jorendorff like [implicit_jscontext] better, so i will switch it to that.
Created attachment 454637 [details] [diff] [review]
Patch, v1.1

So renamed.
Attachment #454179 - Attachment is obsolete: true
Attachment #454637 - Flags: review?(jst)
Attachment #454179 - Flags: review?(jst)

Updated

8 years ago
Attachment #454637 - Flags: review?(jst) → review+
http://hg.mozilla.org/mozilla-central/rev/481b0d250e38
Status: ASSIGNED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED

Updated

8 years ago
Target Milestone: --- → mozilla1.9.3b1
You need to log in before you can comment on or make changes to this bug.