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

Unified Diff: third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgentImpl.cpp

Issue 1635173002: DevTools: do not rely upon reported context having accessible injected script. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changed keyboard Created 4 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgentImpl.cpp
diff --git a/third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgentImpl.cpp b/third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgentImpl.cpp
index 44c20af6cac7aaead2f95dfbee486825c7198c5d..aceecc241d5503944ab7ed0a63606f743e6c4e10 100644
--- a/third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgentImpl.cpp
+++ b/third_party/WebKit/Source/core/inspector/v8/V8RuntimeAgentImpl.cpp
@@ -212,6 +212,8 @@ void V8RuntimeAgentImpl::reportExecutionContextCreated(ScriptState* scriptState,
if (!m_enabled)
return;
InjectedScript* injectedScript = injectedScriptManager()->injectedScriptFor(scriptState);
+ if (!injectedScript)
+ return;
RefPtr<ExecutionContextDescription> description = ExecutionContextDescription::create()
.setId(injectedScript->contextId())
.setName(humanReadableName)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698