blob: 65d8dfb20fd950462bf172494459881cb71e5878 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<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>
|