devtools/client/debugger/new/test/mochitest/examples/doc_rr_recovery.html
author Coroiu Cristina <ccoroiu@mozilla.com>
Tue, 15 Jan 2019 23:07:50 +0200
changeset 514011 5e5b06dcc0c021a16df0a9a57d93a4b14b895e8b
parent 513996 devtools/client/webreplay/mochitest/examples/doc_rr_recovery.html@a0b8e8c08c8d2fe95c24c26e2160ce57077355fe
child 514024 e4ac2508e8edc50da4bf7ed30803338a81ba026c
permissions -rw-r--r--
Backed out changeset a0b8e8c08c8d (bug 1517837) for devtools failures at devtools/client/webreplay/mochitest/browser_dbg_rr_breakpoints-01.js

<html lang="en" dir="ltr">
<body>
<div id="maindiv">Hello World!</div>
</body>
<script>
// this line intentionally left blank
// this line intentionally left blank
// this line intentionally left blank
const cpmm = SpecialPowers.Services.cpmm;
var number = 0;
function f() {
  updateNumber();
  if (number >= 10) {
    cpmm.sendAsyncMessage("RecordingFinished");
    return;
  }
  window.setTimeout(f, 1);
}
function updateNumber() {
  number++;
  document.getElementById("maindiv").innerHTML = "Number: " + number;
  SpecialPowers.Cu.recordReplayDirective(/* MaybeCrash */ 2);
}
window.setTimeout(f, 1);
</script>
</html>