Skip to content

Commit 9e8a69b

Browse files
committed
feat: update to chrome 139
fix: alpns version change in tls
1 parent cc99343 commit 9e8a69b

File tree

13 files changed

+32
-21
lines changed

13 files changed

+32
-21
lines changed

.github/workflows/lint-and-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
os: [macos-13, windows-latest, ubuntu-22.04]
23-
node-version: [18, 20, 22]
23+
node-version: [20, 22]
2424
include:
2525
- node-version: 20.x
2626
os: ubuntu-22.04
27-
browser: chrome-130-0
27+
browser: chrome-135-0
2828
- node-version: 20.x
2929
os: ubuntu-22.04
30-
browser: chrome-120-0
30+
browser: chrome-130-0
3131
- node-version: 20.x
3232
os: ubuntu-22.04
33-
browser: chrome-115-0
33+
browser: chrome-120-0
3434

3535
runs-on: ${{ matrix.os }}
3636

agent/main/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Fully programmable Devtools Protocol based browser",
55
"main": "index.js",
66
"dependencies": {
7-
"@ulixee/chrome-136-0": "^7103.114.11",
7+
"@ulixee/chrome-139-0": "^7258.155.11",
88
"@ulixee/chrome-app": "^1.0.3",
99
"@ulixee/commons": "2.0.0-alpha.33",
1010
"@ulixee/js-path": "2.0.0-alpha.33",

agent/mitm-socket/go/emulate_tls.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,12 @@ func EmulateTls(dialConn net.Conn, addr string, sessionArgs SessionArgs, connect
4545
spec, _ = tls.UTLSIdToSpec(tls.HelloChrome_120)
4646
} else if chromeVersion < 131 {
4747
spec, _ = tls.UTLSIdToSpec(tls.HelloChrome_120_PQ)
48-
} else {
49-
// Chrome 131+ uses the latest available Chrome PQ spec
50-
spec, _ = tls.UTLSIdToSpec(tls.HelloChrome_131)
48+
} else if chromeVersion < 133 {
49+
// Chrome 131+ uses the latest available Chrome PQ spec
50+
spec, _ = tls.UTLSIdToSpec(tls.HelloChrome_131)
51+
} else {
52+
// chrome 133 uses new alps extension
53+
spec, _ = tls.UTLSIdToSpec(tls.HelloChrome_133)
5154
}
5255
} else {
5356
// default to latest shuffle

agent/mitm-socket/go/go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ toolchain go1.24.2
66

77
require (
88
github.com/Microsoft/go-winio v0.6.2
9-
github.com/refraction-networking/utls v1.7.3
9+
github.com/refraction-networking/utls v1.8.0
1010
golang.org/x/net v0.38.0
1111
)
1212

1313
require (
1414
github.com/andybalholm/brotli v1.1.1 // indirect
15-
github.com/cloudflare/circl v1.6.1 // indirect
1615
github.com/klauspost/compress v1.18.0 // indirect
1716
golang.org/x/crypto v0.37.0 // indirect
1817
golang.org/x/sys v0.32.0 // indirect

agent/mitm-socket/go/go.sum

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERo
22
github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
33
github.com/andybalholm/brotli v1.1.1 h1:PR2pgnyFznKEugtsUo0xLdDop5SKXd5Qf5ysW+7XdTA=
44
github.com/andybalholm/brotli v1.1.1/go.mod h1:05ib4cKhjx3OQYUY22hTVd34Bc8upXjOLL2rKwwZBoA=
5-
github.com/cloudflare/circl v1.6.1 h1:zqIqSPIndyBh1bjLVVDHMPpVKqp8Su/V+6MeDzzQBQ0=
6-
github.com/cloudflare/circl v1.6.1/go.mod h1:uddAzsPgqdMAYatqJ0lsjX1oECcQLIlRpzZh3pJrofs=
75
github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Zttxdo=
86
github.com/klauspost/compress v1.18.0/go.mod h1:2Pp+KzxcywXVXMr50+X0Q/Lsb43OQHYWRCY2AiWywWQ=
9-
github.com/refraction-networking/utls v1.7.3 h1:L0WRhHY7Oq1T0zkdzVZMR6zWZv+sXbHB9zcuvsAEqCo=
10-
github.com/refraction-networking/utls v1.7.3/go.mod h1:TUhh27RHMGtQvjQq+RyO11P6ZNQNBb3N0v7wsEjKAIQ=
7+
github.com/refraction-networking/utls v1.8.0 h1:L38krhiTAyj9EeiQQa2sg+hYb4qwLCqdMcpZrRfbONE=
8+
github.com/refraction-networking/utls v1.8.0/go.mod h1:jkSOEkLqn+S/jtpEHPOsVv/4V4EVnelwbMQl4vCWXAM=
119
github.com/xyproto/randomstring v1.0.5 h1:YtlWPoRdgMu3NZtP45drfy1GKoojuR7hmRcnhZqKjWU=
1210
github.com/xyproto/randomstring v1.0.5/go.mod h1:rgmS5DeNXLivK7YprL0pY+lTuhNQW3iGxZ18UQApw/E=
1311
golang.org/x/crypto v0.37.0 h1:kJNSjF/Xp7kU0iB2Z+9viTPMW4EqqsrywMXLJOOsXSE=

browser-profiler/main/scripts/runBrowserstack.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export default async function runBrowserstack(): Promise<void> {
4040
if (browser.name === 'Safari' && Number(browser.version.major) < 13) continue;
4141
// no support for Promises, lambdas... detections need refactor for support
4242
if (browser.name === 'IE') continue;
43+
if (process.env.BROWSER_ID && !browser.id.includes(process.env.BROWSER_ID)) continue;
4344

4445
const rerunPluginIds = BrowserProfiler.findMissingPlugins(userAgentId, plugins);
4546
if (!rerunPluginIds.length) continue;

double-agent/.env.defaults

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ COLLECT_PORT=3000
1010

1111
# collect ports
1212
PLUGIN_STARTING_PORT=3001
13+
PLUGIN_MAX_PORT=20000
1314

1415
# collect plugins
1516
TCP_NETWORK_DEVICE=lo0

double-agent/collect/lib/Plugin.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,5 +295,9 @@ function generatePort(): number {
295295
if (releasedPorts.length) {
296296
return releasedPorts.shift();
297297
}
298+
if (portCounter > Config.collect.pluginMaxPort) {
299+
portCounter = Config.collect.pluginStartingPort;
300+
return portCounter++;
301+
}
298302
return (portCounter += 1);
299303
}

double-agent/config/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export default class Config {
5454
},
5555
shouldGenerateProfiles: parseEnvBool(env.GENERATE_PROFILES),
5656
pluginStartingPort: parseEnvInt(env.PLUGIN_STARTING_PORT),
57+
pluginMaxPort: parseEnvInt(env.PLUGIN_MAX_PORT) || 20000,
5758

5859
// collect plugins
5960
tcpNetworkDevice: env.TCP_NETWORK_DEVICE,

plugins/default-browser-emulator/test/navigator.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let navigatorConfig: any;
1616
let browser: Browser;
1717
beforeEach(Helpers.beforeEach);
1818
beforeAll(async () => {
19-
const selectBrowserMeta = BrowserEmulator.selectBrowserMeta('~ mac = 11');
19+
const selectBrowserMeta = BrowserEmulator.selectBrowserMeta('~ mac');
2020
const { browserVersion, operatingSystemVersion } = selectBrowserMeta.userAgentOption;
2121
const asOsDataDir = `${emulatorDataDir}/as-chrome-${browserVersion.major}-0/as-mac-os-${operatingSystemVersion.major}`;
2222

0 commit comments

Comments
 (0)