<!DOCTYPE html>
<html>
<head>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
</head>
<body>
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkAQMAAABKLAcXAAAAA1BMVEUA%2FwA0XsCoAAAAFElEQVQYGWNgGAWjYBSMglFATwAABXgAAYNi4HQAAAAASUVORK5CYII%3D">
<script>
async_test((t) => {
  onload = t.step_func(function() {
    let img = document.querySelector("img");
    let clone = img.cloneNode();
    clone.onload = t.step_func_done(() => {
    });
    clone.onerror = t.unreached_func();
    document.body.append(clone);
    t.add_cleanup(() => {
      img.remove();
      clone.remove();
    });
  });
}, "Tests that loading of data URL images works when COEP: require-corp is used");
</script>
</body>
</html>
