blob: 26c58aea6d4f688bd665e751b23614575a1ebbf1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<!DOCTYPE html>
<meta charset=utf-8>
<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
<script>
// Hook up the debugger statement to extract the calling script's
// introductionType and set it in a property on the parent global.
const {addSandboxedDebuggerToGlobal} = ChromeUtils.importESModule("resource://gre/modules/jsdebugger.sys.mjs");
addSandboxedDebuggerToGlobal(globalThis);
var dbg = new Debugger;
dbg.addDebuggee(parent);
dbg.onDebuggerStatement = function (frame) {
parent.introType = frame.script.source.introductionType;
}
</script>
|