https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 18fb4e01f0093e384c9c10fdd54a0f75f242b204 authored by Greg Whitworth on 28 June 2017, 01:37:45 UTC
Made changes based on analysis of tests that were <= 5 tests to a given url hash in flex
Tip revision: 18fb4e0
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