// Two-origin test server for #22095. Top page on :18711 embeds a same-origin iframe,
// a cross-origin same-site iframe (localhost:18712) and a cross-site iframe (127.0.0.1:18712).
// Every frame logs pointerdown/focusin/keydown/input to its own origin's /log (JSONL on disk).
import http from "node:http";
import fs from "node:fs";
const LOG = process.argv[2];
fs.writeFileSync(process.argv[3], String(process.pid));
const logger = (frame) => ``;
const field = (label) => `