devtools/client/webreplay/mochitest/examples/doc_rr_logs.html
author Brian Hackett <bhackett1024@gmail.com>
Sun, 12 May 2019 13:09:55 -1000
changeset 474171 6cd72bb81d8952d3b2ea8c8cd7cdcc9618d8e290
parent 454208 a441a085b516820f5e75c8d788a5a4dd5a6c4684
permissions -rw-r--r--
Bug 1547084 Part 1 - Remove recordReplayDirective interface and uses, r=mccr8.

<html lang="en" dir="ltr">
<head>
  <meta charset="utf-8"/>
</head>

<body>
<div id="maindiv" style="padding-top:50px">Hello World!</div>
</body>
<script>
const cpmm = SpecialPowers.Services.cpmm;
function recordingFinished() {
  cpmm.sendAsyncMessage("RecordingFinished");
}
var number = 0;
function f() {
  number++;
  console.log({ number }); 
  number++;
  console.log({ number }); 
  number++;
  console.log({ number }); 
  window.setTimeout(recordingFinished);
}
window.setTimeout(f, 1);
</script>
</html>