Skip to content

[bug] Pop-up window creation is blocked in webviews no matter what permissions are set #14263

@phenomen

Description

@phenomen

Describe the bug

Since some of earlier updates to Tauri or some plugin, webviews are unable to open detached pop-up windows and it blocks many authentication flows (Google, Apple) and other use-cases. I've tried to set all possible local and remote permissions, but nothing helps.

Reproduction

  1. Create a webview of any website that uses pop-ups, i.e. Anthropic
	const webview = new WebviewWindow("anthropic", {
		title: `Anthropic Console`,
		url: "https://console.anthropic.com/login",
		width: 1280,
		height: 800,
	});
  1. Click on "Continue with Google"

Expected behavior

A pop-up with Google auth should open. Instead, there is an error:

Image

Here is what I get in Foundry VTT when trying to create a detached window for character sheet:

Image

It's just a couple of examples but I encountered it on many websites and apps.

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.26100 x86_64 (X64)
    ✔ WebView2: 141.0.3537.57
    ✔ MSVC: Visual Studio Build Tools 2022
    ✔ rustc: 1.90.0 (1159e78c4 2025-09-14)
    ✔ cargo: 1.90.0 (840b83a10 2025-07-30)
    ✔ rustup: 1.28.2 (e4f3ad6f8 2025-04-28)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 22.20.0
    - npm: 10.9.3
    - bun: 1.2.23

[-] Packages
    - tauri 🦀: 2.8.5
    - tauri-build 🦀: 2.4.1
    - wry 🦀: 0.53.4
    - tao 🦀: 0.34.3
    - @tauri-apps/api : 2.8.0
    - @tauri-apps/cli : 2.8.4

[-] Plugins
    - tauri-plugin-fs 🦀: 2.4.2
    - @tauri-apps/plugin-fs : not installed!
    - tauri-plugin-updater 🦀: 2.9.0
    - @tauri-apps/plugin-updater : 2.9.0
    - tauri-plugin-shell 🦀: 2.3.1
    - @tauri-apps/plugin-shell : 2.3.1
    - tauri-plugin-dialog 🦀: 2.4.0
    - @tauri-apps/plugin-dialog : 2.4.0
    - tauri-plugin-global-shortcut 🦀: 2.3.0
    - @tauri-apps/plugin-global-shortcut : 2.3.0

Additional context

It cause a lot of issues in my Tauri app so currently I have to use very outdated Tauri and plugins versions where this issue does not exist.

phenomen/flc#86
phenomen/flc#87
phenomen/flc#88
phenomen/flc#89

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions