Add a IsObjectInContextCompartment API

RESOLVED FIXED in mozilla12

Status

()

Core
JavaScript Engine
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: Ms2ger, Assigned: Ms2ger)

Tracking

Trunk
mozilla12
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

6 years ago
Created attachment 582693 [details] [diff] [review]
Patch v1

This is a pretty common thing to do in XPConnect, and currently requires getting cx->compartment directly.
Attachment #582693 - Flags: review?(jwalden+bmo)
Attachment #582693 - Attachment is patch: true
Comment on attachment 582693 [details] [diff] [review]
Patch v1

Review of attachment 582693 [details] [diff] [review]:
-----------------------------------------------------------------

Seems better than the alternative, all things considered.
Attachment #582693 - Flags: review?(jwalden+bmo) → review+
(Assignee)

Comment 2

6 years ago
https://hg.mozilla.org/mozilla-central/rev/b27e13b5cc7b
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla12
You need to log in before you can comment on or make changes to this bug.