Summary: | Webkit crashes in HIWebView.m Line 772 when moving window | ||
---|---|---|---|
Product: | WebKit | Reporter: | geoff kruse <gkruse> |
Component: | WebKit Misc. | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Major | CC: | dev+webkit, mrowe |
Priority: | P1 | Keywords: | InRadar, Regression |
Version: | 523.x (Safari 3) | ||
Hardware: | Mac | ||
OS: | OS X 10.4 |
Description
geoff kruse
2007-06-13 16:17:36 PDT
Here is a crashing build of the app in question. Note, not for public release. http://wireless.kicks-ass.org/Whisher.app.zip What steps need to be taken when using the application to reproduce the crash? Launch the application and move the main window across the screen. If that doesn't do it, "jiggle" the window a little. The crash didn't occur before installing safari 3, however it does occur when with tot as well. Confirmed on Tiger (10.4.9 8P135) with Safari 3.0 Beta and r23484. The code in question fails to check the return value of the call HIViewGetViewForMouseEvent, which leads to NULL being passed on to another API. The fact HIViewGetViewForMouseEvent is returning an error indicates that the arguments it is being passed are in some way incorrect as the conditions in which it will fail are very limited. This is similar to the setup I do in Qt taken from http://doc.trolltech.com/qq/qq20-hiviews.html WebWidget::WebWidget(QWidget *parent) : QWidget(parent) { HIViewRef webView; WebInitForCarbon(); HIWebViewCreate(&webView); create(WId(webView)); } For some reason, it seems to cause problems? |