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

Side by Side Diff: LayoutTests/http/tests/security/xss-DENIED-window-name-navigator.html

Issue 921683002: make window interceptors DoNoCheckSecurity (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updates Created 5 years, 10 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 | Annotate | Revision Log
OLDNEW
1 <script> 1 <script>
2 if (window.testRunner) 2 if (window.testRunner)
3 testRunner.dumpAsText(); 3 testRunner.dumpAsText();
4 </script> 4 </script>
5 <iframe sandbox="allow-scripts" 5 <iframe sandbox="allow-scripts"
6 src="data:text/html,<script> 6 src="data:text/html,<script>
7 try {
8 top.navigator;
9 alert('FAIL');
10 } catch(e) {
11 alert(e);
12 }
13 this.x = 7;
7 window.name='navigator'; 14 window.name='navigator';
8 alert(top.navigator === undefined ? 'PASS' : 'FAIL'); 15 alert(top.navigator === this ? 'PASS' : 'FAIL');
16 alert(top.navigator.x === 7 ? 'PASS' : 'FAIL');
9 </script>"></iframe> 17 </script>"></iframe>
18 <iframe sandbox="allow-scripts"
19 src="data:text/html,<script>
20 alert(top.navigator !== this ? 'PASS' : 'FAIL');
21 try {
22 top.navigator.x;
23 alert('FAIL');
24 } catch(e) {
25 alert(e);
26 }
27 </script>"></iframe>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698