cdp-tunnel 2.10.2 → 2.10.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.
|
@@ -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) {
|
package/package.json
CHANGED