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

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

Issue 1147093007: Devtools[ResourceScriptMapping]: Ignore uiSourceCodes originated by other target's network project (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase test Created 5 years, 7 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/devtools/front_end/sdk/Target.js
diff --git a/Source/devtools/front_end/sdk/Target.js b/Source/devtools/front_end/sdk/Target.js
index 8f2f77ed6cfa324359474338785039e45b2560a8..4ae0d4e4b5d5cad4b92c48afba7850cf0a0e5fed 100644
--- a/Source/devtools/front_end/sdk/Target.js
+++ b/Source/devtools/front_end/sdk/Target.js
@@ -567,6 +567,20 @@ WebInspector.TargetManager.prototype = {
},
/**
+ *
+ * @param {number} id
+ * @return {?WebInspector.Target}
+ */
+ targetById: function(id)
+ {
+ for (var target of this._targets) {
pfeldman 2015/05/26 13:03:33 Since it is likely to be called for every uiSource
sergeyv 2015/05/26 13:53:17 Done.
+ if (target.id() === id)
+ return target;
+ }
+ return null;
+ },
+
+ /**
* @return {?WebInspector.Target}
*/
mainTarget: function()

Powered by Google App Engine
This is Rietveld 408576698