| Index: Source/devtools/front_end/SourceMap.js
|
| diff --git a/Source/devtools/front_end/SourceMap.js b/Source/devtools/front_end/SourceMap.js
|
| index ba8225d401cad7b17469df2454d96b4a738b0c73..4615308a7753ea12bdc01ec7ab459ff574a8313e 100644
|
| --- a/Source/devtools/front_end/SourceMap.js
|
| +++ b/Source/devtools/front_end/SourceMap.js
|
| @@ -171,7 +171,10 @@ WebInspector.SourceMap.prototype = {
|
| var originalToCanonicalURLMap = {};
|
| for (var i = 0; i < map.sources.length; ++i) {
|
| var originalSourceURL = map.sources[i];
|
| - var href = (map.sourceRoot ? map.sourceRoot + "/" : "") + originalSourceURL;
|
| + var sourceRoot = map.sourceRoot || "";
|
| + if (sourceRoot && !sourceRoot.endsWith("/"))
|
| + sourceRoot += "/";
|
| + var href = sourceRoot + originalSourceURL;
|
| var url = WebInspector.ParsedURL.completeURL(this._sourceMappingURL, href) || href;
|
| originalToCanonicalURLMap[originalSourceURL] = url;
|
| sources.push(url);
|
|
|