Revision dd7ffe7ae5c4df2f19f961f340d376f64b6c0de3 authored by Philip Jägenstedt on 06 April 2018, 11:10:29 UTC, committed by Philip Jägenstedt on 06 April 2018, 11:22:15 UTC
First dos2unix was used and for text-fonts-202-t-manual.svg this also
removes a UTF-8 BOM.

Then all files were passed through git stripspace, which also removed
some double blank lines which don't look to have been meaningful.

Finally all tabs were replaced by two spaces, as that's the tab width
that seems to have been used when editing these files. Some odd
indentation remains and would have to be fixed manually.
1 parent 487c4a8
Raw File
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['entryType'], 'longtask');
      assert_equals(e.data['frame-attribution'], 'cross-origin-unreachable');
      assert_equals(e.data['task-attribution'], 'script');
      assert_equals(e.data['containerId'], '');
      assert_equals(e.data['containerName'], '');
      assert_equals(e.data['containerSrc'], '');
      t.done();
    }));
    const observingFrame = document.createElement('iframe');
    observingFrame.id = 'observing-iframe-id';
    observingFrame.name = 'observing-iframe-name';
    document.body.appendChild(observingFrame);
    observingFrame.src = 'resources/subframe-observing-longtask.html'

    /* Create a cross-origin iframe that generates a long task. */
    const longtaskFrame = document.createElement('iframe');
    longtaskFrame.id = 'longtask-iframe-id';
    longtaskFrame.name = 'longtask-iframe-name';
    // Simulate cross-origin by using sandbox.
    longtaskFrame.sandbox = "allow-scripts";
    document.body.appendChild(longtaskFrame);
    longtaskFrame.src = 'resources/subframe-with-longtask.html'
}, 'Performance longtask entries from cross-origin iframe are observable in its sibling.');
</script>
</body>
back to top