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

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

Issue 2422803002: DevTools: prefix node.js scripts's sourceURL with "file://" to make them a valid url (Closed)
Patch Set: WI.ParsedURL.platformPathToURL 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) 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 266
267 var binding = WebInspector.persistence.binding(uiSourceCode); 267 var binding = WebInspector.persistence.binding(uiSourceCode);
268 if (!Runtime.experiments.isEnabled("persistence2") && binding && binding .network === uiSourceCode) 268 if (!Runtime.experiments.isEnabled("persistence2") && binding && binding .network === uiSourceCode)
269 return; 269 return;
270 270
271 var isFromSourceMap = uiSourceCode.contentType().isFromSourceMap(); 271 var isFromSourceMap = uiSourceCode.contentType().isFromSourceMap();
272 var path; 272 var path;
273 if (uiSourceCode.project().type() === WebInspector.projectTypes.FileSyst em) 273 if (uiSourceCode.project().type() === WebInspector.projectTypes.FileSyst em)
274 path = WebInspector.FileSystemWorkspaceBinding.relativePath(uiSource Code).slice(0, -1); 274 path = WebInspector.FileSystemWorkspaceBinding.relativePath(uiSource Code).slice(0, -1);
275 else 275 else
276 path = WebInspector.ParsedURL.splitURLIntoPathComponents(uiSourceCod e.url()).slice(1, -1); 276 path = WebInspector.ParsedURL.extractPath(uiSourceCode.url()).split( "/").slice(1, -1);
277 277
278 var project = uiSourceCode.project(); 278 var project = uiSourceCode.project();
279 var target = WebInspector.NetworkProject.targetForUISourceCode(uiSourceC ode); 279 var target = WebInspector.NetworkProject.targetForUISourceCode(uiSourceC ode);
280 var frame = this._uiSourceCodeFrame(uiSourceCode); 280 var frame = this._uiSourceCodeFrame(uiSourceCode);
281 281
282 var folderNode = this._folderNode(uiSourceCode, project, target, frame, uiSourceCode.origin(), path, isFromSourceMap); 282 var folderNode = this._folderNode(uiSourceCode, project, target, frame, uiSourceCode.origin(), path, isFromSourceMap);
283 var uiSourceCodeNode = new WebInspector.NavigatorUISourceCodeTreeNode(th is, uiSourceCode); 283 var uiSourceCodeNode = new WebInspector.NavigatorUISourceCodeTreeNode(th is, uiSourceCode);
284 this._uiSourceCodeNodes.set(uiSourceCode, uiSourceCodeNode); 284 this._uiSourceCodeNodes.set(uiSourceCode, uiSourceCodeNode);
285 folderNode.appendChild(uiSourceCodeNode); 285 folderNode.appendChild(uiSourceCodeNode);
286 this.uiSourceCodeAdded(uiSourceCode); 286 this.uiSourceCodeAdded(uiSourceCode);
(...skipping 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after
1680 */ 1680 */
1681 setTitle: function(title) 1681 setTitle: function(title)
1682 { 1682 {
1683 this._title = title; 1683 this._title = title;
1684 if (this._treeElement) 1684 if (this._treeElement)
1685 this._treeElement.title = this._title; 1685 this._treeElement.title = this._title;
1686 }, 1686 },
1687 1687
1688 __proto__: WebInspector.NavigatorTreeNode.prototype 1688 __proto__: WebInspector.NavigatorTreeNode.prototype
1689 } 1689 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698