Skip to content
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
16 changes: 10 additions & 6 deletions config/scripts/electron-runtime-floor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ import { describe, expect, it } from 'vitest'
* around `gtk_init()` while FontConfig warmed up on a pool thread, and below
* glibc 2.41 that frees `environ` under a concurrent `getenv()` — a launch-time
* use-after-free on every Ubuntu we support (stablyai/orca#20081). 43.7.0 stops
* freeing the published `environ`. A downgrade past it re-ships that crash, and
* nothing else in the tree would notice.
* freeing the published `environ`. 43.7.0 itself threw `Invalid guestInstanceId` when a
* loaded `<webview>` left the DOM, which blanked browser tabs React re-inserted
* (electron/electron#53989); 43.7.4 fixes it. A downgrade past either re-ships the bug,
* and nothing else in the tree would notice.
*/
const MINIMUM_ELECTRON_VERSION = '43.7.0'
const MINIMUM_ELECTRON_VERSION = '43.7.4'

function parseVersion(specifier: string): [number, number, number] {
const match = /(\d+)\.(\d+)\.(\d+)/.exec(specifier)
Expand All @@ -35,15 +37,17 @@ describe('electron runtime floor', () => {
it.each([
['42.9.0', false],
['43.6.0', false],
['43.7.0', true],
['43.7.1', true],
['43.7.0', false],
['43.7.3', false],
['43.7.4', true],
['43.7.5', true],
['43.8.0', true],
['44.0.0', true]
])('reads %s as meeting the floor: %s', (specifier, expected) => {
expect(meetsRuntimeFloor(specifier)).toBe(expected)
})

it('pins Electron at or above the glibc environ-race fix', () => {
it('pins Electron at or above the glibc environ-race and webview-detach fixes', () => {
const packageJson = JSON.parse(
readFileSync(join(__dirname, '../../package.json'), 'utf-8')
) as { devDependencies: Record<string, string> }
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
"cmdk": "^1.1.1",
"diff": "8.0.4",
"dompurify": "3.4.15",
"electron": "43.7.0",
"electron": "43.7.5",
"electron-builder": "^26.15.3",
"electron-builder-squirrel-windows": "^26.15.3",
"electron-vite": "^5.0.0",
Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ minimumReleaseAge: 4320
minimumReleaseAgeExclude:
- pdfjs-dist@6.3.289
- zod@4.5.4
- electron@43.7.0
- '@shadcn/lint@0.1.0'
shamefullyHoist: true

Expand Down
Loading