Changeset 167656 in webkit


Ignore:
Timestamp:
Apr 22, 2014 6:36:21 AM (10 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK] Crash after getting web view context property with g_object_get
https://bugs.webkit.org/show_bug.cgi?id=131983

Reviewed by Philippe Normand.

The problem is that the getter is using g_value_take_object() and
the default context is destroyed when the caller releases its ref.

  • UIProcess/API/gtk/WebKitWebView.cpp:

(webkitWebViewGetProperty): Use g_value_set_object() instead of
g_value_take_object().

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r167653 r167656  
     12014-04-22  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] Crash after getting web view context property with g_object_get
     4        https://bugs.webkit.org/show_bug.cgi?id=131983
     5
     6        Reviewed by Philippe Normand.
     7
     8        The problem is that the getter is using g_value_take_object() and
     9        the default context is destroyed when the caller releases its ref.
     10
     11        * UIProcess/API/gtk/WebKitWebView.cpp:
     12        (webkitWebViewGetProperty): Use g_value_set_object() instead of
     13        g_value_take_object().
     14
    1152014-04-22  Ryuan Choi  <ryuan.choi@samsung.com>
    216
  • trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp

    r166574 r167656  
    561561    switch (propId) {
    562562    case PROP_WEB_CONTEXT:
    563         g_value_take_object(value, webView->priv->context);
     563        g_value_set_object(value, webView->priv->context);
    564564        break;
    565565    case PROP_GROUP:
Note: See TracChangeset for help on using the changeset viewer.