Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js |
| index 1bcd93290cd053424df478b20de11c390dfc1d94..26fa6b42b4c7d8cd73dd1a67aa01a72baf94cef3 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js |
| @@ -323,7 +323,10 @@ WebInspector.CompilerScriptMapping.prototype = { |
| { |
| // script.sourceURL can be a random string, but is generally an absolute path -> complete it to inspected page url for |
|
pfeldman
2016/07/07 17:44:13
This arguably belongs here, we should have resolve
eostroukhov-old
2016/07/13 23:30:58
Done.
|
| // relative links. |
| - var scriptURL = WebInspector.ParsedURL.completeURL(this._target.resourceTreeModel.inspectedPageURL(), script.sourceURL); |
| + var scriptURL = script.sourceURL; |
| + var resourceTreeModel = WebInspector.ResourceTreeModel.fromTarget(this._target); |
| + if (resourceTreeModel) |
| + scriptURL = WebInspector.ParsedURL.completeURL(resourceTreeModel.inspectedPageURL(), scriptURL); |
| if (!scriptURL) |
| return Promise.resolve(/** @type {?WebInspector.TextSourceMap} */(null)); |