Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /fenced-frame/window-frameElement.https.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Test window.parent</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/utils.js"></script>
<script src="resources/utils.js"></script>
<body>
<script>
promise_test(async () => {
const frame_element_key = token();
attachFencedFrame(generateURL("resources/window-frameElement-inner.html",
[frame_element_key]));
const fenced_frame_result = await nextValueFromServer(frame_element_key);
assert_equals(fenced_frame_result, "PASS");
}, "window.frameElement null for same-origin fenced frames");
</script>
</body>