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

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

Issue 1126253007: Block modal dialogs inside sandboxes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: WebSandboxFlags. 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 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 354beceab71cf82ed9829de1854ca1e9257a2355..19ca81d189d5b8c1f445e1b319a2b4b5db24afd0 100644
--- a/LayoutTests/http/tests/security/xss-DENIED-window-name-navigator.html
+++ b/LayoutTests/http/tests/security/xss-DENIED-window-name-navigator.html
@@ -6,22 +6,22 @@ if (window.testRunner)
src="data:text/html,<script>
try {
top.navigator;
- alert('FAIL');
+ console.log('FAIL');
} catch(e) {
- alert(e);
+ console.log(e);
}
this.x = 7;
window.name='navigator';
- alert(top.navigator === this ? 'PASS' : 'FAIL');
- alert(top.navigator.x === 7 ? 'PASS' : 'FAIL');
+ console.log(top.navigator === this ? 'PASS' : 'FAIL');
+ console.log(top.navigator.x === 7 ? 'PASS' : 'FAIL');
</script>"></iframe>
<iframe sandbox="allow-scripts"
src="data:text/html,<script>
- alert(top.navigator !== this ? 'PASS' : 'FAIL');
+ console.log(top.navigator !== this ? 'PASS' : 'FAIL');
try {
top.navigator.x;
- alert('FAIL');
+ console.log('FAIL');
} catch(e) {
- alert(e);
+ console.log(e);
}
</script>"></iframe>

Powered by Google App Engine
This is Rietveld 408576698