cdp-tunnel 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -440,8 +440,6 @@ function checkTabVisibility(tabId) {
440
440
  var sessionId = CDPUtils.generateSessionId();
441
441
  State.mapSession(sessionId, tabId, targetId);
442
442
 
443
- addTabToAutomationGroup(tabId);
444
-
445
443
  var config = State.getAutoAttachConfig();
446
444
  if (config.waitForDebuggerOnStart) {
447
445
  State.addPendingDebuggerTab(tabId);
@@ -316,7 +316,6 @@ var WebSocketManager = (function() {
316
316
 
317
317
  function closeTabsByClientId(clientId, resolve) {
318
318
  var attachedTabs = State.getAttachedTabIds();
319
- var groupId = State.getGroupIdForClient(clientId);
320
319
  var tabsToClose = [];
321
320
 
322
321
  attachedTabs.forEach(function(tabId) {
@@ -331,25 +330,7 @@ var WebSocketManager = (function() {
331
330
  return;
332
331
  }
333
332
 
334
- if (groupId) {
335
- chrome.tabs.query({ groupId: groupId }, function(groupTabs) {
336
- if (chrome.runtime.lastError || !groupTabs) {
337
- resolve();
338
- return;
339
- }
340
- var groupTabIds = new Set(groupTabs.map(function(t) { return t.id; }));
341
- var safeToClose = tabsToClose.filter(function(tabId) {
342
- return groupTabIds.has(tabId);
343
- });
344
- var unsafeCount = tabsToClose.length - safeToClose.length;
345
- if (unsafeCount > 0) {
346
- Logger.info('[WS] Protecting ' + unsafeCount + ' tabs outside group from deletion');
347
- }
348
- doCloseTabs(safeToClose, clientId, resolve);
349
- });
350
- } else {
351
- doCloseTabs(tabsToClose, clientId, resolve);
352
- }
333
+ doCloseTabs(tabsToClose, clientId, resolve);
353
334
  }
354
335
 
355
336
  function doCloseTabs(tabIds, clientId, resolve) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "CDP Bridge",
4
- "version": "2.2.1",
4
+ "version": "2.2.2",
5
5
  "description": "Chrome DevTools Protocol Bridge for Playwright/Puppeteer automation",
6
6
  "permissions": [
7
7
  "debugger",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cdp-tunnel",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "Bridge Chrome's debugger API to WebSocket — control your existing browser with Playwright/Puppeteer via CDP",
5
5
  "main": "server/proxy-server.js",
6
6
  "bin": "./cli/index.js",