Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

feat(agent): default chrome 121 #80

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
include:
- node-version: 20.x
os: ubuntu-latest
browser: chrome-119-0
browser: chrome-120-0
- node-version: 20.x
os: ubuntu-latest
browser: chrome-116-0
browser: chrome-115-0
- node-version: 20.x
os: ubuntu-latest
browser: chrome-113-0
browser: chrome-110-0
- node-version: 20.x
os: ubuntu-latest
browser: chrome-103-0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/new-profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,6 @@ jobs:
with:
branch: main
repository: ./unblocked
commit_options: '--no-verify'
push_options: '--no-verify'
commit_message: "chore(profiles): automatic updates"
2 changes: 1 addition & 1 deletion agent/main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Fully programmable Devtools Protocol based browser",
"main": "index.js",
"dependencies": {
"@ulixee/chrome-120-0": "^6099.225.8",
"@ulixee/chrome-121-0": "^6167.86.8",
"@ulixee/chrome-app": "^1.0.3",
"@ulixee/commons": "2.0.0-alpha.25",
"@ulixee/js-path": "2.0.0-alpha.25",
Expand Down
14 changes: 9 additions & 5 deletions plugins/default-browser-emulator/test/detection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,9 @@ test('stack overflow test should match chrome', async () => {
}>(`window.betrayalResult`);
expect(result.message).toBe('Maximum call stack size exceeded');
expect(result.name).toBe('RangeError');
expect(result.stack).toContain(`at iWillBetrayYouWithMyLongName (${koaServer.baseUrl}/betrayal:5:9)`);
expect(result.stack).toContain(
`at iWillBetrayYouWithMyLongName (${koaServer.baseUrl}/betrayal:5:9)`,
);
});

test('should properly maintain stack traces in toString', async () => {
Expand Down Expand Up @@ -717,10 +719,12 @@ describe('Proxy detections', () => {

const targetStackLine = ((error.stack || '').split('\n') || [])[1];
if (method === '__proto__') {
const targetStack =
chromeVersion >= 102
? ` at set __proto__ [as __proto__]`
: ` at Function.set __proto__ [as __proto__]`;
let targetStack = ` at Function.set __proto__ [as __proto__]`;
if (chromeVersion >= 121) {
targetStack = ` at set __proto__ (<anonymous>)`;
} else if (chromeVersion >= 102) {
targetStack = ` at set __proto__ [as __proto__]`;
}
if (chromeVersion >= 102 && !targetStackLine.startsWith(targetStack)) {
return `Stack doesnt have "${targetStack.trim()}": ${error.stack}`;
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1812,10 +1812,10 @@
dependencies:
"@ulixee/chrome-app" "^1.0.3"

"@ulixee/chrome-120-0@^6099.225.8":
version "6099.225.8"
resolved "https://registry.npmjs.org/@ulixee/chrome-120-0/-/chrome-120-0-6099.225.8.tgz"
integrity sha512-W86E+tGbZoKmzVBwTnxPMozvG2G676xXa6MptwbrCT1Txx3v2NQKMDL9KUew4r+NSg0pmImN8s/8xhzVSI80LQ==
"@ulixee/chrome-121-0@^6167.86.8":
version "6167.86.8"
resolved "https://registry.yarnpkg.com/@ulixee/chrome-121-0/-/chrome-121-0-6167.86.8.tgz#433f59f75b9657b316f12b6c7d959c4aa0038f03"
integrity sha512-FcvH16fTBWJypsn2ODZueqp8I1gaq/4pzfeS/jTgids+FrivA4krvb74+1A+bh4R4shujTRyZYWMuC3NHmmREw==
dependencies:
"@ulixee/chrome-app" "^1.0.3"

Expand Down
Loading