2015-05-03 22:32:37 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2014-03-05 12:40:48 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#include "CreateFileTask.h"
|
|
|
|
|
|
|
|
#include <algorithm>
|
|
|
|
|
|
|
|
#include "mozilla/Preferences.h"
|
2014-10-08 20:15:23 +04:00
|
|
|
#include "mozilla/dom/File.h"
|
2014-03-05 12:40:48 +04:00
|
|
|
#include "mozilla/dom/FileSystemBase.h"
|
|
|
|
#include "mozilla/dom/FileSystemUtils.h"
|
2016-04-09 21:17:02 +03:00
|
|
|
#include "mozilla/dom/PFileSystemParams.h"
|
2014-03-05 12:40:48 +04:00
|
|
|
#include "mozilla/dom/Promise.h"
|
2014-09-27 03:21:57 +04:00
|
|
|
#include "mozilla/dom/ipc/BlobChild.h"
|
|
|
|
#include "mozilla/dom/ipc/BlobParent.h"
|
2016-04-09 21:17:02 +03:00
|
|
|
#include "mozilla/ipc/BackgroundChild.h"
|
|
|
|
#include "mozilla/ipc/PBackgroundChild.h"
|
2014-03-05 12:40:48 +04:00
|
|
|
#include "nsIFile.h"
|
|
|
|
#include "nsNetUtil.h"
|
2015-07-07 05:17:00 +03:00
|
|
|
#include "nsIOutputStream.h"
|
2014-03-05 12:40:48 +04:00
|
|
|
#include "nsStringGlue.h"
|
|
|
|
|
2016-04-09 21:17:02 +03:00
|
|
|
#define GET_PERMISSION_ACCESS_TYPE(aAccess) \
|
|
|
|
if (mReplace) { \
|
2016-04-13 14:15:56 +03:00
|
|
|
aAccess.AssignLiteral(DIRECTORY_WRITE_PERMISSION); \
|
2016-04-09 21:17:02 +03:00
|
|
|
return; \
|
|
|
|
} \
|
2016-04-13 14:15:56 +03:00
|
|
|
aAccess.AssignLiteral(DIRECTORY_CREATE_PERMISSION);
|
2016-04-09 21:17:02 +03:00
|
|
|
|
2014-03-05 12:40:48 +04:00
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2016-04-09 21:17:02 +03:00
|
|
|
/**
|
2016-04-09 21:17:28 +03:00
|
|
|
*CreateFileTaskChild
|
2016-04-09 21:17:02 +03:00
|
|
|
*/
|
2014-03-05 12:40:48 +04:00
|
|
|
|
2016-04-09 21:17:28 +03:00
|
|
|
/* static */ already_AddRefed<CreateFileTaskChild>
|
|
|
|
CreateFileTaskChild::Create(FileSystemBase* aFileSystem,
|
|
|
|
nsIFile* aTargetPath,
|
|
|
|
Blob* aBlobData,
|
|
|
|
InfallibleTArray<uint8_t>& aArrayData,
|
|
|
|
bool aReplace,
|
|
|
|
ErrorResult& aRv)
|
2014-03-05 12:40:48 +04:00
|
|
|
{
|
|
|
|
MOZ_ASSERT(NS_IsMainThread(), "Only call on main thread!");
|
|
|
|
MOZ_ASSERT(aFileSystem);
|
2016-03-20 13:56:10 +03:00
|
|
|
|
2016-04-09 21:17:28 +03:00
|
|
|
RefPtr<CreateFileTaskChild> task =
|
|
|
|
new CreateFileTaskChild(aFileSystem, aTargetPath, aReplace);
|
2016-03-20 13:56:10 +03:00
|
|
|
|
|
|
|
// aTargetPath can be null. In this case SetError will be called.
|
|
|
|
|
2014-08-18 08:00:06 +04:00
|
|
|
if (aBlobData) {
|
2016-04-09 21:17:02 +03:00
|
|
|
task->mBlobImpl = aBlobData->Impl();
|
2014-03-05 12:40:48 +04:00
|
|
|
}
|
2016-03-20 13:56:10 +03:00
|
|
|
|
|
|
|
task->mArrayData.SwapElements(aArrayData);
|
|
|
|
|
2014-03-05 12:40:48 +04:00
|
|
|
nsCOMPtr<nsIGlobalObject> globalObject =
|
2016-03-20 13:56:10 +03:00
|
|
|
do_QueryInterface(aFileSystem->GetParentObject());
|
2016-03-20 13:56:10 +03:00
|
|
|
if (NS_WARN_IF(!globalObject)) {
|
|
|
|
aRv.Throw(NS_ERROR_FAILURE);
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
task->mPromise = Promise::Create(globalObject, aRv);
|
|
|
|
if (NS_WARN_IF(aRv.Failed())) {
|
|
|
|
return nullptr;
|
2014-03-05 12:40:48 +04:00
|
|
|
}
|
2016-03-20 13:56:10 +03:00
|
|
|
|
|
|
|
return task.forget();
|
2014-03-05 12:40:48 +04:00
|
|
|
}
|
|
|
|
|
2016-04-09 21:17:28 +03:00
|
|
|
CreateFileTaskChild::CreateFileTaskChild(FileSystemBase* aFileSystem,
|
|
|
|
nsIFile* aTargetPath,
|
|
|
|
bool aReplace)
|
|
|
|
: FileSystemTaskChildBase(aFileSystem)
|
2016-03-20 13:56:10 +03:00
|
|
|
, mTargetPath(aTargetPath)
|
|
|
|
, mReplace(aReplace)
|
|
|
|
{
|
|
|
|
MOZ_ASSERT(NS_IsMainThread(), "Only call on main thread!");
|
|
|
|
MOZ_ASSERT(aFileSystem);
|
|
|
|
}
|
|
|
|
|
2016-04-09 21:17:28 +03:00
|
|
|
CreateFileTaskChild::~CreateFileTaskChild()
|
2014-03-05 12:40:48 +04:00
|
|
|
{
|
2016-04-09 21:17:02 +03:00
|
|
|
MOZ_ASSERT(NS_IsMainThread());
|
2014-03-05 12:40:48 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
already_AddRefed<Promise>
|
2016-04-09 21:17:28 +03:00
|
|
|
CreateFileTaskChild::GetPromise()
|
2014-03-05 12:40:48 +04:00
|
|
|
{
|
|
|
|
MOZ_ASSERT(NS_IsMainThread(), "Only call on main thread!");
|
2015-10-18 08:24:48 +03:00
|
|
|
return RefPtr<Promise>(mPromise).forget();
|
2014-03-05 12:40:48 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
FileSystemParams
|
2016-04-09 21:17:28 +03:00
|
|
|
CreateFileTaskChild::GetRequestParams(const nsString& aSerializedDOMPath,
|
|
|
|
ErrorResult& aRv) const
|
2014-03-05 12:40:48 +04:00
|
|
|
{
|
|
|
|
MOZ_ASSERT(NS_IsMainThread(), "Only call on main thread!");
|
|
|
|
FileSystemCreateFileParams param;
|
2016-03-20 13:56:10 +03:00
|
|
|
param.filesystem() = aSerializedDOMPath;
|
|
|
|
|
|
|
|
aRv = mTargetPath->GetPath(param.realPath());
|
|
|
|
if (NS_WARN_IF(aRv.Failed())) {
|
|
|
|
return param;
|
|
|
|
}
|
|
|
|
|
2016-04-09 21:17:02 +03:00
|
|
|
// If we are here, PBackground must be up and running: this method is called
|
|
|
|
// when the task has been already started by FileSystemPermissionRequest
|
|
|
|
// class and this happens only when PBackground actor has already been
|
|
|
|
// created.
|
|
|
|
PBackgroundChild* actor =
|
|
|
|
mozilla::ipc::BackgroundChild::GetForCurrentThread();
|
|
|
|
MOZ_ASSERT(actor);
|
|
|
|
|
2014-03-05 12:40:48 +04:00
|
|
|
param.replace() = mReplace;
|
2016-04-09 21:17:02 +03:00
|
|
|
if (mBlobImpl) {
|
|
|
|
PBlobChild* blobActor =
|
|
|
|
mozilla::ipc::BackgroundChild::GetOrCreateActorForBlobImpl(actor,
|
|
|
|
mBlobImpl);
|
|
|
|
if (blobActor) {
|
|
|
|
param.data() = blobActor;
|
2014-03-05 12:40:48 +04:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
param.data() = mArrayData;
|
|
|
|
}
|
|
|
|
return param;
|
|
|
|
}
|
|
|
|
|
2016-04-09 21:17:02 +03:00
|
|
|
void
|
2016-04-09 21:17:28 +03:00
|
|
|
CreateFileTaskChild::SetSuccessRequestResult(const FileSystemResponseValue& aValue,
|
|
|
|
ErrorResult& aRv)
|
2014-03-05 12:40:48 +04:00
|
|
|
{
|
|
|
|
MOZ_ASSERT(NS_IsMainThread(), "Only call on main thread!");
|
2016-04-09 21:15:50 +03:00
|
|
|
|
2016-04-09 21:17:02 +03:00
|
|
|
const FileSystemFileResponse& r = aValue.get_FileSystemFileResponse();
|
|
|
|
|
2017-02-01 09:33:18 +03:00
|
|
|
mBlobImpl = static_cast<BlobChild*>(r.blobChild())->GetBlobImpl();
|
|
|
|
MOZ_ASSERT(mBlobImpl);
|
2014-03-05 12:40:48 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2016-04-09 21:17:28 +03:00
|
|
|
CreateFileTaskChild::HandlerCallback()
|
2014-03-05 12:40:48 +04:00
|
|
|
{
|
|
|
|
MOZ_ASSERT(NS_IsMainThread(), "Only call on main thread!");
|
2016-04-09 21:15:50 +03:00
|
|
|
|
2016-04-09 21:17:02 +03:00
|
|
|
if (mFileSystem->IsShutdown()) {
|
|
|
|
mPromise = nullptr;
|
2016-04-09 21:15:50 +03:00
|
|
|
return;
|
|
|
|
}
|
2016-04-09 21:17:02 +03:00
|
|
|
|
|
|
|
if (HasError()) {
|
|
|
|
mPromise->MaybeReject(mErrorValue);
|
|
|
|
mPromise = nullptr;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2017-02-01 09:33:18 +03:00
|
|
|
RefPtr<File> file = File::Create(mFileSystem->GetParentObject(), mBlobImpl);
|
2016-04-09 21:17:02 +03:00
|
|
|
mPromise->MaybeResolve(file);
|
2017-02-01 09:33:18 +03:00
|
|
|
|
|
|
|
mBlobImpl = nullptr;
|
2016-04-09 21:17:02 +03:00
|
|
|
mPromise = nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2016-04-09 21:17:28 +03:00
|
|
|
CreateFileTaskChild::GetPermissionAccessType(nsCString& aAccess) const
|
2016-04-09 21:17:02 +03:00
|
|
|
{
|
|
|
|
GET_PERMISSION_ACCESS_TYPE(aAccess)
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* CreateFileTaskParent
|
|
|
|
*/
|
|
|
|
|
|
|
|
uint32_t CreateFileTaskParent::sOutputBufferSize = 0;
|
|
|
|
|
|
|
|
/* static */ already_AddRefed<CreateFileTaskParent>
|
|
|
|
CreateFileTaskParent::Create(FileSystemBase* aFileSystem,
|
|
|
|
const FileSystemCreateFileParams& aParam,
|
|
|
|
FileSystemRequestParent* aParent,
|
|
|
|
ErrorResult& aRv)
|
|
|
|
{
|
|
|
|
MOZ_ASSERT(XRE_IsParentProcess(), "Only call from parent process!");
|
|
|
|
AssertIsOnBackgroundThread();
|
|
|
|
MOZ_ASSERT(aFileSystem);
|
|
|
|
|
|
|
|
RefPtr<CreateFileTaskParent> task =
|
|
|
|
new CreateFileTaskParent(aFileSystem, aParam, aParent);
|
|
|
|
|
2017-01-18 06:48:29 +03:00
|
|
|
aRv = NS_NewLocalFile(aParam.realPath(), true,
|
|
|
|
getter_AddRefs(task->mTargetPath));
|
2016-04-09 21:17:02 +03:00
|
|
|
if (NS_WARN_IF(aRv.Failed())) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
task->mReplace = aParam.replace();
|
|
|
|
|
|
|
|
const FileSystemFileDataValue& data = aParam.data();
|
|
|
|
|
|
|
|
if (data.type() == FileSystemFileDataValue::TArrayOfuint8_t) {
|
|
|
|
task->mArrayData = data;
|
|
|
|
return task.forget();
|
|
|
|
}
|
|
|
|
|
|
|
|
MOZ_ASSERT(data.type() == FileSystemFileDataValue::TPBlobParent);
|
|
|
|
|
|
|
|
BlobParent* bp = static_cast<BlobParent*>(static_cast<PBlobParent*>(data));
|
|
|
|
task->mBlobImpl = bp->GetBlobImpl();
|
|
|
|
MOZ_ASSERT(task->mBlobImpl, "blobData should not be null.");
|
|
|
|
|
|
|
|
return task.forget();
|
|
|
|
}
|
|
|
|
|
|
|
|
CreateFileTaskParent::CreateFileTaskParent(FileSystemBase* aFileSystem,
|
|
|
|
const FileSystemCreateFileParams& aParam,
|
|
|
|
FileSystemRequestParent* aParent)
|
|
|
|
: FileSystemTaskParentBase(aFileSystem, aParam, aParent)
|
|
|
|
, mReplace(false)
|
|
|
|
{
|
|
|
|
MOZ_ASSERT(XRE_IsParentProcess(), "Only call from parent process!");
|
|
|
|
AssertIsOnBackgroundThread();
|
|
|
|
MOZ_ASSERT(aFileSystem);
|
|
|
|
}
|
|
|
|
|
|
|
|
FileSystemResponseValue
|
|
|
|
CreateFileTaskParent::GetSuccessRequestResult(ErrorResult& aRv) const
|
|
|
|
{
|
|
|
|
AssertIsOnBackgroundThread();
|
|
|
|
|
2017-02-01 09:33:18 +03:00
|
|
|
RefPtr<BlobImpl> blobImpl = new BlobImplFile(mTargetPath);
|
|
|
|
BlobParent* blobParent =
|
|
|
|
BlobParent::GetOrCreate(mRequestParent->Manager(), blobImpl);
|
|
|
|
return FileSystemFileResponse(blobParent, nullptr);
|
2014-03-05 12:40:48 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
nsresult
|
2016-04-09 21:17:02 +03:00
|
|
|
CreateFileTaskParent::IOWork()
|
2014-03-05 12:40:48 +04:00
|
|
|
{
|
2016-03-20 13:56:10 +03:00
|
|
|
class MOZ_RAII AutoClose final
|
2014-03-05 12:40:48 +04:00
|
|
|
{
|
|
|
|
public:
|
2014-09-02 02:26:43 +04:00
|
|
|
explicit AutoClose(nsIOutputStream* aStream)
|
2014-03-05 12:40:48 +04:00
|
|
|
: mStream(aStream)
|
|
|
|
{
|
|
|
|
MOZ_ASSERT(aStream);
|
|
|
|
}
|
|
|
|
|
|
|
|
~AutoClose()
|
|
|
|
{
|
|
|
|
mStream->Close();
|
|
|
|
}
|
2016-03-20 13:56:10 +03:00
|
|
|
|
2014-03-05 12:40:48 +04:00
|
|
|
private:
|
|
|
|
nsCOMPtr<nsIOutputStream> mStream;
|
|
|
|
};
|
|
|
|
|
2015-07-04 04:29:00 +03:00
|
|
|
MOZ_ASSERT(XRE_IsParentProcess(),
|
2014-03-05 12:40:48 +04:00
|
|
|
"Only call from parent process!");
|
|
|
|
MOZ_ASSERT(!NS_IsMainThread(), "Only call on worker thread!");
|
|
|
|
|
|
|
|
if (mFileSystem->IsShutdown()) {
|
|
|
|
return NS_ERROR_FAILURE;
|
|
|
|
}
|
|
|
|
|
2016-03-20 13:56:10 +03:00
|
|
|
if (!mFileSystem->IsSafeFile(mTargetPath)) {
|
2014-03-05 12:40:48 +04:00
|
|
|
return NS_ERROR_DOM_SECURITY_ERR;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool exists = false;
|
2016-03-20 13:56:10 +03:00
|
|
|
nsresult rv = mTargetPath->Exists(&exists);
|
2014-03-05 12:40:48 +04:00
|
|
|
if (NS_WARN_IF(NS_FAILED(rv))) {
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (exists) {
|
|
|
|
bool isFile = false;
|
2016-03-20 13:56:10 +03:00
|
|
|
rv = mTargetPath->IsFile(&isFile);
|
2014-03-05 12:40:48 +04:00
|
|
|
if (NS_WARN_IF(NS_FAILED(rv))) {
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!isFile) {
|
|
|
|
return NS_ERROR_DOM_FILESYSTEM_TYPE_MISMATCH_ERR;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!mReplace) {
|
|
|
|
return NS_ERROR_DOM_FILESYSTEM_PATH_EXISTS_ERR;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Remove the old file before creating.
|
2016-03-20 13:56:10 +03:00
|
|
|
rv = mTargetPath->Remove(false);
|
2014-03-05 12:40:48 +04:00
|
|
|
if (NS_WARN_IF(NS_FAILED(rv))) {
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-20 13:56:10 +03:00
|
|
|
rv = mTargetPath->Create(nsIFile::NORMAL_FILE_TYPE, 0600);
|
2014-03-05 12:40:48 +04:00
|
|
|
if (NS_WARN_IF(NS_FAILED(rv))) {
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
|
|
|
nsCOMPtr<nsIOutputStream> outputStream;
|
2016-03-20 13:56:10 +03:00
|
|
|
rv = NS_NewLocalFileOutputStream(getter_AddRefs(outputStream), mTargetPath);
|
2014-03-05 12:40:48 +04:00
|
|
|
if (NS_WARN_IF(NS_FAILED(rv))) {
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
|
|
|
AutoClose acOutputStream(outputStream);
|
2016-04-09 21:17:02 +03:00
|
|
|
MOZ_ASSERT(sOutputBufferSize);
|
2014-03-05 12:40:48 +04:00
|
|
|
|
|
|
|
nsCOMPtr<nsIOutputStream> bufferedOutputStream;
|
|
|
|
rv = NS_NewBufferedOutputStream(getter_AddRefs(bufferedOutputStream),
|
|
|
|
outputStream,
|
|
|
|
sOutputBufferSize);
|
|
|
|
if (NS_WARN_IF(NS_FAILED(rv))) {
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
|
|
|
AutoClose acBufferedOutputStream(bufferedOutputStream);
|
|
|
|
|
2016-04-09 21:17:02 +03:00
|
|
|
// Write the file content from blob data.
|
|
|
|
if (mBlobImpl) {
|
|
|
|
ErrorResult error;
|
|
|
|
nsCOMPtr<nsIInputStream> blobStream;
|
|
|
|
mBlobImpl->GetInternalStream(getter_AddRefs(blobStream), error);
|
|
|
|
if (NS_WARN_IF(error.Failed())) {
|
|
|
|
return error.StealNSResult();
|
|
|
|
}
|
2014-03-05 12:40:48 +04:00
|
|
|
|
|
|
|
uint64_t bufSize = 0;
|
2016-04-09 21:17:02 +03:00
|
|
|
rv = blobStream->Available(&bufSize);
|
2014-03-05 12:40:48 +04:00
|
|
|
if (NS_WARN_IF(NS_FAILED(rv))) {
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
|
|
|
while (bufSize && !mFileSystem->IsShutdown()) {
|
|
|
|
uint32_t written = 0;
|
|
|
|
uint32_t writeSize = bufSize < UINT32_MAX ? bufSize : UINT32_MAX;
|
2016-04-09 21:17:02 +03:00
|
|
|
rv = bufferedOutputStream->WriteFrom(blobStream, writeSize, &written);
|
2014-03-05 12:40:48 +04:00
|
|
|
if (NS_WARN_IF(NS_FAILED(rv))) {
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
bufSize -= written;
|
|
|
|
}
|
|
|
|
|
2016-04-09 21:17:02 +03:00
|
|
|
blobStream->Close();
|
2014-03-05 12:40:48 +04:00
|
|
|
|
|
|
|
if (mFileSystem->IsShutdown()) {
|
|
|
|
return NS_ERROR_FAILURE;
|
|
|
|
}
|
|
|
|
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Write file content from array data.
|
|
|
|
|
|
|
|
uint32_t written;
|
|
|
|
rv = bufferedOutputStream->Write(
|
|
|
|
reinterpret_cast<char*>(mArrayData.Elements()),
|
|
|
|
mArrayData.Length(),
|
|
|
|
&written);
|
|
|
|
if (NS_WARN_IF(NS_FAILED(rv))) {
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (mArrayData.Length() != written) {
|
|
|
|
return NS_ERROR_DOM_FILESYSTEM_UNKNOWN_ERR;
|
|
|
|
}
|
|
|
|
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2016-04-09 21:17:02 +03:00
|
|
|
nsresult
|
|
|
|
CreateFileTaskParent::MainThreadWork()
|
2014-03-05 12:40:48 +04:00
|
|
|
{
|
2016-04-09 21:17:02 +03:00
|
|
|
MOZ_ASSERT(NS_IsMainThread());
|
2014-03-05 12:40:48 +04:00
|
|
|
|
2016-04-09 21:17:02 +03:00
|
|
|
if (!sOutputBufferSize) {
|
|
|
|
sOutputBufferSize =
|
|
|
|
mozilla::Preferences::GetUint("dom.filesystem.outputBufferSize", 4096 * 4);
|
2014-03-05 12:40:48 +04:00
|
|
|
}
|
|
|
|
|
2016-04-09 21:17:02 +03:00
|
|
|
return FileSystemTaskParentBase::MainThreadWork();
|
2014-03-05 12:40:48 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2016-04-09 21:17:02 +03:00
|
|
|
CreateFileTaskParent::GetPermissionAccessType(nsCString& aAccess) const
|
2014-03-05 12:40:48 +04:00
|
|
|
{
|
2016-04-09 21:17:02 +03:00
|
|
|
GET_PERMISSION_ACCESS_TYPE(aAccess)
|
2014-03-05 12:40:48 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|