| Index: Source/bindings/v8/ScriptController.cpp
|
| diff --git a/Source/bindings/v8/ScriptController.cpp b/Source/bindings/v8/ScriptController.cpp
|
| index 18e21cc833bd98e4f4aa19cc30810e48ff042a31..396b0228ca9987ec82502e857ba58e9aacedc9b2 100644
|
| --- a/Source/bindings/v8/ScriptController.cpp
|
| +++ b/Source/bindings/v8/ScriptController.cpp
|
| @@ -649,7 +649,7 @@ bool ScriptController::executeScriptIfJavaScriptURL(const KURL& url)
|
|
|
| if (!locationChangeBefore && m_frame->navigationScheduler()->locationChangePending())
|
| return true;
|
| -
|
| +
|
| // DocumentWriter::replaceDocument can cause the DocumentLoader to get deref'ed and possible destroyed,
|
| // so protect it with a RefPtr.
|
| if (RefPtr<DocumentLoader> loader = m_frame->document()->loader())
|
|
|