summaryrefslogtreecommitdiffstats
path: root/docshell/test/mochitest/file_content_javascript_loads_frame.html
blob: 9e2851aa8b6105e4f73485af21dca8383faa510d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<script type="application/javascript">
"use strict";

addEventListener("message", event => {
  if ("ping" in event.data) {
    event.source.postMessage({ pong: event.data.ping }, event.origin);
  }
});
</script>
</head>
<body>
</body>
</html>