Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: LayoutTests/security/resources/cannot-read-self-from-file.html

Issue 1140203002: make file: an effectively unique origin (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: added test Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4 var req = new XMLHttpRequest();
5 req.open('GET', location);
Mike West 2015/05/17 08:40:48 Nit: s/location/window.location.href/ Nit: Ideall
6 req.send();
7 console.log(req.responseText);
Mike West 2015/05/17 08:40:48 Please convert this into an ASSERTion.
8 </script>
9 </head>
10 <body>
11 Documents loaded from file: shouldn't be able to access themselves via XHR.
12 </body>
13 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698