Closed
Bug 593294
Opened 13 years ago
Closed 13 years ago
TM: various other defaultCompartment fixes
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: gwagner, Assigned: gwagner)
References
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file, 1 obsolete file)
5.14 KB,
patch
|
gal
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•13 years ago
|
Assignee: general → anygregor
Assignee | ||
Comment 1•13 years ago
|
||
Attachment #471774 -
Flags: review?(mrbkap)
Comment 2•13 years ago
|
||
Comment on attachment 471774 [details] [diff] [review] patch Looks good. This is all rather harmless finalization stuff and xpcshell so I will +.
Attachment #471774 -
Flags: review?(mrbkap) → review+
Comment 3•13 years ago
|
||
Comment on attachment 471774 [details] [diff] [review] patch >diff -r 8771ed0c60d8 js/src/xpconnect/shell/xpcshell.cpp >--- a/js/src/xpconnect/shell/xpcshell.cpp Thu Sep 02 14:52:18 2010 -0700 >+++ b/js/src/xpconnect/shell/xpcshell.cpp Thu Sep 02 14:56:20 2010 -0700 >@@ -1963,17 +1963,17 @@ main(int argc, char **argv) > > rv = holder->GetJSObject(&glob); > if (NS_FAILED(rv)) { > NS_ASSERTION(glob == nsnull, "bad GetJSObject?"); > return 1; > } > > JS_BeginRequest(cx); >- >+ JSAutoEnterCompartment ac(cx, glob); > if (!JS_DefineFunctions(cx, glob, glob_functions)) { Doesn't this want to be an AutoCrossCompartmentCall?
Comment 4•13 years ago
|
||
Can't hurt. Gregor want to change that?
Assignee | ||
Comment 5•13 years ago
|
||
I had to scope the JSAutoCrossCompartmentCall otherwise it asserts during deconstruction because there is no more context.
Attachment #471774 -
Attachment is obsolete: true
Attachment #471932 -
Flags: review?(gal)
Assignee | ||
Comment 6•13 years ago
|
||
review ping
Comment 7•13 years ago
|
||
Comment on attachment 471932 [details] [diff] [review] patch Undo the unrelated indentation changes please.
Attachment #471932 -
Flags: review?(gal) → review+
Assignee | ||
Comment 8•13 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/0fadb2696554
Whiteboard: fixed-in-tracemonkey
Comment 10•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/0fadb2696554
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•