| Index: Source/bindings/core/v8/ScriptController.cpp
|
| diff --git a/Source/bindings/core/v8/ScriptController.cpp b/Source/bindings/core/v8/ScriptController.cpp
|
| index 06a944a7803480008e686d95b58514c72f7dda1e..ef014a04a86078131552d7de3a07a432ce0afbab 100644
|
| --- a/Source/bindings/core/v8/ScriptController.cpp
|
| +++ b/Source/bindings/core/v8/ScriptController.cpp
|
| @@ -421,6 +421,9 @@ void ScriptController::clearWindowShell()
|
| double start = currentTime();
|
| // V8 binding expects ScriptController::clearWindowShell only be called
|
| // when a frame is loading a new page. This creates a new context for the new page.
|
| +
|
| + // The V8 context must be available for |clearScriptObjects()|.
|
| + // The below call must be before |clearForNavigation()| which disposes the V8 context.
|
| clearScriptObjects();
|
| m_windowShell->clearForNavigation();
|
| for (IsolatedWorldMap::iterator iter = m_isolatedWorlds.begin(); iter != m_isolatedWorlds.end(); ++iter)
|
|
|