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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/xss-DENIED-window-name-navigator.html
diff --git a/LayoutTests/http/tests/security/xss-DENIED-window-name-navigator.html b/LayoutTests/http/tests/security/xss-DENIED-window-name-navigator.html
index 584e392d3970fc2922bef297007c810bdcadea3d..354beceab71cf82ed9829de1854ca1e9257a2355 100644
--- a/LayoutTests/http/tests/security/xss-DENIED-window-name-navigator.html
+++ b/LayoutTests/http/tests/security/xss-DENIED-window-name-navigator.html
@@ -4,6 +4,24 @@ if (window.testRunner)
</script>
<iframe sandbox="allow-scripts"
src="data:text/html,<script>
+ try {
+ top.navigator;
+ alert('FAIL');
+ } catch(e) {
+ alert(e);
+ }
+ this.x = 7;
window.name='navigator';
- alert(top.navigator === undefined ? 'PASS' : 'FAIL');
+ alert(top.navigator === this ? 'PASS' : 'FAIL');
+ alert(top.navigator.x === 7 ? 'PASS' : 'FAIL');
+ </script>"></iframe>
+<iframe sandbox="allow-scripts"
+ src="data:text/html,<script>
+ alert(top.navigator !== this ? 'PASS' : 'FAIL');
+ try {
+ top.navigator.x;
+ alert('FAIL');
+ } catch(e) {
+ alert(e);
+ }
</script>"></iframe>

Powered by Google App Engine
This is Rietveld 408576698