Skip to content

feat(core): add no_redirection_bitmap API on Windows - #15410

Merged
Legend-Master merged 2 commits into
tauri-apps:devfrom
zetaloop:feat/no-redirection-bitmap
Jul 3, 2026
Merged

feat(core): add no_redirection_bitmap API on Windows#15410
Legend-Master merged 2 commits into
tauri-apps:devfrom
zetaloop:feat/no-redirection-bitmap

Conversation

@zetaloop

@zetaloop zetaloop commented May 18, 2026

Copy link
Copy Markdown
Contributor

Related to #6775 and #14515.

Exposes Tao's existing Windows with_no_redirection_bitmap option through Tauri window builders and window config.

This allows transparent windows to avoid the initial white redirection bitmap frame before the webview content is rendered.


Repro: zetaloop/tauri-noredirectionbitmap-repro

Before fix:

PixPin_2026-05-18_12-28-48

After fix:

PixPin_2026-05-18_12-32-47

(Amended the commit to fix outdated schema)

Copilot AI review requested due to automatic review settings May 18, 2026 04:36
@zetaloop
zetaloop requested a review from a team as a code owner May 18, 2026 04:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Exposes Tao's existing Windows with_no_redirection_bitmap option through Tauri's window builders and window config. This allows transparent windows to avoid the initial white redirection bitmap flash before the webview content is rendered.

Changes:

  • Add no_redirection_bitmap builder method on the runtime WindowBuilder trait and its wry/mock implementations, plus public WindowBuilder/WebviewWindowBuilder wrappers.
  • Add noRedirectionBitmap field to WindowConfig (with kebab-case alias) and propagate it from config to the wry builder; update both JSON schemas.
  • Add .changes/ entries describing the new feature for tauri, tauri-runtime, tauri-runtime-wry, and tauri-utils.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
crates/tauri-runtime/src/window.rs Adds no_redirection_bitmap to the WindowBuilder trait.
crates/tauri-runtime-wry/src/lib.rs Implements the new builder method (windows/non-windows) and applies the config value.
crates/tauri/src/window/mod.rs Public WindowBuilder::no_redirection_bitmap wrapper.
crates/tauri/src/webview/webview_window.rs Public WebviewWindowBuilder::no_redirection_bitmap wrapper.
crates/tauri/src/test/mock_runtime.rs No-op implementation for the mock runtime.
crates/tauri-utils/src/config.rs Adds no_redirection_bitmap field, default, and build-time codegen.
crates/tauri-schema-generator/schemas/config.schema.json Schema entry for noRedirectionBitmap.
crates/tauri-cli/config.schema.json Mirrored CLI schema entry.
.changes/no-redirection-bitmap.md Changelog for builder API addition.
.changes/no-redirection-bitmap-config.md Changelog for config option addition.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

github-actions Bot commented May 18, 2026

Copy link
Copy Markdown
Contributor

Package Changes Through 9dbefee

There are 14 changes which include tauri-bundler with minor, tauri-cli with minor, @tauri-apps/cli with minor, tauri-utils with minor, tauri with minor, tauri-build with minor, tauri-runtime-wry with minor, tauri-runtime with minor, tauri-codegen with minor, tauri-macros with minor, tauri-plugin with minor, tauri-macos-sign with minor, tauri-driver with minor, @tauri-apps/api with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
@tauri-apps/api 2.11.1 2.12.0
tauri-utils 2.9.3 2.10.0
tauri-macos-sign 2.3.4 2.4.0
tauri-bundler 2.9.4 2.10.0
tauri-runtime 2.11.3 2.12.0
tauri-runtime-wry 2.11.4 2.12.0
tauri-codegen 2.6.3 2.7.0
tauri-macros 2.6.3 2.7.0
tauri-plugin 2.6.3 2.7.0
tauri-build 2.6.3 2.7.0
tauri 2.11.5 2.12.0
@tauri-apps/cli 2.11.4 2.12.0
tauri-cli 2.11.4 2.12.0
tauri-driver 2.0.6 2.1.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@zetaloop zetaloop closed this May 18, 2026
@zetaloop
zetaloop force-pushed the feat/no-redirection-bitmap branch from cd43831 to 499df79 Compare May 18, 2026 05:00
@zetaloop zetaloop reopened this May 18, 2026

@Legend-Master Legend-Master left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will also want this to be typed in the window.ts

Comment thread crates/tauri-runtime-wry/src/lib.rs Outdated
Comment thread crates/tauri-runtime-wry/src/lib.rs Outdated
Comment thread crates/tauri/src/webview/webview_window.rs Outdated
@Legend-Master Legend-Master added this to the 2.12 milestone May 20, 2026
@zetaloop
zetaloop force-pushed the feat/no-redirection-bitmap branch from 6ea4de3 to e33a3ca Compare May 23, 2026 20:53
Legend-Master
Legend-Master previously approved these changes May 24, 2026

@Legend-Master Legend-Master left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I will merge this after we finish releasing patch versions and go on to 2.12 milestone.

Also, does it make sense that we also mention this in transparent's docs?

@zetaloop

Copy link
Copy Markdown
Contributor Author

Yes, I've added a note to transparent so this is easier to discover on Windows.

@Legend-Master
Legend-Master merged commit 2926555 into tauri-apps:dev Jul 3, 2026
28 checks passed
Proksima pushed a commit to Proksima/tauri that referenced this pull request Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants