Title: [223704] trunk/LayoutTests
- Revision
- 223704
- Author
- dba...@webkit.org
- Date
- 2017-10-19 13:17:42 -0700 (Thu, 19 Oct 2017)
Log Message
Referrer policy should be inherited from creator
https://bugs.webkit.org/show_bug.cgi?id=178403
<rdar://problem/31546136>
Add missing file that I inadvertently forgot to commit in r223697. The tests depend on this file.
* http/tests/security/resources/nested-referrer-policy-postmessage.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (223703 => 223704)
--- trunk/LayoutTests/ChangeLog 2017-10-19 20:16:19 UTC (rev 223703)
+++ trunk/LayoutTests/ChangeLog 2017-10-19 20:17:42 UTC (rev 223704)
@@ -1,3 +1,13 @@
+2017-10-19 Daniel Bates <daba...@apple.com>
+
+ Referrer policy should be inherited from creator
+ https://bugs.webkit.org/show_bug.cgi?id=178403
+ <rdar://problem/31546136>
+
+ Add missing file that I inadvertently forgot to commit in r223697. The tests depend on this file.
+
+ * http/tests/security/resources/nested-referrer-policy-postmessage.html: Added.
+
2017-10-19 Matt Lewis <jlew...@apple.com>
Marked http/tests/resourceLoadStatistics/prevalent-resource-handled-keydown.html as flaky.
Added: trunk/LayoutTests/http/tests/security/resources/nested-referrer-policy-postmessage.html (0 => 223704)
--- trunk/LayoutTests/http/tests/security/resources/nested-referrer-policy-postmessage.html (rev 0)
+++ trunk/LayoutTests/http/tests/security/resources/nested-referrer-policy-postmessage.html 2017-10-19 20:17:42 UTC (rev 223704)
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function ownerWindow()
+{
+ var owner = window.parent;
+ if (owner === this)
+ owner = window.opener;
+ return owner;
+}
+
+function receiveMessage(messageEvent)
+{
+ if (messageEvent.source !== ownerWindow())
+ ownerWindow().postMessage(messageEvent.data, "*"); // Forward to owner
+ else {
+ // From owner
+ if (messageEvent.data ="" "new-window")
+ window.open("referrer-policy-postmessage.php");
+ else if (messageEvent.data ="" "new-subframe") {
+ var subframe = document.createElement("iframe");
+ subframe.src = ""
+ document.body.appendChild(subframe);
+ }
+ }
+}
+
+window.addEventListener("message", receiveMessage, false);
+ownerWindow().postMessage("ready", "*");
+</script>
+</head>
+</html>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes