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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js

Issue 2376583002: DevTools: remove WI.NetworkMapping.networkURL (Closed)
Patch Set: nit Created 4 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 10 *
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 _inspectedURLChanged: function(event) 55 _inspectedURLChanged: function(event)
56 { 56 {
57 var mainTarget = WebInspector.targetManager.mainTarget(); 57 var mainTarget = WebInspector.targetManager.mainTarget();
58 if (event.data !== mainTarget) 58 if (event.data !== mainTarget)
59 return; 59 return;
60 var inspectedURL = mainTarget && mainTarget.inspectedURL(); 60 var inspectedURL = mainTarget && mainTarget.inspectedURL();
61 if (!inspectedURL) 61 if (!inspectedURL)
62 return 62 return
63 for (var node of this._uiSourceCodeNodes.valuesArray()) { 63 for (var node of this._uiSourceCodeNodes.valuesArray()) {
64 var uiSourceCode = node.uiSourceCode(); 64 var uiSourceCode = node.uiSourceCode();
65 if (WebInspector.networkMapping.networkURL(uiSourceCode) === inspect edURL) 65 if (uiSourceCode.url() === inspectedURL)
66 this.revealUISourceCode(uiSourceCode, true); 66 this.revealUISourceCode(uiSourceCode, true);
67 } 67 }
68 }, 68 },
69 69
70 /** 70 /**
71 * @override 71 * @override
72 * @param {!WebInspector.UISourceCode} uiSourceCode 72 * @param {!WebInspector.UISourceCode} uiSourceCode
73 */ 73 */
74 uiSourceCodeAdded: function(uiSourceCode) 74 uiSourceCodeAdded: function(uiSourceCode)
75 { 75 {
76 var inspectedPageURL = WebInspector.targetManager.mainTarget().inspected URL(); 76 var inspectedPageURL = WebInspector.targetManager.mainTarget().inspected URL();
77 if (inspectedPageURL && WebInspector.networkMapping.networkURL(uiSourceC ode) === inspectedPageURL) 77 if (inspectedPageURL && uiSourceCode.url() === inspectedPageURL)
dgozman 2016/09/27 17:48:24 drop "inspectedPageURL &&"
lushnikov 2016/09/28 18:36:02 Done.
78 this.revealUISourceCode(uiSourceCode, true); 78 this.revealUISourceCode(uiSourceCode, true);
79 }, 79 },
80 80
81 __proto__: WebInspector.NavigatorView.prototype 81 __proto__: WebInspector.NavigatorView.prototype
82 } 82 }
83 83
84 /** 84 /**
85 * @constructor 85 * @constructor
86 * @extends {WebInspector.NavigatorView} 86 * @extends {WebInspector.NavigatorView}
87 */ 87 */
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 /** 196 /**
197 * @override 197 * @override
198 */ 198 */
199 sourceDeleted: function(uiSourceCode) 199 sourceDeleted: function(uiSourceCode)
200 { 200 {
201 this._handleRemoveSnippet(uiSourceCode); 201 this._handleRemoveSnippet(uiSourceCode);
202 }, 202 },
203 203
204 __proto__: WebInspector.NavigatorView.prototype 204 __proto__: WebInspector.NavigatorView.prototype
205 } 205 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698