This is because the WindowRef that we pass is invalid (qt_mac_window_for will return a Cocoa NSWindow and not a Carbon WindowRef. Solution is to either implement the cocoa event model. A quick fix is actually force wmode opaque. This makes the code start using fakeWindow which is a carbon window and hence we will get a Carbon WindowRef :-)
=== Bulk closing of Qt bugs === If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary. If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.