Index: WebCore/inspector/InspectorDOMStorageResource.cpp |
=================================================================== |
--- WebCore/inspector/InspectorDOMStorageResource.cpp (revision 70578) |
+++ WebCore/inspector/InspectorDOMStorageResource.cpp (working copy) |
@@ -100,7 +100,9 @@ |
void InspectorDOMStorageResource::handleEvent(ScriptExecutionContext*, Event* event) |
{ |
ASSERT(m_frontend); |
- ASSERT(eventNames().storageEvent == event->type()); |
+ if (event->type() != eventNames().storageEvent || !event->isStorageEvent()) |
+ return; |
+ |
StorageEvent* storageEvent = static_cast<StorageEvent*>(event); |
Storage* storage = storageEvent->storageArea(); |
ExceptionCode ec = 0; |