Skip to content

[bug] document.exitFullscreen will cause Tauri to exit fullscreen mode #14227

@felix869218536

Description

@felix869218536

Describe the bug

When launching a Tauri full screen application, if there is an element in the webview that uses requestFullscreen for full screen, calling document.exitFullscreen will cause Tauri to exit full screen

Reproduction

No response

Expected behavior

No response

Full tauri info output

$ cargo tauri info

[✔] Environment
    - OS: Windows 10.0.22631 x86_64 (X64)
    ✔ WebView2: 140.0.3485.94
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.89.0 (29483883e 2025-08-04)
    ✔ cargo: 1.89.0 (c24e10642 2025-06-23)
    ✔ rustup: 1.28.2 (e4f3ad6f8 2025-04-28)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (overridden by environment variable RUSTUP_TOOLCHAIN)
    - node: 22.12.0
    - pnpm: 10.13.1
    - yarn: 1.22.22
    - npm: 10.9.0
    - bun: 1.2.18

[-] Packages
    - tauri 🦀: 2.8.4, (outdated, latest: 2.8.5)
    - tauri-build 🦀: 2.4.0, (outdated, latest: 2.4.1)
    - wry 🦀: 0.53.2, (outdated, latest: 0.53.3)
    - tao 🦀: 0.34.2, (outdated, latest: 0.34.3)
    - tauri-cli 🦀: 2.4.1 (outdated, latest: 2.8.4)

[-] Plugins
    - tauri-plugin-clipboard-manager 🦀: 2.3.0
    - tauri-plugin-autostart 🦀: 2.5.0
    - tauri-plugin-log 🦀: 2.6.0, (outdated, latest: 2.7.0)
    - tauri-plugin-opener 🦀: 2.2.3, (outdated, latest: 2.5.0)
    - tauri-plugin-localhost 🦀: 2.3.0
    - tauri-plugin-notification 🦀: 2.3.1
    - tauri-plugin-http 🦀: 2.5.2
    - tauri-plugin-fs 🦀: 2.4.2
    - tauri-plugin-single-instance 🦀: 2.3.3, (outdated, latest: 2.3.4)
    - tauri-plugin-os 🦀: 2.3.1
    - tauri-plugin-persisted-scope 🦀: 2.3.2
    - tauri-plugin-store 🦀: 2.4.0
    - tauri-plugin-dialog 🦀: 2.3.3, (outdated, latest: 2.4.0)
    - tauri-plugin-shell 🦀: 2.3.1

[-] App
    - build-type: bundle
    - CSP: default-src 'self' ipc: asset: http: https: data: blob:; style-src 'self' 'unsafe-inline' 'unsafe-eval' blob: http: https:; script-src 'self' 'unsafe-inline' 'unsafe-eval' blob: http: https:; connect-src 'self' ipc: http: https: ws: wss: mqtt: mqtts: rtsp: rtmp:
    - frontendDist: ./ui

Stack trace


Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions