| Index: Source/modules/filesystem/WorkerGlobalScopeFileSystem.cpp
|
| diff --git a/Source/modules/filesystem/WorkerGlobalScopeFileSystem.cpp b/Source/modules/filesystem/WorkerGlobalScopeFileSystem.cpp
|
| index 3784e3330859a8e682a0d8a93f1b18f288e94f1d..88856cba08239ff5dafa83dd8916863a825c65bc 100644
|
| --- a/Source/modules/filesystem/WorkerGlobalScopeFileSystem.cpp
|
| +++ b/Source/modules/filesystem/WorkerGlobalScopeFileSystem.cpp
|
| @@ -28,7 +28,6 @@
|
| #include "config.h"
|
| #include "modules/filesystem/WorkerGlobalScopeFileSystem.h"
|
|
|
| -#include "bindings/v8/ExceptionMessages.h"
|
| #include "bindings/v8/ExceptionState.h"
|
| #include "core/dom/ExceptionCode.h"
|
| #include "core/fileapi/FileError.h"
|
| @@ -67,13 +66,13 @@ PassRefPtr<DOMFileSystemSync> WorkerGlobalScopeFileSystem::webkitRequestFileSyst
|
| {
|
| ExecutionContext* secureContext = worker->executionContext();
|
| if (!secureContext->securityOrigin()->canAccessFileSystem()) {
|
| - exceptionState.throwSecurityError(ExceptionMessages::failedToExecute("webkitRequestFileSystemSync", "WorkerGlobalScopeFileSystem", FileError::securityErrorMessage));
|
| + exceptionState.throwSecurityError(FileError::securityErrorMessage);
|
| return 0;
|
| }
|
|
|
| FileSystemType fileSystemType = static_cast<FileSystemType>(type);
|
| if (!DOMFileSystemBase::isValidType(fileSystemType)) {
|
| - exceptionState.throwDOMException(InvalidModificationError, ExceptionMessages::failedToExecute("webkitRequestFileSystemSync", "WorkerGlobalScopeFileSystem", "the type must be TEMPORARY or PERSISTENT."));
|
| + exceptionState.throwDOMException(InvalidModificationError, "the type must be TEMPORARY or PERSISTENT.");
|
| return 0;
|
| }
|
|
|
| @@ -107,12 +106,12 @@ PassRefPtr<EntrySync> WorkerGlobalScopeFileSystem::webkitResolveLocalFileSystemS
|
| KURL completedURL = worker->completeURL(url);
|
| ExecutionContext* secureContext = worker->executionContext();
|
| if (!secureContext->securityOrigin()->canAccessFileSystem() || !secureContext->securityOrigin()->canRequest(completedURL)) {
|
| - exceptionState.throwSecurityError(ExceptionMessages::failedToExecute("webkitResolveLocalFileSystemSyncURL", "WorkerGlobalScopeFileSystem", FileError::securityErrorMessage));
|
| + exceptionState.throwSecurityError(FileError::securityErrorMessage);
|
| return 0;
|
| }
|
|
|
| if (!completedURL.isValid()) {
|
| - exceptionState.throwDOMException(EncodingError, ExceptionMessages::failedToExecute("webkitResolveLocalFileSystemSyncURL", "WorkerGlobalScopeFileSystem", "the URL '" + url + "' is invalid."));
|
| + exceptionState.throwDOMException(EncodingError, "the URL '" + url + "' is invalid.");
|
| return 0;
|
| }
|
|
|
|
|