Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /performance-timeline/supportedEntryTypes-cross-realm-access.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>Cross-realm access of supportedEntryTypes returns Array of another realm</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<script>
test(t => {
const iframe = document.createElement("iframe");
t.add_cleanup(() => { iframe.remove(); });
iframe.onload = t.step_func_done(() => {
const otherWindow = iframe.contentWindow;
assert_true(otherWindow.PerformanceObserver.supportedEntryTypes instanceof otherWindow.Array);
});
document.body.append(iframe);
});
</script>