chromium/third_party/blink/web_tests/fast/dom/Window/resources/closure-access-after-navigation-iframe-child-1.html

<script>
    parent.logTitle("Child 1 loaded.");

    Object.prototype.myVal = "child1";
    var myGlobal = {
        myGlobalVal: "child1"
    };

    parent.logTitle("Child 1 objects set.");

    parent.getObjectOfChild1 = function()
    {
        return {};
    };

    parent.getGlobalOfChild1 = function()
    {
        return myGlobal;
    };

    parent.test("getObjectOfChild1", "myVal");
    parent.test("getGlobalOfChild1", "myGlobalVal");

    window.location = "closure-access-after-navigation-iframe-child-2.html"
</script>
Child 1