| Index: Source/web/AssociatedURLLoader.cpp
|
| diff --git a/Source/web/AssociatedURLLoader.cpp b/Source/web/AssociatedURLLoader.cpp
|
| index fee82952f4800a6053c7457cc483c1c6d6556e75..c9d4fac1274fc75385c8f6b25c7f9003fb380731 100644
|
| --- a/Source/web/AssociatedURLLoader.cpp
|
| +++ b/Source/web/AssociatedURLLoader.cpp
|
| @@ -315,6 +315,7 @@ void AssociatedURLLoader::loadSynchronously(const WebURLRequest& request, WebURL
|
|
|
| void AssociatedURLLoader::loadAsynchronously(const WebURLRequest& request, WebURLLoaderClient* client)
|
| {
|
| + ASSERT(!m_loader);
|
| ASSERT(!m_client);
|
|
|
| m_client = client;
|
| @@ -355,7 +356,9 @@ void AssociatedURLLoader::loadAsynchronously(const WebURLRequest& request, WebUR
|
| Document* webcoreDocument = m_frameImpl->frame()->document();
|
| ASSERT(webcoreDocument);
|
| m_loader = DocumentThreadableLoader::create(*webcoreDocument, m_clientAdapter.get(), webcoreRequest, options, resourceLoaderOptions);
|
| - } else {
|
| + }
|
| +
|
| + if (!m_loader) {
|
| // FIXME: return meaningful error codes.
|
| m_clientAdapter->setDelayedError(ResourceError());
|
| }
|
|
|