Opened 11 years ago

Closed 10 years ago

#1890 closed defect (wontfix)

JS Debugger hooks are per runtime

Reported by: Yves Owned by: Yves
Priority: Nice to Have Milestone: Alpha 16
Component: Non-game systems Keywords: debugger, javascript, spidermonkey
Cc: Patch:

Description

The Javascript debugger (see JavascriptDebuggingServer) associates one ThreadDebugger instance with each ScriptInterface object. A ThreadDebugger registers its own hooks for traps, new scripts etc. at the Spidermonkey runtime level. The problem is that we have two ScriptInterfaces that are associated with the same runtime in the classes CAIPlayer and CAIWorker. The second hook will overwrite the first and this results in compartment mismatches and undefined behaviour. I will look at this problem while upgrading Spidermonkey because I first have to check if the one to one relation between Spidermonkey contexts and ScriptInterface objects is still valid.

Change History (4)

comment:1 by Yves, 11 years ago

Status: newassigned

comment:2 by Yves, 11 years ago

Apparently there was a way to set per context debug hooks... was: https://bugzilla.mozilla.org/show_bug.cgi?id=730987

comment:3 by Kieran P, 11 years ago

Milestone: Alpha 14Backlog

comment:4 by Yves, 10 years ago

Milestone: BacklogAlpha 16
Resolution: wontfix
Status: assignedclosed

Closing this as "wontfix" because the JS debugger will need a rewrite after the SpiderMonkey upgrade anyway. I know about this problem and there's no need to continue tracking this in a separate ticket.

Note: See TracTickets for help on using tickets.