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.
This is sample content that should appear in the print preview.
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.