Index: Source/core/timing/Performance.cpp |
diff --git a/Source/core/timing/Performance.cpp b/Source/core/timing/Performance.cpp |
index 03375719a1fd5fded3fbbd5ff929331ab762dc7a..f3decc441656b93385a8321bf7d2773d642f2ba7 100644 |
--- a/Source/core/timing/Performance.cpp |
+++ b/Source/core/timing/Performance.cpp |
@@ -48,10 +48,9 @@ static const size_t defaultResourceTimingBufferSize = 150; |
Performance::Performance(LocalFrame* frame) |
: DOMWindowProperty(frame) |
, m_resourceTimingBufferSize(defaultResourceTimingBufferSize) |
- , m_referenceTime(frame->document()->loader()->timing()->referenceMonotonicTime()) |
+ , m_referenceTime(frame->host() ? frame->document()->loader()->timing()->referenceMonotonicTime() : 0.0) |
, m_userTiming(nullptr) |
{ |
- ASSERT(m_referenceTime); |
ScriptWrappable::init(this); |
} |