⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 249193 in webkit


Ignore:
Timestamp:
Aug 28, 2019, 3:21:12 AM (7 years ago)
Author:
Carlos Garcia Campos
Message:

REGRESSION(r243434): Wrong URL passed to WebKitWebView::load-failed when cancelling previous load
https://bugs.webkit.org/show_bug.cgi?id=201176

Reviewed by Žan Doberšek.

Use the current provisional/committed url when faking an error event, instead of the current active URI that can
be the pending api request of a new load.

  • UIProcess/API/glib/WebKitWebView.cpp:

(webkitWebViewWillStartLoad):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r249192 r249193  
     12019-08-28  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        REGRESSION(r243434): Wrong URL passed to WebKitWebView::load-failed when cancelling previous load
     4        https://bugs.webkit.org/show_bug.cgi?id=201176
     5
     6        Reviewed by Žan Doberšek.
     7
     8        Use the current provisional/committed url when faking an error event, instead of the current active URI that can
     9        be the pending api request of a new load.
     10
     11        * UIProcess/API/glib/WebKitWebView.cpp:
     12        (webkitWebViewWillStartLoad):
     13
    1142019-08-28  Claudio Saavedra  <csaavedra@igalia.com>
    215
  • trunk/Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp

    r248846 r249193  
    20992099    GUniquePtr<GError> error(g_error_new_literal(WEBKIT_NETWORK_ERROR, WEBKIT_NETWORK_ERROR_CANCELLED, _("Load request cancelled")));
    21002100    webkitWebViewLoadFailed(webView, pageLoadState.isProvisional() ? WEBKIT_LOAD_STARTED : WEBKIT_LOAD_COMMITTED,
    2101         webView->priv->activeURI.data(), error.get());
     2101        pageLoadState.isProvisional() ? pageLoadState.provisionalURL().utf8().data() : pageLoadState.url().utf8().data(),
     2102        error.get());
    21022103}
    21032104
Note: See TracChangeset for help on using the changeset viewer.