Closed
Bug 593294
Opened 14 years ago
Closed 14 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•14 years ago
|
Assignee: general → anygregor
Assignee | ||
Comment 1•14 years ago
|
||
Attachment #471774 -
Flags: review?(mrbkap)
Comment 2•14 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•14 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•14 years ago
|
||
Can't hurt. Gregor want to change that?
Assignee | ||
Comment 5•14 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•14 years ago
|
||
review ping
Comment 7•14 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•14 years ago
|
||
Whiteboard: fixed-in-tracemonkey
Comment 10•14 years ago
|
||
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
•