Changeset 205182 in webkit


Ignore:
Timestamp:
Aug 30, 2016 9:34:01 AM (8 years ago)
Author:
Carlos Garcia Campos
Message:

REGRESSION(r194846): [GTK] UI process crash visiting sites protected with HTTP auth when using GTK+ < 3.14
https://bugs.webkit.org/show_bug.cgi?id=161385

Reviewed by Antonio Gomes.

Since r194846, we are chaining up webkitWebViewBaseMotionNotifyEvent, but before GTK+ 3.14
GtkWidget::motion_notify_event was nullptr, so it can't be used unconditionally.

  • UIProcess/API/gtk/WebKitWebViewBase.cpp:

(webkitWebViewBaseMotionNotifyEvent):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r205176 r205182  
     12016-08-30  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        REGRESSION(r194846): [GTK] UI process crash visiting sites protected with HTTP auth when using GTK+ < 3.14
     4        https://bugs.webkit.org/show_bug.cgi?id=161385
     5
     6        Reviewed by Antonio Gomes.
     7
     8        Since r194846, we are chaining up webkitWebViewBaseMotionNotifyEvent, but before GTK+ 3.14
     9        GtkWidget::motion_notify_event was nullptr, so it can't be used unconditionally.
     10
     11        * UIProcess/API/gtk/WebKitWebViewBase.cpp:
     12        (webkitWebViewBaseMotionNotifyEvent):
     13
    1142016-08-30  Carlos Garcia Campos  <cgarcia@igalia.com>
    215
  • trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp

    r205116 r205182  
    807807    WebKitWebViewBasePrivate* priv = webViewBase->priv;
    808808
    809     if (priv->authenticationDialog)
    810         return GTK_WIDGET_CLASS(webkit_web_view_base_parent_class)->motion_notify_event(widget, event);
     809    if (priv->authenticationDialog) {
     810        auto* widgetClass = GTK_WIDGET_CLASS(webkit_web_view_base_parent_class);
     811        return widgetClass->motion_notify_event ? widgetClass->motion_notify_event(widget, event) : FALSE;
     812    }
    811813
    812814    priv->pageProxy->handleMouseEvent(NativeWebMouseEvent(reinterpret_cast<GdkEvent*>(event), 0 /* currentClickCount */));
Note: See TracChangeset for help on using the changeset viewer.