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

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: fix 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 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 var req = new XMLHttpRequest();
6 req.open('GET', location);
7 try {
8 req.send();
9 window.parent.postMessage('FAIL', '*');
10 } catch (e) {
11 window.parent.postMessage(e.name, '*');
12 }
13 </script>
14 </head>
15 <body>
16 Documents loaded from file: shouldn't be able to access themselves via XHR.
17 </body>
18 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698