Closed Bug 868790 Opened 12 years ago Closed 12 years ago

Fix some rooting hazards in the JS Debugger

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file)

Attached patch Patch (v1) (deleted) — Splinter Review
No description provided.
Attachment #745603 - Flags: review?(tschneidereit)
Comment on attachment 745603 [details] [diff] [review] Patch (v1) Review of attachment 745603 [details] [diff] [review]: ----------------------------------------------------------------- Great, thanks for doing this! ::: js/jsd/jsd_val.cpp @@ +610,5 @@ > return NULL; > > obj = js::UncheckedUnwrap(JSVAL_TO_OBJECT(jsdval->val)); > oldCompartment = JS_EnterCompartment(jsdc->dumbContext, obj); > fun = JS_ValueToFunction(jsdc->dumbContext, OBJECT_TO_JSVAL(obj)); Nit: can use `cx` in these two calls, too @@ +720,5 @@ > oldCompartment = JS_EnterCompartment(jsdc->dumbContext, obj); > jsdval->className = JS_GetDebugClassName(obj); > JS_LeaveCompartment(jsdc->dumbContext, oldCompartment); > JS_EndRequest(jsdc->dumbContext); > } `cx` in all of these ::: js/jsd/jsd_xpc.cpp @@ +2544,5 @@ > nsresult rv; > nsCOMPtr<nsIXPConnect> xpc = do_GetService(nsIXPConnect::GetCID(), &rv); > if (NS_FAILED(rv)) > return rv; > Not that there's too much to save here in terms of formatting, but you might just as well remove the extra whitespace while you're here.
Attachment #745603 - Flags: review?(tschneidereit) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: