| <!DOCTYPE html><!-- webkit-test-runner [ experimental:enableLazyImageLoading=true ] --> |
| <script src="/resources/testharness.js"></script> |
| <script src="/resources/testharnessreport.js"></script> |
| <script src="placeholder.js"></script> |
| <script> |
| 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> |