зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1315185 - Get rid of FileSystemFileEntry.createWriter, r=smaug
This commit is contained in:
Родитель
a7a38b8a5f
Коммит
6674864b91
|
@ -90,14 +90,6 @@ FileSystemFileEntry::GetFullPath(nsAString& aPath, ErrorResult& aRv) const
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
FileSystemFileEntry::CreateWriter(VoidCallback& aSuccessCallback,
|
||||
const Optional<OwningNonNull<ErrorCallback>>& aErrorCallback) const
|
||||
{
|
||||
ErrorCallbackHelper::Call(GetParentObject(), aErrorCallback,
|
||||
NS_ERROR_DOM_SECURITY_ERR);
|
||||
}
|
||||
|
||||
void
|
||||
FileSystemFileEntry::GetFile(FileCallback& aSuccessCallback,
|
||||
const Optional<OwningNonNull<ErrorCallback>>& aErrorCallback) const
|
||||
|
|
|
@ -41,10 +41,6 @@ public:
|
|||
virtual void
|
||||
GetFullPath(nsAString& aFullPath, ErrorResult& aRv) const override;
|
||||
|
||||
void
|
||||
CreateWriter(VoidCallback& aSuccessCallback,
|
||||
const Optional<OwningNonNull<ErrorCallback>>& aErrorCallback) const;
|
||||
|
||||
void
|
||||
GetFile(FileCallback& aSuccessCallback,
|
||||
const Optional<OwningNonNull<ErrorCallback>>& aErrorCallback) const;
|
||||
|
|
|
@ -71,15 +71,6 @@ function test_fileEntry_file() {
|
|||
});
|
||||
}
|
||||
|
||||
function test_fileEntry_createWriter() {
|
||||
fileEntry.createWriter(function(file) {
|
||||
ok(false, "Something when wrong!");
|
||||
}, function() {
|
||||
ok(true, "We don't support createWrite");
|
||||
next();
|
||||
});
|
||||
}
|
||||
|
||||
function test_fileEntry_getParent() {
|
||||
fileEntry.getParent(function(entry) {
|
||||
is(fileEntry.fullPath, entry.fullPath, "Top level FileEntry should return itself as parent.");
|
||||
|
@ -425,7 +416,6 @@ var tests = [
|
|||
|
||||
test_fileEntry,
|
||||
test_fileEntry_file,
|
||||
test_fileEntry_createWriter,
|
||||
test_fileEntry_getParent,
|
||||
|
||||
test_directoryEntry,
|
||||
|
|
|
@ -9,11 +9,6 @@ callback interface FileCallback {
|
|||
};
|
||||
|
||||
interface FileSystemFileEntry : FileSystemEntry {
|
||||
// the successCallback should be a FileWriteCallback but this method is not
|
||||
// implemented. ErrorCallback will be called with SecurityError.
|
||||
void createWriter (VoidCallback successCallback,
|
||||
optional ErrorCallback errorCallback);
|
||||
|
||||
[BinaryName="GetFile"]
|
||||
void file (FileCallback successCallback,
|
||||
optional ErrorCallback errorCallback);
|
||||
|
|
Загрузка…
Ссылка в новой задаче