()
| 1980 | source: buildDebugStorageScript(), |
| 1981 | }); |
| 1982 | |
| 1983 | const installRtcSdpDebug = (cdp) => |
| 1984 | cdp.send("Page.addScriptToEvaluateOnNewDocument", { |
| 1985 | source: `(() => { |
| 1986 | if (window.__conclaveRtcSdpDebugInstalled) return; |
| 1987 | window.__conclaveRtcSdpDebugInstalled = true; |
| 1988 | const PeerConnection = window.RTCPeerConnection || window.webkitRTCPeerConnection; |
| 1989 | if (typeof PeerConnection !== "function") return; |
| 1990 | |
| 1991 | const peerConnectionIds = new WeakMap(); |
| 1992 | const entries = []; |
| 1993 | let nextPeerConnectionId = 1; |
| 1994 | const getPeerConnectionId = (pc) => { |
| 1995 | if (!peerConnectionIds.has(pc)) { |
| 1996 | peerConnectionIds.set(pc, nextPeerConnectionId++); |
| 1997 | } |
no outgoing calls
no test coverage detected