| Index: Source/modules/quota/StorageQuotaClient.cpp
|
| diff --git a/Source/modules/quota/StorageQuotaClient.cpp b/Source/modules/quota/StorageQuotaClient.cpp
|
| index 475be84d55d66f6261443cdba53abe7e0db124ee..bc178cd2ff801b3dfe296cee2a27e9c4d1758045 100644
|
| --- a/Source/modules/quota/StorageQuotaClient.cpp
|
| +++ b/Source/modules/quota/StorageQuotaClient.cpp
|
| @@ -43,6 +43,8 @@ const char* StorageQuotaClient::supplementName()
|
|
|
| StorageQuotaClient* StorageQuotaClient::from(ExecutionContext* context)
|
| {
|
| + if (!context->isDocument())
|
| + return 0;
|
| return static_cast<StorageQuotaClient*>(WillBeHeapSupplement<Page>::from(toDocument(context)->page(), supplementName()));
|
| }
|
|
|
|
|