Changeset 166410 in webkit


Ignore:
Timestamp:
Mar 28, 2014 9:42:02 AM (10 years ago)
Author:
mario.prada@samsung.com
Message:

[GTK] Running minibrowser with url crashes in debug build
https://bugs.webkit.org/show_bug.cgi?id=130492

Reviewed by Martin Robinson.

Use the ResourceRequest(const URL& url) constructor, instead of the
one taking a String, to call WebPageProxy::loadRequest(), so we
ensure that the passed URI is correctly constructed.

  • UIProcess/API/gtk/WebKitWebView.cpp:

(webkit_web_view_load_uri): Create an URL out of a SoupURI and
use that to create a ResourceRequest to pass to loadRequest().

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r166400 r166410  
     12014-03-28  Mario Sanchez Prada  <mario.prada@samsung.com>
     2
     3        [GTK] Running minibrowser with url crashes in debug build
     4        https://bugs.webkit.org/show_bug.cgi?id=130492
     5
     6        Reviewed by Martin Robinson.
     7
     8        Use the ResourceRequest(const URL& url) constructor, instead of the
     9        one taking a String, to call WebPageProxy::loadRequest(), so we
     10        ensure that the passed URI is correctly constructed.
     11
     12        * UIProcess/API/gtk/WebKitWebView.cpp:
     13        (webkit_web_view_load_uri): Create an URL out of a SoupURI and
     14        use that to create a ResourceRequest to pass to loadRequest().
     15
    1162014-03-27  Pratik Solanki  <psolanki@apple.com>
    217
  • trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp

    r166035 r166410  
    20052005    g_return_if_fail(uri);
    20062006
    2007     getPage(webView)->loadRequest(String::fromUTF8(uri));
     2007    GUniquePtr<SoupURI> soupURI(soup_uri_new(uri));
     2008    getPage(webView)->loadRequest(URL(soupURI.get()));
    20082009}
    20092010
Note: See TracChangeset for help on using the changeset viewer.