add source param in CDP messages

This commit is contained in:
Tommy D. Rossi
2026-01-26 13:07:59 +01:00
parent dc771ddc1d
commit 4d2606253b
5 changed files with 24 additions and 8 deletions
+6
View File
@@ -600,6 +600,12 @@ async function handleCommand(msg: ExtensionCommandMessage): Promise<any> {
const debuggee = targetTabId ? { tabId: targetTabId } : undefined
// TODO disable network things?
// if (msg.params.method === 'Network.enable' && msg.params.source !== 'playwriter') {
// logger.debug('Skipping Network.enable from non-playwriter CDP client:', msg.params.sessionId)
// return {}
// }
switch (msg.params.method) {
case 'Runtime.enable': {
if (!debuggee) {