diff --git a/embedding/components/webbrowserpersist/src/nsWebBrowserPersist.cpp b/embedding/components/webbrowserpersist/src/nsWebBrowserPersist.cpp index 3d3076344532..3fea51ecdc6e 100644 --- a/embedding/components/webbrowserpersist/src/nsWebBrowserPersist.cpp +++ b/embedding/components/webbrowserpersist/src/nsWebBrowserPersist.cpp @@ -914,6 +914,7 @@ NS_IMETHODIMP nsWebBrowserPersist::OnDataAvailable( rv = StartUpload(storStream, data->mFile, contentType); if (NS_FAILED(rv)) { + readError = PR_FALSE; cancel = PR_TRUE; } }