Skip to content

Commit 2532e7c

Browse files
authored
Merge pull request #368 from ulixee/chrome135
feat(agent): chrome 135/136 emulation
2 parents c993ca0 + fdcd31b commit 2532e7c

File tree

7 files changed

+52
-19
lines changed

7 files changed

+52
-19
lines changed

agent/main/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
"description": "Fully programmable Devtools Protocol based browser",
55
"main": "index.js",
66
"dependencies": {
7-
"@ulixee/chrome-131-0": "^6778.109.11",
7+
"@ulixee/chrome-136-0": "^7103.114.11",
88
"@ulixee/chrome-app": "^1.0.3",
99
"@ulixee/commons": "2.0.0-alpha.31",
1010
"@ulixee/js-path": "2.0.0-alpha.31",
1111
"@ulixee/unblocked-agent-mitm": "2.0.0-alpha.31",
1212
"@ulixee/unblocked-specification": "2.0.0-alpha.31",
1313
"devtools-protocol": "^0.0.1137505",
14-
"nanoid": "^3.3.6",
14+
"nanoid": "^3.3.11",
1515
"tough-cookie": "^5.0.0",
1616
"ws": "^8.18.0"
1717
},

agent/mitm-socket/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dependencies": {
1111
"@ulixee/commons": "2.0.0-alpha.31",
1212
"@ulixee/unblocked-specification": "2.0.0-alpha.31",
13-
"nanoid": "^3.3.6"
13+
"nanoid": "^3.3.11"
1414
},
1515
"devDependencies": {
1616
"@types/ws": "^7.2.4",

core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@ulixee/unblocked-specification": "2.0.0-alpha.31",
4747
"better-sqlite3": "^11.1.2",
4848
"moment": "^2.29.4",
49-
"nanoid": "^3.3.6",
49+
"nanoid": "^3.3.11",
5050
"ws": "^8.18.0"
5151
},
5252
"devDependencies": {

plugins/default-browser-emulator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@ulixee/unblocked-agent-mitm-socket": "2.0.0-alpha.31",
1414
"@ulixee/unblocked-specification": "2.0.0-alpha.31",
1515
"compare-versions": "^6.1.0",
16-
"nanoid": "^3.3.6",
16+
"nanoid": "^3.3.11",
1717
"tar": "^7.4.3",
1818
"tough-cookie": "^5.0.0",
1919
"ua-parser-js": "^1.0.37"

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

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,11 @@ describe('Proxy detections', () => {
904904
}
905905
}
906906
})();`);
907-
expect(error.stack.match(/at Function.setPrototypeOf/g)).toHaveLength(1);
907+
if (browserVersion >= 135) {
908+
expect(error.stack.match(/at Object.setPrototypeOf/g)).toHaveLength(1);
909+
} else {
910+
expect(error.stack.match(/at Function.setPrototypeOf/g)).toHaveLength(1);
911+
}
908912
expect(error.name).toBe('TypeError');
909913
});
910914

@@ -931,7 +935,11 @@ describe('Proxy detections', () => {
931935
}
932936
})();`);
933937
expect(error.stack.match(/at Proxy.setPrototypeOf/g)).toBeNull();
934-
expect(error.stack.match(/at Function.setPrototypeOf/g)).toHaveLength(1);
938+
if (browserVersion >= 135) {
939+
expect(error.stack.match(/at debug.setPrototypeOf/g)).toHaveLength(1);
940+
} else {
941+
expect(error.stack.match(/at Function.setPrototypeOf/g)).toHaveLength(1);
942+
}
935943
expect(error.name).toBe('TypeError');
936944
});
937945

@@ -958,7 +966,11 @@ describe('Proxy detections', () => {
958966
}
959967
})();`);
960968
expect(error.stack.match(/at Proxy.setPrototypeOf/g)).toBeNull();
961-
expect(error.stack.match(/at Function.setPrototypeOf/g)).toHaveLength(1);
969+
if (browserVersion >= 135) {
970+
expect(error.stack.match(/at debug.setPrototypeOf/g)).toHaveLength(1);
971+
} else {
972+
expect(error.stack.match(/at Function.setPrototypeOf/g)).toHaveLength(1);
973+
}
962974
expect(error.name).toBe('TypeError');
963975
});
964976

@@ -998,7 +1010,11 @@ describe('Proxy detections', () => {
9981010
})();`);
9991011
expect(error.stack.match(/at Proxy.setPrototypeOf/g)).toBeNull();
10001012
expect(error.stack.match(/at Object.setPrototypeOf/g)).toBeNull();
1001-
expect(error.stack.match(/at Function.setPrototypeOf/g)).toHaveLength(1);
1013+
if (browserVersion >= 135) {
1014+
expect(error.stack.match(/at debug.setPrototypeOf/g)).toHaveLength(1);
1015+
} else {
1016+
expect(error.stack.match(/at Function.setPrototypeOf/g)).toHaveLength(1);
1017+
}
10021018
expect(error.name).toBe('TypeError');
10031019
});
10041020

