 Chromium Code Reviews
 Chromium Code Reviews Issue 1699183003:
  [DevTools] Don't load sourcemap for blackboxed scripts  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@add-source-map-support-v3
    
  
    Issue 1699183003:
  [DevTools] Don't load sourcemap for blackboxed scripts  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@add-source-map-support-v3| 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..6275fd0efb89a78075c0b94a006581631e3d74c5 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 | 
| + */ | 
| + loadSourceMap: function(script) | 
| 
dgozman
2016/02/18 02:37:41
maybeLoadSourceMap
 
kozy
2016/02/19 02:24:50
Done.
 | 
| + { | 
| + 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); | 
| + 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); |