https://github.com/web-platform-tests/wpt
Raw File
Tip revision: cf94be3b1a0f78b0ecb5e812ecc81f9d5f561cef authored by Eric Willigers on 03 October 2017, 02:38:14 UTC
CSS Motion Path: support <size> for ray paths
Tip revision: cf94be3
longtask-in-sibling-iframe-crossorigin.html
<!DOCTYPE HTML>
<meta charset=utf-8>
<title>LongTask Timing: long task in cross-origin sibling iframe</title>
<body>

<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<script>
  async_test(t => {
    window.addEventListener('message', t.step_func(e => {
      assert_equals(e.data, 'longtask+cross-origin-unreachable+script+++');
      t.done();
    }));
}, 'Performance longtask entries in parent are observable in child iframe.');
</script>

<iframe src="resources/subframe-observing-longtask.html"></iframe>

<script>
  /* Create a cross-origin iframe that generates a long task. */
  const iframe = document.createElement('iframe');
  iframe.id = 'child-iframe-id';
  iframe.name = 'child-iframe-name';
  document.body.appendChild(iframe);
  iframe.src = 'http://www1.web-platform.test:8000/longtask-timing/resources/subframe-with-longtask.html';
</script>

</body>
back to top