| Index: third_party/WebKit/Source/devtools/front_end/bindings/NetworkMapping.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/NetworkMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/NetworkMapping.js
|
| index b008811c9871807f0174c4957ffbf721086f8976..e96dd8dc18ad4f3b534bbfde6adfafda439cd886 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/bindings/NetworkMapping.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/bindings/NetworkMapping.js
|
| @@ -5,12 +5,14 @@
|
| /**
|
| * @constructor
|
| * @param {!WebInspector.Workspace} workspace
|
| + * @param {!WebInspector.FileSystemWorkspaceBinding} fileSystemWorkspaceBinding
|
| * @param {!WebInspector.FileSystemMapping} fileSystemMapping
|
| */
|
| -WebInspector.NetworkMapping = function(workspace, fileSystemMapping)
|
| +WebInspector.NetworkMapping = function(workspace, fileSystemWorkspaceBinding, fileSystemMapping)
|
| {
|
| this._workspace = workspace;
|
| this._fileSystemMapping = fileSystemMapping;
|
| + this._fileSystemWorkspaceBinding = fileSystemWorkspaceBinding;
|
| InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Events.RevealSourceLine, this._revealSourceLine, this);
|
| }
|
|
|
| @@ -21,8 +23,11 @@ WebInspector.NetworkMapping.prototype = {
|
| */
|
| networkURL: function(uiSourceCode)
|
| {
|
| - // FIXME: This should use fileSystemMapping to determine url.
|
| - return uiSourceCode.networkURL();
|
| + if (uiSourceCode.project().type() === WebInspector.projectTypes.FileSystem) {
|
| + var fileSystemPath = this._fileSystemWorkspaceBinding.fileSystemPath(uiSourceCode.project().id());
|
| + return this.urlForPath(fileSystemPath, uiSourceCode.path());
|
| + }
|
| + return uiSourceCode.originURL();
|
| },
|
|
|
| /**
|
|
|