Index: Source/WebCore/loader/NavigationScheduler.cpp |
=================================================================== |
--- Source/WebCore/loader/NavigationScheduler.cpp (revision 109374) |
+++ Source/WebCore/loader/NavigationScheduler.cpp (working copy) |
@@ -422,6 +422,8 @@ |
{ |
ASSERT(m_frame->page()); |
+ RefPtr<Frame> protect(m_frame); |
+ |
// If a redirect was scheduled during a load, then stop the current load. |
// Otherwise when the current load transitions from a provisional to a |
// committed state, pending redirects may be cancelled. |
@@ -437,6 +439,9 @@ |
if (!m_frame->loader()->isComplete() && m_redirect->isLocationChange()) |
m_frame->loader()->completed(); |
+ if (!m_frame->page()) |
+ return; |
+ |
startTimer(); |
} |