Minimal reproduction for macOS iframe print behaviour in Tauri.
It has exactly two buttons:
Print window: callswindow.print()Print iframe: callsiframe.contentWindow.print()on the iframe to its right
In Tauri on macOS, Print window works when core:webview:allow-print is present, but Print iframe never works.
Both buttons work in Safari and other browsers.
- Run:
npm install npm run dev
- Open Safari
- Press both buttons and see that they both spawn print dialogs
- Kill the server, then run:
npm run tauri:dev
- Press both buttons and see that only the
Print windowbutton works