chromium/third_party/blink/web_tests/http/tests/security/svg-image-with-cached-remote-image.html

<!DOCTYPE HTML>
Test for crbug.com/380885: images should not be requested in an SVG image context.<br><br>
Image loaded via object should show a green background with a cross-origin image of Abe Lincoln:<br>
<object id="precache" data="resources/image-wrapper.svg" width="100" height="100"></object>
<br>
Image loaded via img should show a green background with fallback content instead of the remote image of Abe Lincoln:<br>
<img id="image" src="" width="100" height="100">
<script>
if (window.testRunner)
    testRunner.waitUntilDone();

document.getElementById('precache').onload = function() {
    // FIXME: crbug.com/382170 SVG onload event bug.
    setTimeout(function() {
        var image = document.getElementById('image');
        image.onload = function() {
            // FIXME: crbug.com/382170 SVG onload event bug.
            setTimeout(function() {
                if (window.testRunner)
                    testRunner.notifyDone();
            }, 20);
        }
        image.src = "resources/image-wrapper.svg";
    }, 20);
}

</script>