chromium/third_party/blink/web_tests/http/tests/security/resources/cross-frame-iframe-callback-explicit-domain-ALLOW.html

<script>
var func = window.parent.testFunction;
document.domain = document.domain; // after this window.parent properties are inaccessible
func(); // yet this should still work
</script>