tauri-apps/tauri

[bug] Error loading docs.google.com in a webview

Open

#11,612 建立於 2024年11月7日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)Rust (106,642 star) (3,597 fork)batch import
help wantedstatus: needs triagetype: bug

描述

Describe the bug

I'm trying to use the Google Docs creation page within a Tauri webview. While the Google login challenge completes successfully, the Google Docs page fails to load afterward, showing this error message:

image

We believe the issue might be due to Google Docs attempting to download and install an extension to enable collaborative editing which may not be permitted by default in Tauri's webview environment.

Is there a configuration or workaround we can add to tauri::WebviewBuilder to address this loading issue?

Reproduction

This repository contains a basic Tauri app that opens a single webview pointing to https://docs.google.com/document/u/0/create. Upon launching the app, you’ll be prompted to log in with your Google account. After logging in, the webview attempts to load the Google Docs editor but fails to fully display the page.

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Mac OS 14.6.0 arm64 (X64)
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.82.0 (f6e511eec 2024-10-15)
    ✔ cargo: 1.82.0 (8f40fc59f 2024-08-21)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 20.13.1
    - pnpm: 9.1.2
    - yarn: 1.22.22
    - npm: 10.5.2

[-] Packages
    - tauri 🦀: 2.0.6
    - tauri-build 🦀: 2.0.2
    - wry 🦀: 0.46.3
    - tao 🦀: 0.30.3
    - tauri-cli 🦀: 2.0.2
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli : 2.0.2 (outdated, latest: 2.0.4)

[-] Plugins
    - tauri-plugin-os 🦀: 2.0.1
    - @tauri-apps/plugin-os : not installed!
    - tauri-plugin-store 🦀: 2.0.1
    - @tauri-apps/plugin-store : not installed!
    - tauri-plugin-updater 🦀: 2.0.2
    - @tauri-apps/plugin-updater : not installed!

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../../dist/apps/exam-web
    - devUrl: http://localhost:3000/
    - framework: React
    - bundler: Vite

Stack trace

No response

Additional context

Discord post

貢獻者指南