Changeset 41332 in webkit


Ignore:
Timestamp:
Mar 1, 2009 8:21:35 AM (15 years ago)
Author:
kov@webkit.org
Message:

2009-03-01 Gustavo Noronha Silva <Gustavo Noronha Silva>

Reviewed by Holger Freyther.

Fixes crash when the GIO backend is given the URI for a directory.

  • platform/network/soup/ResourceHandleSoup.cpp: (WebCore::networkErrorForFile):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r41325 r41332  
     12009-03-01  Gustavo Noronha Silva  <gns@gnome.org>
     2
     3        Reviewed by Holger Freyther.
     4
     5        Fixes crash when the GIO backend is given the URI for a directory.
     6
     7        * platform/network/soup/ResourceHandleSoup.cpp:
     8        (WebCore::networkErrorForFile):
     9
    1102009-02-28  Dimitri Glazkov  <dglazkov@chromium.org>
    211
  • trunk/WebCore/platform/network/soup/ResourceHandleSoup.cpp

    r41322 r41332  
    635635    // FIXME: Map gio errors to a more detailed error code when we have it in WebKit.
    636636    gchar* uri = g_file_get_uri(file);
    637     ResourceError resourceError("webkit-network-error", ERROR_TRANSPORT, uri, String::fromUTF8(error->message));
     637    ResourceError resourceError("webkit-network-error", ERROR_TRANSPORT, uri, error ? String::fromUTF8(error->message) : String());
    638638    g_free(uri);
    639639    return resourceError;
Note: See TracChangeset for help on using the changeset viewer.