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

Side by Side Diff: Source/devtools/front_end/sources/NavigatorView.js

Issue 474783003: DevTools: Do not auto-reveal resuources with empty urls. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * 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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 }, 517 },
518 518
519 /** 519 /**
520 * @param {!WebInspector.Event} event 520 * @param {!WebInspector.Event} event
521 */ 521 */
522 _inspectedURLChanged: function(event) 522 _inspectedURLChanged: function(event)
523 { 523 {
524 var nodes = this._uiSourceCodeNodes.values(); 524 var nodes = this._uiSourceCodeNodes.values();
525 for (var i = 0; i < nodes.length; ++i) { 525 for (var i = 0; i < nodes.length; ++i) {
526 var uiSourceCode = nodes[i].uiSourceCode(); 526 var uiSourceCode = nodes[i].uiSourceCode();
527 if (uiSourceCode.url === WebInspector.resourceTreeModel.inspectedPage URL()) 527 if (WebInspector.resourceTreeModel.inspectedPageURL() && uiSourceCode .url === WebInspector.resourceTreeModel.inspectedPageURL())
528 this.revealUISourceCode(uiSourceCode, true); 528 this.revealUISourceCode(uiSourceCode, true);
529 } 529 }
530 }, 530 },
531 531
532 /** 532 /**
533 * @param {!WebInspector.UISourceCode} uiSourceCode 533 * @param {!WebInspector.UISourceCode} uiSourceCode
534 */ 534 */
535 _addUISourceCode: function(uiSourceCode) 535 _addUISourceCode: function(uiSourceCode)
536 { 536 {
537 WebInspector.NavigatorView.prototype._addUISourceCode.call(this, uiSourc eCode); 537 WebInspector.NavigatorView.prototype._addUISourceCode.call(this, uiSourc eCode);
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
1414 1414
1415 willRemoveChild: function(node) 1415 willRemoveChild: function(node)
1416 { 1416 {
1417 if (node._isMerged || !this.isPopulated()) 1417 if (node._isMerged || !this.isPopulated())
1418 return; 1418 return;
1419 this._treeElement.removeChild(node._treeElement); 1419 this._treeElement.removeChild(node._treeElement);
1420 }, 1420 },
1421 1421
1422 __proto__: WebInspector.NavigatorTreeNode.prototype 1422 __proto__: WebInspector.NavigatorTreeNode.prototype
1423 } 1423 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698