| Index: Source/modules/webdatabase/DatabaseContext.cpp
|
| diff --git a/Source/modules/webdatabase/DatabaseContext.cpp b/Source/modules/webdatabase/DatabaseContext.cpp
|
| index 854b7f47dfdd036fd19d24cb87edfee8bfb214cd..e71ad4be09f23ff0977714e6de552ed1c5082380 100644
|
| --- a/Source/modules/webdatabase/DatabaseContext.cpp
|
| +++ b/Source/modules/webdatabase/DatabaseContext.cpp
|
| @@ -204,9 +204,7 @@ bool DatabaseContext::allowDatabaseAccess() const
|
| {
|
| if (m_scriptExecutionContext->isDocument()) {
|
| Document* document = toDocument(m_scriptExecutionContext);
|
| - if (!document->page() || (document->page()->settings()->privateBrowsingEnabled() && !SchemeRegistry::allowsDatabaseAccessInPrivateBrowsing(document->securityOrigin()->protocol())))
|
| - return false;
|
| - return true;
|
| + return document->page();
|
| }
|
| ASSERT(m_scriptExecutionContext->isWorkerContext());
|
| // allowDatabaseAccess is not yet implemented for workers.
|
|
|