blob: 258bf216d4fe1a9420a7e459373d3c8f5e63f87f [file] [log] [blame]
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="placeholder.js"></script>
<script>
if (window.internals)
internals.settings.setLazyImageLoadingEnabled(true);
var t = async_test("Verify that iframe's with sandbox='allow-scripts' allow lazy image loading.");
function finish() {
assert_equals(is_image_fully_loaded(document.getElementById('sandboxedframe').contentWindow.document.getElementById('below_viewport')), false);
t.done();
}
</script>
<body>
<div style="height:10000px;"></div>
<iframe id="sandboxedframe" style="visibility:hidden;display:none" sandbox="allow-same-origin allow-scripts" src="resources/lazy-load-in-iframe.html" onload="finish()"></iframe>
<div id="log"></div>
</body>