Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /fetch/orb/tentative/compressed-image-sniffing.sub.html - WPT Dashboard Interop Dashboard
<!-- Test verifies that compressed images should not be blocked
-->
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id=log></div>
<script>
async_test(function(t) {
url = url + "/fetch/orb/resources/png-unlabeled.png?pipe=gzip"
const img = document.createElement("img");
img.src = url;
img.onerror = t.unreached_func("Unexpected error event")
img.onload = t.step_func_done(function () {
assert_true(true);
})
document.body.appendChild(img)
}, "ORB shouldn't block compressed images");
</script>