Index: Source/modules/webdatabase/DatabaseContext.cpp |
diff --git a/Source/modules/webdatabase/DatabaseContext.cpp b/Source/modules/webdatabase/DatabaseContext.cpp |
index 27269775fd36ea4dd1b3c28b3f8d5b9368ae8893..89f9bca7818d520830cb9fccbb6d07ed40cb7f18 100644 |
--- a/Source/modules/webdatabase/DatabaseContext.cpp |
+++ b/Source/modules/webdatabase/DatabaseContext.cpp |
@@ -198,7 +198,7 @@ bool DatabaseContext::allowDatabaseAccess() const |
Document* document = toDocument(m_scriptExecutionContext); |
return document->page(); |
} |
- ASSERT(m_scriptExecutionContext->isWorkerContext()); |
+ ASSERT(m_scriptExecutionContext->isWorkerGlobalScope()); |
// allowDatabaseAccess is not yet implemented for workers. |
return true; |
} |