1
0
Fork 0
firefox/testing/web-platform/tests/fenced-frame/resources/ancestor-throttle-nested.https.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

22 lines
634 B
HTML

<!DOCTYPE html>
<html>
<script src="utils.js"></script>
<title>Header Inheritance CSP Reporting Page</title>
<body>
<script>
// This file is embedded in an iframe by ancestor-throttle-inner.https.html
// which in turn has been embedded in a fenced frame by
// ancestor-throttle.https.html. This in turn will load a same-origin iframe.
async function init() {
const url = new URL(location.href);
const embed_url = generateURL(url.searchParams.get("nested_url"),
parseKeylist());
const iframe = document.createElement('iframe');
iframe.src = embed_url;
document.body.append(iframe);
}
init();
</script>
</body>
</html>