Update WPT tests for embedded content
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / html / semantics / embedded-content / the-frame-element / document-getters-return-null-for-cross-origin.html
1 <!DOCTYPE html>
2 <meta charset=utf-8>
3 <title>Test that contentDocument returns null for a cross-origin document.</title>
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 <script>
7 var t = async_test('HTMLFrameElement.contentDocument for cross-origin document');
8 window.addEventListener(
9     'load', t.step_func_done(() => { assert_equals(document.querySelector('frame').contentDocument, null); }));
10 </script>
11 <frameset>
12 <frame src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><rect height="100" width="100"/></svg>'></frame>
13 </frameset>