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
|
-
|
|
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);
|
package/package.json
CHANGED