Index: third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp |
diff --git a/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp b/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp |
index 7912da9219e33ee88a953a1c4aea5bf2d8e0bedb..2865e71f4bb4217af141bcea0afff22fea64afde 100644 |
--- a/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp |
+++ b/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp |
@@ -921,12 +921,9 @@ void XMLHttpRequest::createRequest(PassRefPtr<EncodedFormData> httpBody, Excepti |
if (m_upload) |
request.setReportUploadProgress(true); |
- // ThreadableLoader::create can return null here, for example if we're no longer attached to a page. |
- // This is true while running onunload handlers. |
- // FIXME: Maybe we need to be able to send XMLHttpRequests from onunload, <http://bugs.webkit.org/show_bug.cgi?id=10904>. |
- // FIXME: Maybe create() can return null for other reasons too? |
ASSERT(!m_loader); |
- m_loader = ThreadableLoader::create(executionContext, this, request, options, resourceLoaderOptions); |
+ m_loader = ThreadableLoader::create(executionContext, this, options, resourceLoaderOptions); |
+ m_loader->start(request); |
return; |
} |