Last Comment Bug 711859 - Add a IsObjectInContextCompartment API
: Add a IsObjectInContextCompartment API
Product: Core
Classification: Components
Component: JavaScript Engine (show other bugs)
: Trunk
: All All
-- normal (vote)
: mozilla12
Assigned To: :Ms2ger (⌚ UTC+1/+2)
: Jason Orendorff [:jorendorff]
Depends on:
  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:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

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

Description User image :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 User image 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 User image :Ms2ger (⌚ UTC+1/+2) 2011-12-24 04:38:25 PST

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