Backout revisions 4287533203fb and 96a3ebfe09d8 (bug 1159401) for bustage.
CLOSED TREE
This commit is contained in:
@@ -555,9 +555,9 @@ HTMLCanvasElement::ToBlob(JSContext* aCx,
|
||||
, mFileCallback(aCallback) {}
|
||||
|
||||
// This is called on main thread.
|
||||
nsresult ReceiveBlob(already_AddRefed<Blob> aBlob)
|
||||
nsresult ReceiveBlob(already_AddRefed<File> aBlob)
|
||||
{
|
||||
nsRefPtr<Blob> blob = aBlob;
|
||||
nsRefPtr<File> blob = aBlob;
|
||||
uint64_t size;
|
||||
nsresult rv = blob->GetSize(&size);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
@@ -567,7 +567,7 @@ HTMLCanvasElement::ToBlob(JSContext* aCx,
|
||||
}
|
||||
}
|
||||
|
||||
nsRefPtr<Blob> newBlob = Blob::Create(mGlobal, blob->Impl());
|
||||
nsRefPtr<File> newBlob = new File(mGlobal, blob->Impl());
|
||||
|
||||
mozilla::ErrorResult error;
|
||||
mFileCallback->Call(*newBlob, error);
|
||||
|
||||
Reference in New Issue
Block a user