chromium/third_party/blink/web_tests/fast/events/resources/pageshow-pagehide-subframe.html

<body onpageshow='onPageshow(event)' onpagehide='onPagehide(event)'>
<p>Subframe</p>
<iframe src="pageshow-pagehide-subsubframe.html"></iframe>
<script>
window.onload = function(evt) {
    top.log("Subframe window.onload");
}

window.onunload = function(evt) {
    top.log("Subframe window.onunload");
}

function onPageshow(evt)
{
    top.log("Subframe window.onpageshow" + ", target = " + evt.target + ", persisted = " + evt.persisted);
    top.postMessage("subframe-loaded", "*");
}

function onPagehide(evt)
{
    top.log("Subframe window.onpagehide" + ", target = " + evt.target + ", persisted = " + evt.persisted);
}
</script>
</body>