Index: Source/modules/indexeddb/IDBFactory.cpp |
diff --git a/Source/modules/indexeddb/IDBFactory.cpp b/Source/modules/indexeddb/IDBFactory.cpp |
index 385a831eb022903621b1cfe163992786934f9b02..5801007aa06dd4c89e75c569b9c0d65193a52428 100644 |
--- a/Source/modules/indexeddb/IDBFactory.cpp |
+++ b/Source/modules/indexeddb/IDBFactory.cpp |
@@ -31,6 +31,7 @@ |
#include "bindings/core/v8/ExceptionState.h" |
#include "bindings/modules/v8/V8BindingForModules.h" |
+#include "core/dom/DOMException.h" |
#include "core/dom/Document.h" |
#include "core/dom/ExceptionCode.h" |
#include "modules/indexeddb/IDBDatabase.h" |
@@ -83,7 +84,7 @@ IDBRequest* IDBFactory::getDatabaseNames(ScriptState* scriptState, ExceptionStat |
IDBRequest* request = IDBRequest::create(scriptState, IDBAny::createNull(), nullptr); |
if (!m_permissionClient->allowIndexedDB(scriptState->executionContext(), "Database Listing")) { |
- request->onError(DOMError::create(UnknownError, permissionDeniedErrorMessage)); |
+ request->onError(DOMException::create(UnknownError, permissionDeniedErrorMessage)); |
return request; |
} |
@@ -117,7 +118,7 @@ IDBOpenDBRequest* IDBFactory::openInternal(ScriptState* scriptState, const Strin |
IDBOpenDBRequest* request = IDBOpenDBRequest::create(scriptState, databaseCallbacks, transactionId, version); |
if (!m_permissionClient->allowIndexedDB(scriptState->executionContext(), name)) { |
- request->onError(DOMError::create(UnknownError, permissionDeniedErrorMessage)); |
+ request->onError(DOMException::create(UnknownError, permissionDeniedErrorMessage)); |
return request; |
} |
@@ -145,7 +146,7 @@ IDBOpenDBRequest* IDBFactory::deleteDatabase(ScriptState* scriptState, const Str |
IDBOpenDBRequest* request = IDBOpenDBRequest::create(scriptState, nullptr, 0, IDBDatabaseMetadata::DefaultIntVersion); |
if (!m_permissionClient->allowIndexedDB(scriptState->executionContext(), name)) { |
- request->onError(DOMError::create(UnknownError, permissionDeniedErrorMessage)); |
+ request->onError(DOMException::create(UnknownError, permissionDeniedErrorMessage)); |
return request; |
} |