Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(899)

Unified Diff: Source/core/inspector/PageDebuggerAgent.cpp

Issue 13575004: Apply script preprocessor to Web page scripts only. (Closed) Base URL: https://chromium.googlesource.com/external/WebKit_trimmed.git@master
Patch Set: respond to review Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/inspector/PageDebuggerAgent.cpp
diff --git a/Source/core/inspector/PageDebuggerAgent.cpp b/Source/core/inspector/PageDebuggerAgent.cpp
index 72bd983efa425e8384062f4341f8320a1a9c427d..b0977d5e3e2cc090369a700333e2084b46fc54de 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());
+ frame->script()->clearScriptPreprocessor();
abarth-chromium 2013/07/09 23:14:10 Please clear the script preprocessor in ScriptCont
johnjbarton 2013/07/10 23:24:23 Sorry I don't understand how to do this. I assume
+ if (!m_pageAgent->scriptPreprocessor().isEmpty())
+ frame->script()->setScriptPreprocessor(m_pageAgent->scriptPreprocessor());
}
} // namespace WebCore
« Source/bindings/v8/ScriptDebugServer.cpp ('K') | « Source/bindings/v8/V8LazyEventListener.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698