mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 14cfa4d648cc1c853b4153268df672d21425f8c1
This commit is contained in:
parent
1b73cf3352
commit
75736751d9
1213 changed files with 19434 additions and 12344 deletions
|
@ -0,0 +1,5 @@
|
|||
document.write("<script>log('Pass 1 of 2');</script>");
|
||||
|
||||
var s = document.createElement('script');
|
||||
s.textContent = "log('Pass 2 of 2');";
|
||||
document.body.appendChild(s);
|
|
@ -0,0 +1 @@
|
|||
postMessage("importScripts allowed");
|
|
@ -0,0 +1,5 @@
|
|||
var id = 0;
|
||||
try {
|
||||
id = eval("1 + 2 + 3");
|
||||
} catch (e) {}
|
||||
postMessage(id === 0 ? "eval blocked" : "eval allowed");
|
|
@ -0,0 +1 @@
|
|||
Content-Security-Policy: script-src 'unsafe-inline'
|
|
@ -0,0 +1,7 @@
|
|||
var fn = function() {
|
||||
postMessage('Function() function blocked');
|
||||
}
|
||||
try {
|
||||
fn = new Function("", "postMessage('Function() function allowed');");
|
||||
} catch (e) {}
|
||||
fn();
|
|
@ -0,0 +1 @@
|
|||
Content-Security-Policy: script-src 'unsafe-inline'
|
|
@ -0,0 +1,6 @@
|
|||
try {
|
||||
importScripts("/content-security-policy/support/post-message.js");
|
||||
postMessage("importScripts allowed");
|
||||
} catch (e) {
|
||||
postMessage("importScripts blocked");
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
Content-Security-Policy: script-src 'none'
|
|
@ -0,0 +1,5 @@
|
|||
var id = 0;
|
||||
try {
|
||||
id = setTimeout("postMessage('handler invoked')", 100);
|
||||
} catch (e) {}
|
||||
postMessage(id === 0 ? "setTimeout blocked" : "setTimeout allowed");
|
|
@ -0,0 +1 @@
|
|||
Content-Security-Policy: script-src 'none'
|
Loading…
Add table
Add a link
Reference in a new issue