Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!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>