Backed out changeset c32c74847eb6 (bug 1335539)
This commit is contained in:
@@ -82,8 +82,7 @@ FileCreatorHelper::CreateFileInternal(nsPIDOMWindowInner* aWindow,
|
||||
|
||||
RefPtr<BlobImpl> blobImpl;
|
||||
aRv = CreateBlobImpl(aFile, aBag.mType, aBag.mName, lastModifiedPassed,
|
||||
lastModified, aBag.mExistenceCheck, aIsFromNsIFile,
|
||||
getter_AddRefs(blobImpl));
|
||||
lastModified, aIsFromNsIFile, getter_AddRefs(blobImpl));
|
||||
if (aRv.Failed()) {
|
||||
return nullptr;
|
||||
}
|
||||
@@ -131,8 +130,7 @@ FileCreatorHelper::SendRequest(nsIFile* aFile,
|
||||
}
|
||||
|
||||
cc->FileCreationRequest(uuid, this, path, aBag.mType, aBag.mName,
|
||||
aBag.mLastModified, aBag.mExistenceCheck,
|
||||
aIsFromNsIFile);
|
||||
aBag.mLastModified, aIsFromNsIFile);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -153,7 +151,6 @@ FileCreatorHelper::CreateBlobImplForIPC(const nsAString& aPath,
|
||||
const nsAString& aName,
|
||||
bool aLastModifiedPassed,
|
||||
int64_t aLastModified,
|
||||
bool aExistenceCheck,
|
||||
bool aIsFromNsIFile,
|
||||
BlobImpl** aBlobImpl)
|
||||
{
|
||||
@@ -164,7 +161,7 @@ FileCreatorHelper::CreateBlobImplForIPC(const nsAString& aPath,
|
||||
}
|
||||
|
||||
return CreateBlobImpl(file, aType, aName, aLastModifiedPassed, aLastModified,
|
||||
aExistenceCheck, aIsFromNsIFile, aBlobImpl);
|
||||
aIsFromNsIFile, aBlobImpl);
|
||||
}
|
||||
|
||||
/* static */ nsresult
|
||||
@@ -173,29 +170,9 @@ FileCreatorHelper::CreateBlobImpl(nsIFile* aFile,
|
||||
const nsAString& aName,
|
||||
bool aLastModifiedPassed,
|
||||
int64_t aLastModified,
|
||||
bool aExistenceCheck,
|
||||
bool aIsFromNsIFile,
|
||||
BlobImpl** aBlobImpl)
|
||||
{
|
||||
if (!aExistenceCheck) {
|
||||
RefPtr<FileBlobImpl> impl = new FileBlobImpl(aFile);
|
||||
|
||||
if (!aName.IsEmpty()) {
|
||||
impl->SetName(aName);
|
||||
}
|
||||
|
||||
if (!aType.IsEmpty()) {
|
||||
impl->SetType(aType);
|
||||
}
|
||||
|
||||
if (aLastModifiedPassed) {
|
||||
impl->SetLastModified(aLastModified);
|
||||
}
|
||||
|
||||
impl.forget(aBlobImpl);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
RefPtr<MultipartBlobImpl> impl = new MultipartBlobImpl(EmptyString());
|
||||
nsresult rv =
|
||||
impl->InitializeChromeFile(aFile, aType, aName, aLastModifiedPassed,
|
||||
|
||||
Reference in New Issue
Block a user