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