summaryrefslogtreecommitdiffstats
path: root/dom/base/test/jsmodules/iframe_extractIntroType.html
blob: 692da0c5fcd1426b9232cbbd237de55044ce8fd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<meta charset=utf-8>
<script type="application/javascript" 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.
  Components.utils.import("resource://gre/modules/jsdebugger.jsm");
  addDebuggerToGlobal(this);
  var dbg = new Debugger;
  dbg.addDebuggee(parent);
  dbg.onDebuggerStatement = function (frame) {
    parent.introType = frame.script.source.introductionType;
  }
</script>