| Index: Source/web/WebLocalFrameImpl.cpp
|
| diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
|
| index e06ecff1eafe1df066479e45aa3588a14eeb1793..ec60aee28aa13546e3130623e7b9757b6208327d 100644
|
| --- a/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/Source/web/WebLocalFrameImpl.cpp
|
| @@ -874,9 +874,12 @@ void WebLocalFrameImpl::loadData(const WebData& data, const WebString& mimeType,
|
| // unreachableURL informs FrameLoader::reload to load unreachableURL
|
| // instead of the currently loaded URL.
|
| ResourceRequest request;
|
| - if (replace && !unreachableURL.isEmpty() && frame()->loader().provisionalDocumentLoader())
|
| + if (replace && !unreachableURL.isEmpty() && frame()->loader().provisionalDocumentLoader()) {
|
| request = frame()->loader().provisionalDocumentLoader()->originalRequest();
|
| - request.setURL(baseURL);
|
| + request.setURL(baseURL);
|
| + } else {
|
| + request = ResourceRequest(baseURL, !this->parent());
|
| + }
|
|
|
| FrameLoadRequest frameRequest(0, request, SubstituteData(data, mimeType, textEncoding, unreachableURL));
|
| ASSERT(frameRequest.substituteData().isValid());
|
|
|