Changeset 196061 in webkit


Ignore:
Timestamp:
Feb 3, 2016 2:37:12 AM (8 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK] Layout Test http/tests/appcache/different-https-origin-resource-main.html is failing
https://bugs.webkit.org/show_bug.cgi?id=145253

Reviewed by Michael Catanzaro.

Source/WebCore:

The problem is that when the load is cancelled while the
connection is still being established,
SoupMessage::notify::tls-errors is emitted and the handler calls
ResourceHandleClient::didFail() which can delete the ResourceHandle.

  • platform/network/soup/ResourceHandleSoup.cpp:

(WebCore::tlsErrorsChangedCallback): Protect the ResourceHandle
for the scope of the callback because
ResourceHandleClient::didFail() could delete the object.

LayoutTests:

Update test expectation.

  • platform/gtk/TestExpectations:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r196060 r196061  
     12016-02-03  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] Layout Test http/tests/appcache/different-https-origin-resource-main.html is failing
     4        https://bugs.webkit.org/show_bug.cgi?id=145253
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        Update test expectation.
     9
     10        * platform/gtk/TestExpectations:
     11
    1122016-02-03  Carlos Garcia Campos  <cgarcia@igalia.com>
    213
  • trunk/LayoutTests/platform/gtk/TestExpectations

    r196060 r196061  
    17491749webkit.org/b/123431 http/tests/local/link-stylesheet-load-order.html [ Failure Pass ]
    17501750
    1751 webkit.org/b/145253 http/tests/appcache/different-https-origin-resource-main.html  [ Failure Crash ]
     1751webkit.org/b/145253 http/tests/appcache/different-https-origin-resource-main.html  [ Failure ]
    17521752
    17531753#////////////////////////////////////////////////////////////////////////////////////////
  • trunk/Source/WebCore/ChangeLog

    r196060 r196061  
     12016-02-03  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] Layout Test http/tests/appcache/different-https-origin-resource-main.html is failing
     4        https://bugs.webkit.org/show_bug.cgi?id=145253
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        The problem is that when the load is cancelled while the
     9        connection is still being established,
     10        SoupMessage::notify::tls-errors is emitted and the handler calls
     11        ResourceHandleClient::didFail() which can delete the ResourceHandle.
     12
     13        * platform/network/soup/ResourceHandleSoup.cpp:
     14        (WebCore::tlsErrorsChangedCallback): Protect the ResourceHandle
     15        for the scope of the callback because
     16        ResourceHandleClient::didFail() could delete the object.
     17
    1182016-02-03  Carlos Garcia Campos  <cgarcia@igalia.com>
    219
  • trunk/Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp

    r195450 r196061  
    339339static void tlsErrorsChangedCallback(SoupMessage* message, GParamSpec*, gpointer data)
    340340{
    341     ResourceHandle* handle = static_cast<ResourceHandle*>(data);
     341    RefPtr<ResourceHandle> handle = static_cast<ResourceHandle*>(data);
    342342    if (!handle || handle->cancelledOrClientless())
    343343        return;
    344344
    345     if (handleUnignoredTLSErrors(handle, message))
     345    if (handleUnignoredTLSErrors(handle.get(), message))
    346346        handle->cancel();
    347347}
Note: See TracChangeset for help on using the changeset viewer.