Skip to content

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

Open
zetaloop wants to merge 1 commit into
tauri-apps:devfrom
zetaloop:feat/no-redirection-bitmap
Open

feat(core): add no_redirection_bitmap API on Windows#15410
zetaloop wants to merge 1 commit into
tauri-apps:devfrom
zetaloop:feat/no-redirection-bitmap

Conversation

@zetaloop
Copy link
Copy Markdown

@zetaloop zetaloop commented May 18, 2026

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
Copy link
Copy Markdown

Copilot AI left a comment

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
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 18, 2026

Package Changes Through e33a3ca

There are 6 changes which include @tauri-apps/api with minor, tauri with minor, tauri-utils with minor, tauri-runtime with minor, tauri-runtime-wry with minor, tauri-bundler with patch

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.0 2.12.0
tauri-utils 2.9.2 2.10.0
tauri-bundler 2.9.2 2.9.3
tauri-runtime 2.11.2 2.12.0
tauri-runtime-wry 2.11.2 2.12.0
tauri-codegen 2.6.2 2.6.3
tauri-macros 2.6.2 2.6.3
tauri-plugin 2.6.2 2.6.3
tauri-build 2.6.2 2.6.3
tauri 2.11.2 2.12.0
@tauri-apps/cli 2.11.2 2.11.3
tauri-cli 2.11.2 2.11.3

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
Copy link
Copy Markdown
Contributor

@Legend-Master Legend-Master left a comment

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
Copy link
Copy Markdown
Contributor

@Legend-Master Legend-Master left a comment

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
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants