From a1b20d709034d5fda346fbdb4b6b54da2b23cd69 Mon Sep 17 00:00:00 2001 From: "timeless@mozdev.org" Date: Sun, 16 Mar 2008 15:06:02 -0700 Subject: [PATCH] Bug 422445 WebBrowserPersist treats StartUpload failure as a readError r=biesi a=dsicore --- .../components/webbrowserpersist/src/nsWebBrowserPersist.cpp | 1 + 1 file changed, 1 insertion(+) 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; } }