Commit de7edcee authored by alp@webkit.org's avatar alp@webkit.org

2008-01-25 Ori Bernstein <ori@eigenstate.org>

        Reviewed by Alp Toker.

        http://bugs.webkit.org/show_bug.cgi?id=16795
        WebKitGtk crashes when there is no focused Frame

        Add a null check. focusedFrame() isn't used directly anywhere else so
        this is the only case that needs to be fixed.

        * WebView/webkitwebview.cpp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29793 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 3bb905fb
2008-01-25 Ori Bernstein <ori@eigenstate.org>
Reviewed by Alp Toker.
http://bugs.webkit.org/show_bug.cgi?id=16795
WebKitGtk crashes when there is no focused Frame
Add a null check. focusedFrame() isn't used directly anywhere else so
this is the only case that needs to be fixed.
* WebView/webkitwebview.cpp:
2008-01-22 Christian Dywan <christian@imendio.com>
Reviewed by Alp Toker.
......
......@@ -309,7 +309,7 @@ static gboolean webkit_web_view_button_release_event(GtkWidget* widget, GdkEvent
WebKitWebViewPrivate* webViewData = WEBKIT_WEB_VIEW_GET_PRIVATE(web_view);
Frame* focusedFrame = webViewData->corePage->focusController()->focusedFrame();
if (focusedFrame->editor()->canEdit()) {
if (focusedFrame && focusedFrame->editor()->canEdit()) {
GdkWindow* window = gtk_widget_get_parent_window(widget);
gtk_im_context_set_client_window(webViewData->imContext, window);
#ifdef MAEMO_CHANGES
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment