Chromium Code Reviews| Index: src/inspector/v8-debugger.cc |
| diff --git a/src/inspector/v8-debugger.cc b/src/inspector/v8-debugger.cc |
| index b3657e577cfc66cf0917f05e57f9243ac6d17b7c..1a3bde85f11adf56b0de62e401271fe5f453824d 100644 |
| --- a/src/inspector/v8-debugger.cc |
| +++ b/src/inspector/v8-debugger.cc |
| @@ -124,8 +124,6 @@ void V8Debugger::getCompiledScripts( |
| for (size_t i = 0; i < scripts.Size(); ++i) { |
| v8::Local<v8::DebugInterface::Script> script = scripts.Get(i); |
| if (!script->WasCompiled()) continue; |
| - v8::ScriptOriginOptions origin = script->OriginOptions(); |
| - if (origin.IsEmbedderDebugScript()) continue; |
| v8::Local<v8::String> v8ContextData; |
| if (!script->ContextData().ToLocal(&v8ContextData)) continue; |
| String16 contextData = toProtocolString(v8ContextData); |
| @@ -584,13 +582,13 @@ void V8Debugger::handleV8DebugEvent( |
| v8::Local<v8::Value> argv[] = {eventDetails.GetEventData()}; |
| v8::Local<v8::Value> value = |
| callDebuggerMethod("getAfterCompileScript", 1, argv).ToLocalChecked(); |
| - if (value->IsNull()) return; |
| DCHECK(value->IsObject()); |
| v8::Local<v8::Object> scriptObject = v8::Local<v8::Object>::Cast(value); |
| v8::Local<v8::DebugInterface::Script> script; |
| if (!v8::DebugInterface::Script::Wrap(m_isolate, scriptObject) |
| .ToLocal(&script)) |
| return; |
| + if (script->IsInspectorScript()) return; |
|
Yang
2016/11/16 07:56:47
Can we filter at v8::internal::Debug::OnAfterCompi
kozy
2016/11/17 16:18:28
Done.
|
| agent->didParseSource( |
| wrapUnique(new V8DebuggerScript(m_isolate, script, inLiveEditScope)), |
| event == v8::AfterCompile); |