1
0
Fork 0
firefox/dom/security/test/csp/file_frame_src.js
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

20 lines
402 B
JavaScript

let testframe = document.getElementById("testframe");
testframe.onload = function () {
parent.postMessage(
{
result: "frame-allowed",
href: document.location.href,
},
"*"
);
};
testframe.onerror = function () {
parent.postMessage(
{
result: "frame-blocked",
href: document.location.href,
},
"*"
);
};
testframe.src = "file_frame_src_inner.html";