| Index: third_party/WebKit/Source/core/loader/DocumentLoader.cpp
|
| diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
|
| index 2c84b0d65a9e036b1930a676de24699d396ab9b7..78fd7d1e69c41a5a4fbfb6150ef29e9122ff780f 100644
|
| --- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
|
| @@ -219,7 +219,8 @@ void DocumentLoader::mainReceivedError(const ResourceError& error)
|
| if (!frameLoader())
|
| return;
|
| m_mainDocumentError = error;
|
| - m_state = MainResourceDone;
|
| + if (m_state < MainResourceDone)
|
| + m_state = MainResourceDone;
|
| frameLoader()->receivedMainResourceError(this, error);
|
| clearMainResourceHandle();
|
| }
|
|
|