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

Unified Diff: Source/devtools/front_end/sdk/WorkerTargetManager.js

Issue 473553003: DevTools: Process correctly a disconnection during target initialization (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | « Source/devtools/front_end/sdk/Target.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/WorkerTargetManager.js
diff --git a/Source/devtools/front_end/sdk/WorkerTargetManager.js b/Source/devtools/front_end/sdk/WorkerTargetManager.js
index b957898192e6f36a62e7128e11f0b37275e760e2..d9fc943585ab07f0c468efe736c8e16be642bbbb 100644
--- a/Source/devtools/front_end/sdk/WorkerTargetManager.js
+++ b/Source/devtools/front_end/sdk/WorkerTargetManager.js
@@ -46,11 +46,11 @@ WebInspector.WorkerTargetManager.prototype = {
}
/**
- * @param {!WebInspector.Target} target
+ * @param {?WebInspector.Target} target
*/
function targetCreated(target)
{
- if (data.inspectorConnected)
+ if (target && data.inspectorConnected)
vsevik 2014/08/18 13:46:55 Would you mind renaming inspectorConnected to some
sergeyv 2014/08/18 13:49:15 I need to rename it in protocol and backend too, s
target.runtimeAgent().run();
}
},
« no previous file with comments | « Source/devtools/front_end/sdk/Target.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698