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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 return null; 217 return null;
218 return this._networkMapping.uiSourceCodeForURL(script.sourceURL, this._t arget); 218 return this._networkMapping.uiSourceCodeForURL(script.sourceURL, this._t arget);
219 }, 219 },
220 220
221 /** 221 /**
222 * @param {!WebInspector.UISourceCode} uiSourceCode 222 * @param {!WebInspector.UISourceCode} uiSourceCode
223 * @return {!Array.<!WebInspector.Script>} 223 * @return {!Array.<!WebInspector.Script>}
224 */ 224 */
225 _scriptsForUISourceCode: function(uiSourceCode) 225 _scriptsForUISourceCode: function(uiSourceCode)
226 { 226 {
227 var target = WebInspector.NetworkProject.targetForUISourceCode(uiSourceC ode);
228 if (target && target !== this._debuggerModel.target())
229 return [];
227 if (!this._networkMapping.networkURL(uiSourceCode)) 230 if (!this._networkMapping.networkURL(uiSourceCode))
228 return []; 231 return [];
229 return this._debuggerModel.scriptsForSourceURL(this._networkMapping.netw orkURL(uiSourceCode)); 232 return this._debuggerModel.scriptsForSourceURL(this._networkMapping.netw orkURL(uiSourceCode));
230 }, 233 },
231 234
232 /** 235 /**
233 * @param {!WebInspector.UISourceCode} uiSourceCode 236 * @param {!WebInspector.UISourceCode} uiSourceCode
234 * @param {!Array.<!WebInspector.Script>} scripts 237 * @param {!Array.<!WebInspector.Script>} scripts
235 */ 238 */
236 _bindUISourceCodeToScripts: function(uiSourceCode, scripts) 239 _bindUISourceCodeToScripts: function(uiSourceCode, scripts)
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 */ 448 */
446 addSourceMapURL: function(sourceMapURL) 449 addSourceMapURL: function(sourceMapURL)
447 { 450 {
448 if (!this._script) 451 if (!this._script)
449 return; 452 return;
450 this._script.addSourceMapURL(sourceMapURL); 453 this._script.addSourceMapURL(sourceMapURL);
451 }, 454 },
452 455
453 __proto__: WebInspector.Object.prototype 456 __proto__: WebInspector.Object.prototype
454 } 457 }
OLDNEW
« 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