Files
servo/tests/wpt/web-platform-tests/content-security-policy/frame-ancestors/reporting-frame-allows-self.html

22 lines
513 B
HTML

<!DOCTYPE html>
<html>
<body>
<p>Reporting Frame...</p>
<script>
function onMessage(event) {
var p = document.createElement(p);
p.textContent = event.data;
document.body.appendChild(p);
window.parent.postMessage(event.data, "*");
}
window.addEventListener(
"message",
onMessage,
false
);
window.parent.postMessage("start test", "*");
</script>
</body>
</html>