Bug 422445 WebBrowserPersist treats StartUpload failure as a readError r=biesi a=dsicore
authortimeless@mozdev.org
Sun, 16 Mar 2008 15:06:02 -0700
changeset 13155 477b39c34d7dc4bbaa47ce8268fa65f0f14d725a
parent 13154 9a242d85cbb4a2a009f0825064f3183e0d4a77dd
child 13156 9403ce124d33366d7126e59fc40bc9bcb5f007a5
push idunknown
push userunknown
push dateunknown
reviewersbiesi, dsicore
bugs422445
milestone1.9b5pre
Bug 422445 WebBrowserPersist treats StartUpload failure as a readError r=biesi a=dsicore
embedding/components/webbrowserpersist/src/nsWebBrowserPersist.cpp
--- a/embedding/components/webbrowserpersist/src/nsWebBrowserPersist.cpp
+++ b/embedding/components/webbrowserpersist/src/nsWebBrowserPersist.cpp
@@ -909,16 +909,17 @@ NS_IMETHODIMP nsWebBrowserPersist::OnDat
                 nsCOMPtr<nsIStorageStream> storStream(do_QueryInterface(data->mStream));
                 if (storStream)
                 {
                     data->mStream->Close();
                     data->mStream = nsnull; // null out stream so we don't close it later
                     rv = StartUpload(storStream, data->mFile, contentType);
                     if (NS_FAILED(rv))
                     {
+                        readError = PR_FALSE;
                         cancel = PR_TRUE;
                     }
                 }
             }
         }
 
         // Notify listener if an error occurred.
         if (cancel)