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

Unified Diff: LayoutTests/http/tests/security/sandbox-inherit-to-blank-document-unsandboxed.html

Issue 1139933002: Prototype an 'allow-unsandboxed-auxiliary' sandbox flag. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Feedback. 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
« no previous file with comments | « no previous file | Source/core/dom/SandboxFlags.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/security/sandbox-inherit-to-blank-document-unsandboxed.html
diff --git a/LayoutTests/http/tests/security/sandbox-inherit-to-blank-document.html b/LayoutTests/http/tests/security/sandbox-inherit-to-blank-document-unsandboxed.html
similarity index 75%
copy from LayoutTests/http/tests/security/sandbox-inherit-to-blank-document.html
copy to LayoutTests/http/tests/security/sandbox-inherit-to-blank-document-unsandboxed.html
index 46a478aa096e71d8adefabd06651ba7998630ced..ce256bc3deb4027fb8a3602db0f21103c422653a 100644
--- a/LayoutTests/http/tests/security/sandbox-inherit-to-blank-document.html
+++ b/LayoutTests/http/tests/security/sandbox-inherit-to-blank-document-unsandboxed.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <meta http-equiv="Content-Security-Policy" content="sandbox allow-scripts allow-popups">
+ <meta http-equiv="Content-Security-Policy" content="sandbox allow-scripts allow-popups allow-unsandboxed-auxiliary">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
@@ -13,11 +13,11 @@
testRunner.setCloseRemainingWindowsWhenComplete(true);
}
- var test = async_test("Testing sandbox inherited via target='_blank'");
+ var test = async_test("Testing sandbox not inherited via target='_blank' when 'allow-unsandboxed-auxiliary' present");
window.addEventListener("message", test.step_func(function (e) {
assert_equals(document.origin, 'null');
- assert_equals(e.data.origin, 'null');
+ assert_equals(e.data.origin, 'http://127.0.0.1:8000');
test.done();
}));
« no previous file with comments | « no previous file | Source/core/dom/SandboxFlags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698