cdp-tunnel 1.6.0 → 1.7.0
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.
|
@@ -46,6 +46,7 @@ var SpecialHandler = (function() {
|
|
|
46
46
|
if (isAlreadyAttached) {
|
|
47
47
|
var newSessionId = CDPUtils.generateSessionId();
|
|
48
48
|
State.mapSession(newSessionId, tabId, targetId);
|
|
49
|
+
muteTabIfNeeded(tabId);
|
|
49
50
|
Logger.info('[CDP] Created additional session:', newSessionId, 'for tab:', tabId);
|
|
50
51
|
return { sessionId: newSessionId };
|
|
51
52
|
}
|
|
@@ -127,7 +128,9 @@ var SpecialHandler = (function() {
|
|
|
127
128
|
function addTabToAutomationGroup(tabId, clientId) {
|
|
128
129
|
Logger.info('[TabGroup] Starting addTabToAutomationGroup for tabId:', tabId, 'clientId:', clientId);
|
|
129
130
|
|
|
130
|
-
|
|
131
|
+
setTimeout(function() {
|
|
132
|
+
muteTabIfNeeded(tabId);
|
|
133
|
+
}, 500);
|
|
131
134
|
|
|
132
135
|
var groupName;
|
|
133
136
|
var groupClientId = clientId;
|
package/package.json
CHANGED
package/server/proxy-server.js
CHANGED
|
@@ -226,10 +226,11 @@ async function handleHttpRequest(req, res) {
|
|
|
226
226
|
|
|
227
227
|
if (url.pathname === '/json/version' || url.pathname === '/json/version/') {
|
|
228
228
|
const payload = {
|
|
229
|
-
Browser:
|
|
229
|
+
Browser: `Chrome/131.0.6778.86`,
|
|
230
230
|
'Protocol-Version': '1.3',
|
|
231
|
-
'User-Agent': 'Chrome',
|
|
232
|
-
'V8-Version': '',
|
|
231
|
+
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.6778.86 Safari/537.36',
|
|
232
|
+
'V8-Version': '13.1.201.8',
|
|
233
|
+
'WebKit-Version': '537.36',
|
|
233
234
|
webSocketDebuggerUrl: buildWebSocketDebuggerUrl(req)
|
|
234
235
|
};
|
|
235
236
|
res.writeHead(200, { 'Content-Type': 'application/json' });
|
|
@@ -255,7 +256,9 @@ async function handleHttpRequest(req, res) {
|
|
|
255
256
|
})
|
|
256
257
|
.map(t => ({
|
|
257
258
|
description: '',
|
|
258
|
-
devtoolsFrontendUrl:
|
|
259
|
+
devtoolsFrontendUrl: `devtools://devtools/bundled/inspector.html?ws=${getHost(req)}/devtools/page/${t.targetId}`,
|
|
260
|
+
devtoolsFrontendUrlCompat: `devtools://devtools/bundled/inspector.html?ws=${getHost(req)}/devtools/page/${t.targetId}`,
|
|
261
|
+
faviconUrl: '',
|
|
259
262
|
id: t.targetId,
|
|
260
263
|
title: t.title || '',
|
|
261
264
|
type: t.type,
|