element-desktop/remove-fuses.patch

36 lines
1.9 KiB
Diff
Raw Normal View History

- Version 1.11.87 ## ✨ Features * Send and respect MSC4230 is\_animated flag (https://github.com/element-hq/element-web/pull/28513). Contributed by @t3chguy. * Display a warning when an unverified user's identity changes (https://github.com/element-hq/element-web/pull/28211). Contributed by @uhoreg. * Swap out Twitter link for Mastodon on auth footer (https://github.com/element-hq/element-web/pull/28508). Contributed by @t3chguy. * Consider `org.matrix.msc3417.call` as video room in create room dialog (https://github.com/element-hq/element-web/pull/28497). Contributed by @t3chguy. * Standardise icons using Compound Design Tokens (https://github.com/element-hq/element-web/pull/28217). Contributed by @t3chguy. * Start sending stable `m.marked_unread` events (https://github.com/element-hq/element-web/pull/28478). Contributed by @tulir. * Upgrade to compound-design-tokens v2 (https://github.com/element-hq/element-web/pull/28471). Contributed by @t3chguy. * Standardise icons using Compound Design Tokens (https://github.com/element-hq/element-web/pull/28286). Contributed by @t3chguy. * Remove reply fallbacks as per merged MSC2781 (https://github.com/element-hq/element-web/pull/28406). Contributed by @t3chguy. * Use React Suspense when rendering async modals (https://github.com/element-hq/element-web/pull/28386). Contributed by @t3chguy. ## 🐛 Bug Fixes * Add spinner when room encryption is loading in room settings (https://github.com/element-hq/element-web/pull/28535). Contributed by @florianduros. * Fix getOidcCallbackUrl for Element Desktop (https://github.com/element-hq/element-web/pull/28521). Contributed by @t3chguy. * Filter out redacted poll votes to avoid crashing the Poll widget (https://github.com/element-hq/element-web/pull/28498). Contributed by @t3chguy. * Fix force tab complete not working since switching to React 18 createRoot API (https://github.com/element-hq/element-web/pull/28505). Contributed by @t3chguy. * Fix media captions in bubble layout (https://github.com/element-hq/element-web/pull/28480). Contributed by @tulir. * Reset cross-signing before backup when resetting both (https://github.com/element-hq/element-web/pull/28402). Contributed by @uhoreg. * Listen to events so that encryption icon updates when status changes (https://github.com/element-hq/element-web/pull/28407). Contributed by @uhoreg. * Check that the file the user chose has a MIME type of `image/*` (https://github.com/element-hq/element-web/pull/28467). Contributed by @t3chguy. * Fix download button size in message action bar (https://github.com/element-hq/element-web/pull/28472). Contributed by @t3chguy. * Allow tab completing users in brackets (https://github.com/element-hq/element-web/pull/28460). Contributed by @t3chguy. * Fix React 18 strict mode breaking spotlight dialog (https://github.com/element-hq/element-web/pull/28452). Contributed by @MidhunSureshR. OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-desktop?expand=0&rev=89
2024-12-03 14:51:00 +01:00
It is impossible to monkeypatch a shared copy of Electron, and in current versions of the nodejs-electron package
we intentionally fail the build of any app which tries to do this to alert the packager.
One problematic fuse which may break user data compatibility with upstream binaries is cookie encryption.
If a user runs an app with fused electron and then with unfused one, their cookies will get deleted.
OBSERVATION(dziobian):
Element creates a cookies sqlite database on startup but seems to never write anything to it.
Deleting the database manually seemed to have no effect.
--- element-desktop-1.11.65/electron-builder.ts.orig 2024-04-23 15:14:00.000000000 +0200
+++ element-desktop-1.11.65/electron-builder.ts 2024-05-16 18:51:14.513871208 +0200
@@ -75,22 +75,6 @@ const config: Writable<Configuration> =
const electronBinaryPath = path.join(context.appOutDir, `${executableName}${ext}`);
console.log(`Flipping fuses for: ${electronBinaryPath}`);
- await flipFuses(electronBinaryPath, {
- version: FuseVersion.V1,
- resetAdHocDarwinSignature: context.electronPlatformName === "darwin" && context.arch === Arch.universal,
-
- [FuseV1Options.EnableCookieEncryption]: true,
- [FuseV1Options.OnlyLoadAppFromAsar]: true,
-
- [FuseV1Options.RunAsNode]: false,
- [FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false,
- [FuseV1Options.EnableNodeCliInspectArguments]: false,
-
- // Mac app crashes on arm for us when `LoadBrowserProcessSpecificV8Snapshot` is enabled
- [FuseV1Options.LoadBrowserProcessSpecificV8Snapshot]: false,
- // https://github.com/electron/fuses/issues/7
- [FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: false,
- });
}
},
files: [