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

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: Self-review. 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..e787663af97990028e1ea384fdfc962fec8ea2b1
--- /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),
Mike West 2016/10/27 07:39:43 Nit: You don't need () for these values.
Łukasz Anforowicz 2016/10/27 15:28:54 Done.
+ '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