Truly independent web browser
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {
const iframe = document.createElement("iframe");
document.body.append(iframe);
const other = iframe.contentWindow;
const scrollState = other.internals.compositorScrollState.call(internals);
println(`compositor scroll state has null prototype: ${Object.getPrototypeOf(scrollState) === null}`);
println(`compositor scroll state scrollNodes uses iframe Array: ${scrollState.scrollNodes instanceof other.Array}`);
println(`compositor scroll state scrollNodes uses top Array: ${scrollState.scrollNodes instanceof Array}`);
});
</script>