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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandbox.php

Issue 1835463002: Stop supporting invalid CSP directives in meta tags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove service worker extendable event test Created 4 years, 8 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: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandbox.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandbox.php b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandbox.php
index fc43a8dac1ef4729e9384945bbb55c07fd973646..210cc638f9145449969d525cd68caab8e135a71a 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandbox.php
+++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandbox.php
@@ -7,7 +7,17 @@ if ($_GET["report-only"]) {
?>
<!DOCTYPE html>
<p>Ready</p>
+<?php
+if ($_GET["script-in-subframe"]) {
+?>
+<iframe src="data:text/html,<script>console.log('Script executed in child frame');</script>"></iframe>
+<?php
+} else {
+?>
<script>
console.log("Script executed in iframe.");
window.secret = "I am a secret";
</script>
+<?php
+}
+?>

Powered by Google App Engine
This is Rietveld 408576698