@@ -1103,7 +1119,11 @@ describe('Proxy detections', () => {
11031119
}
11041120
})();`);
11051121

1106-
expect(error.stack.match(/Function.setPrototypeOf/g)).toHaveLength(1);
1122+
if (browserVersion >= 135) {
1123+
expect(error.stack.match(/at Object.setPrototypeOf/g)).toHaveLength(1);
1124+
} else {
1125+
expect(error.stack.match(/at Function.setPrototypeOf/g)).toHaveLength(1);
1126+
}
11071127
expect(error.stack.match(/Object.apply/g)).toBe(null);
11081128
expect(error.name).toBe('TypeError');
11091129

@@ -1122,7 +1142,11 @@ describe('Proxy detections', () => {
11221142
}
11231143
}
11241144
})();`);
1125-
expect(error2.stack.match(/Function.setPrototypeOf/g)).toHaveLength(1);
1145+
if (browserVersion >= 135) {
1146+
expect(error.stack.match(/at Object.setPrototypeOf/g)).toHaveLength(1);
1147+
} else {
1148+
expect(error.stack.match(/at Function.setPrototypeOf/g)).toHaveLength(1);
1149+
}
11261150
expect(error.stack.match(/Object.apply/g)).toBe(null);
11271151
expect(error2.name).toBe('TypeError');
11281152
});
@@ -1156,7 +1180,11 @@ describe('Proxy detections', () => {
11561180
}
11571181
}
11581182
})();`);
1159-
expect(error.stack.match(/Function.setPrototypeOf/g)).toHaveLength(1);
1183+
if (browserVersion >= 135) {
1184+
expect(error.stack.match(/at Object.setPrototypeOf/g)).toHaveLength(1);
1185+
} else {
1186+
expect(error.stack.match(/at Function.setPrototypeOf/g)).toHaveLength(1);
1187+
}
11601188
expect(error.stack.match(/Object.apply/g)).toBe(null);
11611189
expect(error.name).toBe('TypeError');
11621190
});

timetravel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"@ulixee/hero-interfaces": "2.0.0-alpha.31",
99
"@ulixee/unblocked-agent": "2.0.0-alpha.31",
1010
"@ulixee/unblocked-specification": "2.0.0-alpha.31",
11-
"nanoid": "^3.3.6"
11+
"nanoid": "^3.3.11"
1212
},
1313
"devDependencies": {
1414
"@ulixee/hero-testing": "2.0.0-alpha.31"

yarn.lock

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1933,10 +1933,10 @@
19331933
dependencies:
19341934
"@ulixee/js-path" "^2.0.0-alpha.18"
19351935

1936-
"@ulixee/chrome-131-0@^6778.109.11":
1937-
version "6778.109.11"
1938-
resolved "https://registry.npmjs.org/@ulixee/chrome-131-0/-/chrome-131-0-6778.109.11.tgz#ca8dc474cd1c7f4e293bac54c0406a9e4a00b1b2"
1939-
integrity sha512-2aNYjkm06vaFHKonWg1HxFItbRr1LuTDLMXvHo2D26pWfbFv+meP8PJu5rTIoeBczl2iLou0Q2zABIM1SCoBsA==
1936+
"@ulixee/chrome-136-0@^7103.114.11":
1937+
version "7103.114.11"
1938+
resolved "https://registry.npmjs.org/@ulixee/chrome-136-0/-/chrome-136-0-7103.114.11.tgz#e38099560aa66dcc740cd10a34547f36544181fb"
1939+
integrity sha512-y7Bq4iu8xizF+XWbmj+O3+on+s9qUNEudgFkII8xBZz35Hj55PIqm6mcz/hJiI10HFKr69VtgyYdCkfHjiKXUQ==
19401940
dependencies:
19411941
"@ulixee/chrome-app" "^1.0.3"
19421942

@@ -1949,7 +1949,7 @@
19491949
progress "^2.0.3"
19501950
tar "^6.1.11"
19511951

1952-
"@ulixee/chrome-app@^1.0.3":
1952+
"@ulixee/chrome-app@^1.0.3", "@ulixee/chrome-app@^1.0.4":
19531953
version "1.0.4"
19541954
resolved "https://registry.npmjs.org/@ulixee/chrome-app/-/chrome-app-1.0.4.tgz"
19551955
integrity sha512-OqRxzQCd5AWKtPp/AT6fY8PLRgOD3fIq8p+VR0ZDlIhWktDjr+6aefoj1KwSMUmPoRty3Y+8/ck31d/UZOiZ6w==
@@ -6223,7 +6223,12 @@ nan@^2.14.0:
62236223
resolved "https://registry.npmjs.org/nan/-/nan-2.22.0.tgz"
62246224
integrity sha512-nbajikzWTMwsW+eSsNm3QwlOs7het9gGJU5dDZzRTQGk03vyBOauxgI4VakDzE0PtsGTmXPsXTbbjVhRwR5mpw==
62256225

6226-
nanoid@^3.3.6, nanoid@^3.3.7:
6226+
nanoid@^3.3.11:
6227+
version "3.3.11"
6228+
resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz#4f4f112cefbe303202f2199838128936266d185b"
6229+
integrity sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==
6230+
6231+
nanoid@^3.3.7:
62276232
version "3.3.7"
62286233
resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz"
62296234
integrity sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==

0 commit comments

Comments
 (0)