mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 28b5323e37274805b1d1416273e3a941c9c7e08e
This commit is contained in:
parent
615a127b99
commit
f7775a289e
439 changed files with 8598 additions and 14793 deletions
|
@ -0,0 +1,13 @@
|
|||
// META: script=/common/get-host-info.sub.js
|
||||
|
||||
promise_test(t => {
|
||||
const img = new Image();
|
||||
img.src = get_host_info().HTTP_REMOTE_ORIGIN + "/fetch/cross-origin-resource-policy/resources/image.py?corp=same-site";
|
||||
return new Promise((resolve, reject) => {
|
||||
img.onload = resolve;
|
||||
img.onerror = reject;
|
||||
document.body.appendChild(img);
|
||||
}).finally(() => {
|
||||
img.remove();
|
||||
});
|
||||
}, "Cross-Origin-Resource-Policy does not block Mixed Content <img>");
|
Loading…
Add table
Add a link
Reference in a new issue