| Index: Source/WebCore/bindings/ScriptControllerBase.cpp
|
| ===================================================================
|
| --- Source/WebCore/bindings/ScriptControllerBase.cpp (revision 95419)
|
| +++ Source/WebCore/bindings/ScriptControllerBase.cpp (working copy)
|
| @@ -67,6 +67,8 @@
|
| bool wasInExecuteScript = m_inExecuteScript;
|
| m_inExecuteScript = true;
|
|
|
| + RefPtr<Frame> protect(m_frame); // Script execution can destroy the frame, and thus the ScriptController.
|
| +
|
| ScriptValue result = evaluate(sourceCode);
|
|
|
| if (!wasInExecuteScript) {
|
|
|