chromium/third_party/blink/web_tests/http/tests/security/resources/cross-frame-mouse-source-capabilities.html

<!doctype html>
<script>
function handler(event) {
    window.top.postMessage(event.sourceCapabilities.customProperty, "*");
}

function runTest() {
    document.querySelector("button").click();
}

window.onload = function () {
    setTimeout(runTest, 1000);
    window.top.postMessage("start", "*");
}
</script>
<button onclick="handler(event)"></button>