tauri icon indicating copy to clipboard operation
tauri copied to clipboard

[bug]"document.write" triggers an error exception.

Open wtto00 opened this issue 1 year ago • 0 comments

Describe the bug

const iframe = document.createElement("iframe");
iframe.style.cssText = "position:fixed;left:100vw;";
document.body.appendChild(iframe)

const documentIframe = iframe.contentWindow.document
documentIframe.open()
documentIframe.write('hello')
documentIframe.close()

Executing document.write in the web will trigger multiple errors, as shown in the following figure. image

Reproduction

https://github.com/wtto00/tauri-document-write

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Mac OS 14.2.0 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.75.0 (82e1608df 2023-12-21)
    ✔ cargo: 1.75.0 (1d8b05cdd 2023-11-20)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-apple-darwin (default)
    - node: 20.11.0
    - pnpm: 8.15.1
    - yarn: 1.22.21
    - npm: 10.4.0

[-] Packages
    - tauri [RUST]: 1.6.0
    - tauri-build [RUST]: 1.5.1
    - wry [RUST]: 0.24.7
    - tao [RUST]: 0.16.7
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli [NPM]: 1.5.10

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../src
    - devPath: ../src

Stack trace

No response

Additional context

Related to https://github.com/tauri-apps/tauri/issues/5780

wtto00 avatar Feb 21 '24 03:02 wtto00