"Understanding how Chrome and CRDP handles frames"

This commit is contained in:
Cris Stringfellow 2022-01-01 19:16:46 +08:00
parent 7a767d94a7
commit f5e3b47245
1 changed files with 10 additions and 0 deletions

View File

@ -1383,6 +1383,16 @@ export default Archivist;
} = frameNavigated;
const frameNode = State.FrameNodes.get(frameId);
if ( ! frameNode ) {
throw new TypeError(
`Sanity check failed: frameId ${
frameId
} is not in our FrameNodes data, which currently has ${
State.FrameNodes.size
} entries.`
);
}
if ( frameNode.id !== frameId ) {
throw new TypeError(
`Sanity check failed: Child frameId ${