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

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 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/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));

Powered by Google App Engine
This is Rietveld 408576698