Last Comment Bug 711859 - Add a IsObjectInContextCompartment API
: Add a IsObjectInContextCompartment API
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: JavaScript Engine (show other bugs)
: Trunk
: All All
: -- normal (vote)
: mozilla12
Assigned To: :Ms2ger (⌚ UTC+1/+2)
:
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-18 11:35 PST by :Ms2ger (⌚ UTC+1/+2)
Modified: 2011-12-24 04:38 PST (History)
1 user (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Patch v1 (9.03 KB, patch)
2011-12-18 11:35 PST, :Ms2ger (⌚ UTC+1/+2)
jwalden+bmo: review+
Details | Diff | Splinter Review

Description :Ms2ger (⌚ UTC+1/+2) 2011-12-18 11:35:56 PST
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.
Comment 1 Jeff Walden [:Waldo] (remove +bmo to email) 2011-12-19 15:14:50 PST
Comment on attachment 582693 [details] [diff] [review]
Patch v1

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

Seems better than the alternative, all things considered.
Comment 2 :Ms2ger (⌚ UTC+1/+2) 2011-12-24 04:38:25 PST
https://hg.mozilla.org/mozilla-central/rev/b27e13b5cc7b

Note You need to log in before you can comment on or make changes to this bug.