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 e116c9f7670c2fb67f363e424df174b4cc633994..2d00096ef5d8a43531e0088c70496a6df20cc713 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js |
| @@ -166,6 +166,20 @@ WebInspector.CompilerScriptMapping.prototype = { |
| }, |
| /** |
| + * @param {!WebInspector.Script} script |
| + */ |
| + maybeLoadSourceMap: function(script) |
| + { |
| + if (!script.sourceMapURL) |
| + return; |
| + if (this._pendingSourceMapLoadingCallbacks[script.sourceMapURL]) |
| + return; |
| + if (this._sourceMapForScriptId[script.scriptId]) |
| + return; |
| + this._processScript(script); |
| + }, |
| + |
| + /** |
| * @param {!WebInspector.Event} event |
| */ |
| _sourceMapURLAdded: function(event) |
| @@ -181,6 +195,9 @@ WebInspector.CompilerScriptMapping.prototype = { |
| */ |
| _processScript: function(script) |
| { |
| + var location = this._debuggerModel.createRawLocation(script, 0, 0); |
|
kozy
2016/02/22 05:12:14
I can't user isBlackboxedUISourceCode here because
dgozman
2016/02/22 17:34:56
Then use the url+isContentScript version.
|
| + if (location && WebInspector.blackboxManager.isBlackboxedRawLocation(location)) |
| + return; |
| // Create stub UISourceCode for the time source mapping is being loaded. |
| var stubUISourceCode = this._stubProject.addContentProvider(script.sourceURL, new WebInspector.StaticContentProvider(WebInspector.resourceTypes.Script, "\n\n\n\n\n// Please wait a bit.\n// Compiled script is not shown while source map is being loaded!", script.sourceURL)); |
| this._stubUISourceCodes.set(script.scriptId, stubUISourceCode); |