Skip to content

Reload WebViews without relaunching Wire Desktop [WPB-22420] - #9696

Merged
screendriver merged 1 commit into
devfrom
feature-flags
Jul 14, 2026
Merged

Reload WebViews without relaunching Wire Desktop [WPB-22420]#9696
screendriver merged 1 commit into
devfrom
feature-flags

Conversation

@screendriver

@screendriver screendriver commented Jul 14, 2026

Copy link
Copy Markdown
Member
TaskWPB-22420 [Web] General maintenance ticket for PR merges

Context

Wire WebApp uses query parameters such as enabled-features for startup feature toggles.

When the WebApp requested a refresh, Wire Desktop previously received it as a restart request and relaunched the Electron application. The wrapper then reconstructed the WebApp URL from the configured environment, which removed the current WebView query parameters.

Changes

This adds support for WebAppEvents.LIFECYCLE.REFRESH.

The event is translated into the existing EVENT_TYPE.WRAPPER.RELOAD flow:

WebApp refresh request
→ WebView preload
→ Electron main process
→ wrapper renderer
→ reload existing WebViews

The existing renderer implementation reloads each WebView in place. This preserves the current WebView URL and its query parameters.

The existing LIFECYCLE.RESTART to WRAPPER.RELAUNCH flow remains unchanged for operations that require a genuine application restart.

Result

Clicking "Update now" refreshes the WebApp without relaunching Wire Desktop.

Startup feature toggles and other WebView URL state remain available after the refresh, including when multiple accounts are open.

See also wireapp/wire-webapp#21838

Route refresh lifecycle events through the wrapper reload IPC channel while preserving full Electron relaunches for restart requests.
@sonarqubecloud

Copy link
Copy Markdown

@screendriver
screendriver added this pull request to the merge queue Jul 14, 2026
Merged via the queue into dev with commit 5afbc0d Jul 14, 2026
12 checks passed
@screendriver
screendriver deleted the feature-flags branch July 14, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants