cdp-tunnel 2.9.2 → 2.9.3

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.
@@ -84,8 +84,7 @@ var SpecialHandler = (function() {
84
84
  addTabToAutomationGroup(tabId, clientId, null, context);
85
85
  } else if (context.mode === 'takeover') {
86
86
  state.addPreExistingTab(tabId);
87
- addTabToAutomationGroup(tabId, clientId, null, context);
88
- Logger.info('[CDP TAKEOVER] Target.attachToTarget: added to TAKE group. tabId:', tabId);
87
+ Logger.info('[CDP TAKEOVER] Target.attachToTarget: attached without grouping. tabId:', tabId);
89
88
  } else {
90
89
  state.addPreExistingTab(tabId);
91
90
  Logger.info('[CDP] Target.attachToTarget: user tab not CDP-created, treating as pre-existing. tabId:', tabId);
@@ -269,7 +269,6 @@ var WebSocketConnection = (function() {
269
269
  var sessions = self.state.findSessionsByTabId(tid);
270
270
  sessions.forEach(function(sid) { self.state.unmapSession(sid); });
271
271
  });
272
- self.state.removeGroupForClient(takeClientId);
273
272
  self.state.removeCDPClient(takeClientId);
274
273
  if (self.state.getCDPClients().length === 0) {
275
274
  self.state.setHasConnectedClient(false);
@@ -541,6 +540,10 @@ var WebSocketConnection = (function() {
541
540
  WebSocketConnection.prototype._createGroupForClient = function(clientId, mode) {
542
541
  var self = this;
543
542
  if (!clientId || !chrome.tabGroups) return;
543
+ if (mode === 'takeover') {
544
+ Logger.info('[WS:' + self.connectionId + '] Skipping group creation for takeover mode, clientId:', clientId);
545
+ return;
546
+ }
544
547
 
545
548
  if (self._groupCreationPending.has(clientId)) {
546
549
  Logger.info('[WS:' + self.connectionId + '] Group creation already pending for client:', clientId);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "CDP Bridge",
4
- "version": "2.9.2",
4
+ "version": "2.9.3",
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.9.2",
3
+ "version": "2.9.3",
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",