cdp-tunnel 2.10.2 → 2.10.4
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.
package/README.md
CHANGED
|
@@ -71,15 +71,16 @@ cdp-tunnel status
|
|
|
71
71
|
cdp-tunnel extension
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
### Option 2: Download from GitHub Releases
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
74
|
+
### Option 2: Download Extension from GitHub Releases
|
|
75
|
+
|
|
76
|
+
**Download Extension:** [cdp-tunnel-extension.zip (v2.10.3)](https://github.com/dyyz1993/cdp-tunnel/releases/tag/v2.10.3)
|
|
77
|
+
|
|
78
|
+
1. Download `cdp-tunnel-extension.zip` from the latest [GitHub Releases](https://github.com/dyyz1993/cdp-tunnel/releases)
|
|
79
|
+
2. Unzip the file
|
|
80
|
+
3. Open `chrome://extensions/` in Chrome
|
|
81
|
+
4. Enable "Developer mode"
|
|
82
|
+
5. Click "Load unpacked"
|
|
83
|
+
6. Select the unzipped extension directory
|
|
83
84
|
|
|
84
85
|
### Option 3: Manual Installation
|
|
85
86
|
|
|
@@ -27,6 +27,7 @@ function ConnectionState(connectionId, mode) {
|
|
|
27
27
|
this.browserContextIds = new Set(['default']);
|
|
28
28
|
this.screencastPollingSessions = new Map();
|
|
29
29
|
this.automatedTabs = new Set();
|
|
30
|
+
this._groupCreationPromises = new Map();
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
ConnectionState.prototype.mapSession = function(sessionId, tabId, targetId) {
|
|
@@ -260,6 +261,18 @@ ConnectionState.prototype.removeGroupForClient = function(clientId) {
|
|
|
260
261
|
this.clientIdToGroupId.delete(clientId);
|
|
261
262
|
};
|
|
262
263
|
|
|
264
|
+
ConnectionState.prototype.setGroupCreationPromise = function(clientId, promise) {
|
|
265
|
+
if (promise) {
|
|
266
|
+
this._groupCreationPromises.set(clientId, promise);
|
|
267
|
+
} else {
|
|
268
|
+
this._groupCreationPromises.delete(clientId);
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
ConnectionState.prototype.getGroupCreationPromise = function(clientId) {
|
|
273
|
+
return this._groupCreationPromises.get(clientId) || null;
|
|
274
|
+
};
|
|
275
|
+
|
|
263
276
|
ConnectionState.prototype.addPreExistingTab = function(tabId) {
|
|
264
277
|
this.preExistingTabIds.add(tabId);
|
|
265
278
|
};
|
|
@@ -335,6 +348,7 @@ ConnectionState.prototype.clearAllState = function() {
|
|
|
335
348
|
this.pendingCreatedTabUrls.clear();
|
|
336
349
|
this.cdpCreatedTabIds.clear();
|
|
337
350
|
this.cdpClients = [];
|
|
351
|
+
this._groupCreationPromises.clear();
|
|
338
352
|
};
|
|
339
353
|
|
|
340
354
|
ConnectionState.prototype.persist = function(tabId, attached) {
|
|
@@ -241,7 +241,6 @@ var WebSocketConnection = (function() {
|
|
|
241
241
|
Logger.info('[WS:' + self.connectionId + '] Client connected, resuming event forwarding');
|
|
242
242
|
self.state.setHasConnectedClient(true);
|
|
243
243
|
self.state.addCDPClient(message.clientId, message.clientId);
|
|
244
|
-
self._createGroupForClient(message.clientId, message.__mode);
|
|
245
244
|
self._broadcastStateUpdate();
|
|
246
245
|
break;
|
|
247
246
|
|
package/package.json
CHANGED