mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
Update web-platform-tests to revision dc60bfc45b49e3a5e653320e65b0fd447676b836
This commit is contained in:
parent
652a177ff5
commit
0bc549be55
690 changed files with 6588 additions and 1564 deletions
|
@ -22,18 +22,20 @@
|
|||
});
|
||||
|
||||
x = document.getElementById('x');
|
||||
x.location = "";
|
||||
x.onload = function() {
|
||||
x.location = "";
|
||||
|
||||
// While document.write is deprecated I did not find another way to reproduce
|
||||
// the original exploit.
|
||||
x.contentDocument.write(
|
||||
'<script>window.addEventListener("securitypolicyviolation", function(e) {' +
|
||||
' window.top.postMessage(e.violatedDirective, "*");' +
|
||||
'});</scr' + 'ipt>' +
|
||||
'<iframe src="../support/fail.html"></iframe>'
|
||||
);
|
||||
x.contentDocument.close();
|
||||
// While document.write is deprecated I did not find another way to reproduce
|
||||
// the original exploit.
|
||||
x.contentDocument.write(
|
||||
'<script>window.addEventListener("securitypolicyviolation", function(e) {' +
|
||||
' window.top.postMessage(e.violatedDirective, "*");' +
|
||||
'});</scr' + 'ipt>' +
|
||||
'<iframe src="../support/fail.html"></iframe>'
|
||||
);
|
||||
x.contentDocument.close();
|
||||
}
|
||||
</script>
|
||||
<script async defer src='../support/checkReport.sub.js?reportField=violated-directive&reportValue=frame-src%20%27none%27''></script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue