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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/frame-src-vs-shift-click-target.html

Issue 2453093003: child-src and frame-src CSP are not applicable when navigating a new window. (Closed)
Patch Set: Address a CR feedback nit - get rid of unnecessary parens. Created 4 years, 2 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/frame-src-vs-shift-click-target.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/frame-src-vs-shift-click-target.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/frame-src-vs-shift-click-target.html
new file mode 100644
index 0000000000000000000000000000000000000000..2e35192798cdf8d044b3d3ce07a92dac2f718f2f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/frame-src-vs-shift-click-target.html
@@ -0,0 +1,10 @@
+<p>frame-src-vs-shift-click-TARGET.html</p>
+<script>
+mainTestWindow = window.open("", "mainTestWindow")
+var data = {
+ 'history.length': history.length,
+ 'window.self == window.parent': window.self == window.parent,
+ 'window.location.href': window.location.href
+};
+mainTestWindow.postMessage(data, '*');
+</script>

Powered by Google App Engine
This is Rietveld 408576698