summaryrefslogtreecommitdiffstats
path: root/WebCore/storage/IDBFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/storage/IDBFactory.cpp')
-rw-r--r--WebCore/storage/IDBFactory.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/WebCore/storage/IDBFactory.cpp b/WebCore/storage/IDBFactory.cpp
index d3a83a5..06c06ea 100644
--- a/WebCore/storage/IDBFactory.cpp
+++ b/WebCore/storage/IDBFactory.cpp
@@ -29,16 +29,19 @@
#include "config.h"
#include "IDBFactory.h"
+#if ENABLE(INDEXED_DATABASE)
+
#include "DOMStringList.h"
#include "Document.h"
#include "ExceptionCode.h"
#include "Frame.h"
+#include "GroupSettings.h"
#include "IDBDatabase.h"
#include "IDBFactoryBackendInterface.h"
#include "IDBKeyRange.h"
#include "IDBRequest.h"
-
-#if ENABLE(INDEXED_DATABASE)
+#include "Page.h"
+#include "PageGroup.h"
namespace WebCore {
@@ -61,11 +64,11 @@ PassRefPtr<IDBRequest> IDBFactory::open(ScriptExecutionContext* context, const S
}
Document* document = static_cast<Document*>(context);
- if (!document->frame())
+ if (!document->frame() || !document->page())
return 0;
RefPtr<IDBRequest> request = IDBRequest::create(document, IDBAny::create(this));
- m_factoryBackend->open(name, description, request, document->securityOrigin(), document->frame());
+ m_factoryBackend->open(name, description, request, document->securityOrigin(), document->frame(), document->page()->group().groupSettings()->indexedDBDatabasePath());
return request;
}