Skip to content

Commit

Permalink
feat(agent): default to chrome 130
Browse files Browse the repository at this point in the history
  • Loading branch information
blakebyrnes committed Nov 5, 2024
1 parent 5a8a5fe commit 5830b3d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
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-128-0": "^6613.138.11",
"@ulixee/chrome-130-0": "^6723.92.11",
"@ulixee/chrome-app": "^1.0.3",
"@ulixee/commons": "2.0.0-alpha.30",
"@ulixee/js-path": "2.0.0-alpha.30",
Expand Down
8 changes: 3 additions & 5 deletions plugins/default-browser-emulator/test/navigator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ let navigatorConfig: any;
let browser: Browser;
beforeEach(Helpers.beforeEach);
beforeAll(async () => {
const selectBrowserMeta = BrowserEmulator.selectBrowserMeta('~ mac = 10.15');
const selectBrowserMeta = BrowserEmulator.selectBrowserMeta('~ mac = 11');
const { browserVersion, operatingSystemVersion } = selectBrowserMeta.userAgentOption;
const asOsDataDir = `${emulatorDataDir}/as-chrome-${browserVersion.major}-0/as-mac-os-${operatingSystemVersion.major}-${operatingSystemVersion.minor}`;
const asOsDataDir = `${emulatorDataDir}/as-chrome-${browserVersion.major}-0/as-mac-os-${operatingSystemVersion.major}`;

const navigatorJsonPath = `${asOsDataDir}/window-navigator.json`;
({ navigator: navigatorConfig } = JSON.parse(Fs.readFileSync(navigatorJsonPath, 'utf8')) as any);
Expand Down Expand Up @@ -93,9 +93,7 @@ test('it should handle overflows in plugins', async () => {

// should handle Uint32 overflows
await expect(
page.mainFrame.evaluate<boolean>(
`navigator.plugins.item(4294967296) === navigator.plugins[0]`,
),
page.mainFrame.evaluate<boolean>(`navigator.plugins.item(4294967296) === navigator.plugins[0]`),
).resolves.toBe(true);

// should correctly support instance references
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1938,10 +1938,10 @@
dependencies:
"@ulixee/js-path" "^2.0.0-alpha.18"

"@ulixee/chrome-128-0@^6613.138.11":
version "6613.138.11"
resolved "https://registry.npmjs.org/@ulixee/chrome-128-0/-/chrome-128-0-6613.138.11.tgz"
integrity sha512-efglwyxEq0UW/Qr6lvMi25aDwv8Ea4XwrLmd/MFPKAThZXI+vg6NoirT7lbtJ0RF02G6dvVX1OoEXnZH8rfQjg==
"@ulixee/chrome-130-0@^6723.92.11":
version "6723.92.11"
resolved "https://registry.yarnpkg.com/@ulixee/chrome-130-0/-/chrome-130-0-6723.92.11.tgz#d1c11090911817d1838deb65958abc05bc2cfb94"
integrity sha512-omNgBjC4DhFRQq90TmoT0t9CqoNsOEf9DTovdhYGdfp1PZw57zbfFh/sBFI5NVUKpp2JiXugR4m1sd2Gdyi2/Q==
dependencies:
"@ulixee/chrome-app" "^1.0.3"

Expand Down

0 comments on commit 5830b3d

Please sign in to comment.