| Index: third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js b/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
|
| index c02ea12216eda0fd8c6b6d96b84fa775492dacdb..2c11f625f742e7d5e5b2ee54301fd3f8f1ce4816 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
|
| @@ -791,7 +791,7 @@ WebInspector.SourcesPanel.prototype = {
|
| {
|
| WebInspector.NavigatorView.appendAddFolderItem(contextMenu);
|
| if (uiSourceCode.project().type() === WebInspector.projectTypes.FileSystem) {
|
| - var hasMappings = !!this._networkMapping.networkURL(uiSourceCode);
|
| + var hasMappings = !!WebInspector.persistence.binding(uiSourceCode);
|
| if (!hasMappings)
|
| contextMenu.appendItem(WebInspector.UIString.capitalize("Map to ^network ^resource\u2026"), this.mapFileSystemToNetwork.bind(this, uiSourceCode));
|
| else
|
| @@ -809,8 +809,7 @@ WebInspector.SourcesPanel.prototype = {
|
| if (uiSourceCode.project().type() === WebInspector.projectTypes.Network || uiSourceCode.project().type() === WebInspector.projectTypes.ContentScripts) {
|
| if (!this._workspace.projects().filter(filterProject).length)
|
| return;
|
| - var networkURL = this._networkMapping.networkURL(uiSourceCode);
|
| - if (this._networkMapping.uiSourceCodeForURLForAnyTarget(networkURL) === uiSourceCode)
|
| + if (this._networkMapping.uiSourceCodeForURLForAnyTarget(uiSourceCode.url()) === uiSourceCode)
|
| contextMenu.appendItem(WebInspector.UIString.capitalize("Map to ^file ^system ^resource\u2026"), this.mapNetworkToFileSystem.bind(this, uiSourceCode));
|
| }
|
| },
|
|
|