Closed
Bug 874052
Opened 12 years ago
Closed 4 years ago
Add a method to check if a compartment is in debug mode
Categories
(Core :: JavaScript Engine, defect, P3)
Core
JavaScript Engine
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: msucan, Unassigned)
Details
Follow-up from bug 865549: we need some Debugger API to check if a given compartment has any debugger attached. This is need to make sure we are not leaking debug-mode for content and browser windows.
Comment 2•12 years ago
|
||
That would be perfect on IJSDebugger:
js/ductwork/debugger/IJSDebugger.idl
I don't think it makes sense on Debugger, because it's more of a diagnostic API.
Comment 3•12 years ago
|
||
Note that there is already JS_GetDebugMode:
http://dxr.mozilla.org/mozilla-central/source/js/src/jsdbgapi.h#l130
Comment 4•12 years ago
|
||
Mihai, does that satisfy your requirements? Can we close this?
| Reporter | ||
Comment 5•12 years ago
|
||
JS_GetDebugMode() is now in OldDebugAPI.h. Is this supported API? Is it scriptable / accessible from chrome-privileged JS? Thank you Jim!
Comment 6•12 years ago
|
||
It's not available via any JS-visible interface. We should add a method to IJSDebugger (and an implementation on JSDebugger) that calls it.
js/ductwork/debugger/IJSDebugger.idl
js/ductwork/debugger/JSDebugger.cpp
Updated•11 years ago
|
Component: Developer Tools: Debugger → JavaScript Engine
Product: Firefox → Core
Updated•4 years ago
|
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•