Chromium Code Reviews| Index: LayoutTests/security/resources/cannot-read-self-from-file.html |
| diff --git a/LayoutTests/security/resources/cannot-read-self-from-file.html b/LayoutTests/security/resources/cannot-read-self-from-file.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..addc74749265c4d74fa2be20ba43563ba44337c1 |
| --- /dev/null |
| +++ b/LayoutTests/security/resources/cannot-read-self-from-file.html |
| @@ -0,0 +1,13 @@ |
| +<html> |
| +<head> |
| +<script> |
| +var req = new XMLHttpRequest(); |
| +req.open('GET', location); |
|
Mike West
2015/05/17 08:40:48
Nit: s/location/window.location.href/
Nit: Ideall
|
| +req.send(); |
| +console.log(req.responseText); |
|
Mike West
2015/05/17 08:40:48
Please convert this into an ASSERTion.
|
| +</script> |
| +</head> |
| +<body> |
| +Documents loaded from file: shouldn't be able to access themselves via XHR. |
| +</body> |
| +</html> |