Changeset 116117 in webkit


Ignore:
Timestamp:
May 4, 2012 10:12:28 AM (12 years ago)
Author:
danw@gnome.org
Message:
[GTK] ASSERTION FAILED: shouldLoadAsEmptyDocument(r.url())

!defersLoading() in MainResourceLoader.cpp:382

Remove a soup_session_pause_message() call that got left behind,
update the defersLoading stuff to handle this case.

https://bugs.webkit.org/show_bug.cgi?id=85159

Reviewed by Martin Robinson.

No new tests. Now passes loader/load-defer-resume-crash.html under
debug build.

  • platform/network/soup/ResourceHandleSoup.cpp:

(WebCore::sendRequestCallback):
(WebCore::ResourceHandle::platformSetDefersLoading):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r116114 r116117  
     12012-05-04  Dan Winship  <danw@gnome.org>
     2
     3        [GTK] ASSERTION FAILED: shouldLoadAsEmptyDocument(r.url()) ||
     4        !defersLoading() in MainResourceLoader.cpp:382
     5
     6        Remove a soup_session_pause_message() call that got left behind,
     7        update the defersLoading stuff to handle this case.
     8
     9        https://bugs.webkit.org/show_bug.cgi?id=85159
     10
     11        Reviewed by Martin Robinson.
     12
     13        No new tests. Now passes loader/load-defer-resume-crash.html under
     14        debug build.
     15
     16        * platform/network/soup/ResourceHandleSoup.cpp:
     17        (WebCore::sendRequestCallback):
     18        (WebCore::ResourceHandle::platformSetDefersLoading):
     19
    1202012-05-03  Martin Robinson  <mrobinson@igalia.com>
    221
  • trunk/Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp

    r114980 r116117  
    341341    }
    342342
     343    if (d->m_defersLoading) {
     344        d->m_deferredResult = res;
     345        return;
     346    }
     347
    343348#if ENABLE(WEB_TIMING)
    344349    if (d->m_response.resourceLoadTiming())
     
    363368        }
    364369        d->m_response.updateFromSoupMessage(soupMessage);
    365 
    366         if (d->m_defersLoading)
    367             soup_session_pause_message(d->soupSession(), soupMessage);
    368370    } else {
    369371        d->m_response.setURL(handle->firstRequest().url());
     
    752754    if (d->m_deferredResult) {
    753755        GRefPtr<GAsyncResult> asyncResult = adoptGRef(d->m_deferredResult.leakRef());
    754         readCallback(G_OBJECT(d->m_inputStream.get()), asyncResult.get(), this);
     756
     757        if (d->m_inputStream)
     758            readCallback(G_OBJECT(d->m_inputStream.get()), asyncResult.get(), this);
     759        else
     760            sendRequestCallback(G_OBJECT(d->m_soupRequest.get()), asyncResult.get(), this);
    755761    }
    756762}
Note: See TracChangeset for help on using the changeset viewer.