Closed
Bug 580411
Opened 14 years ago
Closed 14 years ago
AutoCompartment and JS_Enter/LeaveCrossCompartmentCall should support the trivial case of not changing compartments
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
blocking2.0 | --- | beta5+ |
People
(Reporter: jorendorff, Assigned: jorendorff)
References
Details
(Whiteboard: [fixed-in-tracemonkey])
Attachments
(1 file, 1 obsolete file)
3.27 KB,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
Currently, in AutoCompartment's constructor, we have JS_ASSERT(origin != destination); True for wrappers, but there are cases where it's inconvenient and pointless for the caller to ensure that this is true. Instead we should just allow it.
Assignee | ||
Comment 1•14 years ago
|
||
Assignee: general → jorendorff
Attachment #458840 -
Flags: review?(mrbkap)
Comment 2•14 years ago
|
||
Comment on attachment 458840 [details] [diff] [review] v1 > bool > AutoCompartment::enter() > { > JS_ASSERT(!entered()); Can we check destination against context->compartment and do nothing if they're the same? > context->compartment = origin; >+ return false; Hard tabs must die!
Attachment #458840 -
Flags: review?(mrbkap)
Assignee | ||
Comment 3•14 years ago
|
||
Attachment #458840 -
Attachment is obsolete: true
Attachment #459385 -
Flags: review?(mrbkap)
Updated•14 years ago
|
Attachment #459385 -
Flags: review?(mrbkap) → review+
Assignee | ||
Comment 4•14 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/4fda7181fac5
Whiteboard: [fixed-in-tracemonkey]
Assignee | ||
Updated•14 years ago
|
Blocks: compartments
Updated•14 years ago
|
blocking2.0: --- → beta5+
Comment 5•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/4fda7181fac5
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•