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

Unified Diff: LayoutTests/http/tests/security/resources/referrer-attr-iframe-target.html

Issue 1328183002: Implement referrerpolicy attr for iframes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: move referrerpolicy retrieval to subclass Created 5 years, 3 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/resources/referrer-attr-iframe-target.html
diff --git a/LayoutTests/http/tests/security/resources/referrer-attr-iframe-target.html b/LayoutTests/http/tests/security/resources/referrer-attr-iframe-target.html
new file mode 100644
index 0000000000000000000000000000000000000000..c0f912ac25d4e8af8708d149e48478060316a960
--- /dev/null
+++ b/LayoutTests/http/tests/security/resources/referrer-attr-iframe-target.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+<body>
+ <script>
+ var hash = document.location.hash;
+ if (hash.length > 0)
+ hash = hash.substring(1);
+
+ window.parent.postMessage({ "policy": hash, "referrer": document.referrer }, "*");
+ </script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698