v3/examples/print/assets/index.html
Issue #4290: macOS Print dialog does not open
Cmd+PExpected: A print dialog should appear as a sheet attached to this window.
Bug: Before the fix, nothing happens when trying to print.
Print via Go APIPrint via Window.Print() Ready to test...
This is sample content that should appear in the print preview.
Technical Details:
The bug was caused by passing a raw void* pointer instead of the properly cast NSWindow* to runOperationModalForWindow:.
Note: window.print() may not be natively supported in WKWebView. The Go API uses NSPrintOperation instead.