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

Unified Diff: LayoutTests/http/tests/security/suborigins/suborigin-blocked-different-suborigins.php

Issue 1180923003: Add window access checks for Suborigins (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix tests on Windows Created 5 years, 6 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/suborigins/suborigin-blocked-different-suborigins.php
diff --git a/LayoutTests/http/tests/security/suborigins/suborigin-blocked-different-suborigins.php b/LayoutTests/http/tests/security/suborigins/suborigin-blocked-different-suborigins.php
deleted file mode 100644
index 8a5c3f815bac2d161d8839e82d2945719503f7e9..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/security/suborigins/suborigin-blocked-different-suborigins.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-header("Content-Security-Policy: suborigin foobar1");
-?>
-<!DOCTYPE html>
-<html>
-<head>
-<title>Block a frame in one suborigin from accessing another suborigin</title>
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-</head>
-<script>
-window.onmessage = function() {
- var iframe = document.getElementById('iframe');
- var secret = '';
- try {
- secret = iframe.contentWindow.secret;
- assert_unreached();
- done();
- } catch(e) {
- assert_equals(secret, "", "The parent frame should not be able to get the secret value from the child iframe.");
- done();
- };
-};
-</script>
-<iframe id="iframe" src="resources/childsuborigin.php?suborigin=foobar2"></iframe>
-</html>

Powered by Google App Engine
This is Rietveld 408576698