| Index: Source/WebCore/page/DOMTimer.cpp
|
| ===================================================================
|
| --- Source/WebCore/page/DOMTimer.cpp (revision 106681)
|
| +++ Source/WebCore/page/DOMTimer.cpp (working copy)
|
| @@ -27,6 +27,7 @@
|
| #include "config.h"
|
| #include "DOMTimer.h"
|
|
|
| +#include "Document.h"
|
| #include "InspectorInstrumentation.h"
|
| #include "ScheduledAction.h"
|
| #include "ScriptExecutionContext.h"
|
| @@ -70,6 +71,9 @@
|
| , m_originalInterval(interval)
|
| , m_shouldForwardUserGesture(shouldForwardUserGesture(interval, m_nestingLevel))
|
| {
|
| + // FIXME: remove once we found out the root cause for http://webkit.org/b/77370
|
| + if (scriptExecutionContext()->isDocument() && !static_cast<Document*>(scriptExecutionContext())->frame())
|
| + CRASH();
|
| scriptExecutionContext()->addTimeout(m_timeoutId, this);
|
|
|
| double intervalMilliseconds = intervalClampedToMinimum(interval, context->minimumTimerInterval());
|
|
|