| Index: third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js b/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js
|
| index be2e646b1b1acb494cc7ec1a53e923a5fceb2fa8..5504a04a7dbf22120745dd69365f7718ee78a03f 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/bindings/BlackboxManager.js
|
| @@ -49,7 +49,7 @@ WebInspector.BlackboxManager.prototype = {
|
| isBlackboxedRawLocation: function(location)
|
| {
|
| if (!this._scriptIdToPositions.has(location.scriptId))
|
| - return false;
|
| + return this._isBlackboxedScript(location.script());
|
| var positions = this._scriptIdToPositions.get(location.scriptId);
|
| var index = positions.lowerBound(location, comparator);
|
| return !!(index % 2);
|
| @@ -312,6 +312,9 @@ WebInspector.BlackboxManager.prototype = {
|
| if (success) {
|
| this._scriptIdToPositions.set(script.scriptId, positions);
|
| this._debuggerWorkspaceBinding.updateLocations(script);
|
| + var isBlackboxed = positions.length !== 0;
|
| + if (!isBlackboxed && script.sourceMapURL)
|
| + this._debuggerWorkspaceBinding.loadSourceMap(script);
|
| } else if (!this._scriptIdToPositions.has(script.scriptId))
|
| this._scriptIdToPositions.set(script.scriptId, []);
|
| }
|
|
|