Chromium Code Reviews| Index: third_party/WebKit/Source/platform/v8_inspector/V8InspectorSessionImpl.cpp |
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8InspectorSessionImpl.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8InspectorSessionImpl.cpp |
| index 70eeef743bccd7777126dc9be45455c501a263fe..78f081c67cddd600f1470f0bd35622ab6affa79e 100644 |
| --- a/third_party/WebKit/Source/platform/v8_inspector/V8InspectorSessionImpl.cpp |
| +++ b/third_party/WebKit/Source/platform/v8_inspector/V8InspectorSessionImpl.cpp |
| @@ -89,6 +89,11 @@ void V8InspectorSessionImpl::discardInjectedScripts() |
| InjectedScript* V8InspectorSessionImpl::findInjectedScript(ErrorString* errorString, int contextId) |
| { |
| + if (!contextId) { |
| + *errorString = "Invalid context id: 0"; |
|
dgozman
2016/04/07 17:59:09
Cannot find context with specified id
kozy
2016/04/07 18:07:33
Done.
|
| + return nullptr; |
| + } |
| + |
| const V8DebuggerImpl::ContextByIdMap* contexts = m_debugger->contextGroup(m_contextGroupId); |
| if (!contexts || !contexts->contains(contextId)) { |
| *errorString = "Inspected frame has gone"; |
|
dgozman
2016/04/07 17:59:09
Cannot find context with specified id
kozy
2016/04/07 18:07:33
Done.
|