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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/xss-DENIED-regular-propterty-with-iframe-proto.html

Issue 2452073002: Freeze global prototype chain per WebIDL (Closed)
Patch Set: Test improvements Created 4 years, 1 month 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 src="resources/cross-frame-access.js"></script>
4 </head>
5 <body>
6 <iframe src="http://localhost:8000/" style=""></iframe>
7 <pre id="console"></pre>
8 <script>
9 if (window.testRunner)
10 testRunner.dumpAsText();
11
12 log("Tests that making other frame window a prototype doesn't expose that window properties");
13
14 targetWindow = frames[0];
15
16 window.onload = function() {
17 originalInnerHeight = innerHeight;
18
19 __proto__ = targetWindow;
20
21 shouldBeTrue('innerHeight === originalInnerHeight');
22 shouldBeTrue('this.innerHeight === originalInnerHeight');
23 }
24 </script>
25 </body>
26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698