summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/support/inject-image.js
blob: a10d50a9839507cc926cd1f2061ea56bb4c7b9d7 (plain)
1
2
3
4
// This script block will trigger a violation report.
var i = document.createElement('img');
i.src = '/content-security-policy/support/fail.png';
document.body.appendChild(i);