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

Unified Diff: Source/devtools/front_end/bindings/ResourceScriptMapping.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 results 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
« no previous file with comments | « Source/devtools/front_end/bindings/NetworkProject.js ('k') | Source/devtools/front_end/sdk/Target.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/bindings/ResourceScriptMapping.js
diff --git a/Source/devtools/front_end/bindings/ResourceScriptMapping.js b/Source/devtools/front_end/bindings/ResourceScriptMapping.js
index d9a7a5cee6f549670edf325695b51cc31c55bb57..88336246748f143c81202cc3158147d444897116 100644
--- a/Source/devtools/front_end/bindings/ResourceScriptMapping.js
+++ b/Source/devtools/front_end/bindings/ResourceScriptMapping.js
@@ -224,6 +224,9 @@ WebInspector.ResourceScriptMapping.prototype = {
*/
_scriptsForUISourceCode: function(uiSourceCode)
{
+ var target = WebInspector.NetworkProject.targetForUISourceCode(uiSourceCode);
+ if (target && target !== this._debuggerModel.target())
+ return [];
if (!this._networkMapping.networkURL(uiSourceCode))
return [];
return this._debuggerModel.scriptsForSourceURL(this._networkMapping.networkURL(uiSourceCode));
« no previous file with comments | « Source/devtools/front_end/bindings/NetworkProject.js ('k') | Source/devtools/front_end/sdk/Target.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698