1
0
Fork 0
firefox/devtools/client/webconsole/test/browser/test-csp-violation-frame-ancestor-parent.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

21 lines
546 B
HTML

<html>
<head>
<title>CSP frame-ancestors Violation Test
</title>
<base href="https://evil.com/">
</head>
<body>
<iframe src="https://example.com/browser/devtools/client/webconsole/test/browser/test-csp-violation-frame-ancestor-child.html"></iframe>
</body>
<script>
"use strict";
window.violate = () => {
const iframe = document.querySelector("iframe");
const src = iframe.src;
iframe.src = "";
requestAnimationFrame(() => {
iframe.src = src;
});
};
</script>
</html>