Chromium Code Reviews| Index: Source/core/inspector/PageDebuggerAgent.cpp |
| diff --git a/Source/core/inspector/PageDebuggerAgent.cpp b/Source/core/inspector/PageDebuggerAgent.cpp |
| index 72bd983efa425e8384062f4341f8320a1a9c427d..2eaa34d7bb339dbb30e5bf526aa5fc4a5aa41aa9 100644 |
| --- a/Source/core/inspector/PageDebuggerAgent.cpp |
| +++ b/Source/core/inspector/PageDebuggerAgent.cpp |
| @@ -33,9 +33,11 @@ |
| #include "bindings/v8/DOMWrapperWorld.h" |
| #include "bindings/v8/PageScriptDebugServer.h" |
| +#include "bindings/v8/ScriptController.h" |
| #include "core/inspector/InspectorOverlay.h" |
| #include "core/inspector/InspectorPageAgent.h" |
| #include "core/inspector/InstrumentingAgents.h" |
| +#include "core/page/Frame.h" |
| #include "core/page/Page.h" |
| #include "core/page/PageConsole.h" |
| @@ -136,7 +138,9 @@ void PageDebuggerAgent::didClearWindowObjectInWorld(Frame* frame, DOMWrapperWorl |
| return; |
| reset(); |
| - scriptDebugServer().setScriptPreprocessor(m_pageAgent->scriptPreprocessor()); |
| + |
| + if (!m_pageAgent->scriptPreprocessor().isEmpty()) |
|
abarth-chromium
2013/07/12 00:25:16
Is this branch correct? I would expect that if th
johnjbarton
2013/07/12 17:56:49
Yes test is correct: if the PageAgent has a script
|
| + frame->script()->setScriptPreprocessor(m_pageAgent->scriptPreprocessor()); |
| } |
| } // namespace WebCore |