Index: third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js |
index f8dd6d2a066efe5557a7fbe94381d1677f8023fc..f37057508ed3abc9ecee07e6e1022d199a85d3f3 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js |
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js |
@@ -424,11 +424,11 @@ WebInspector.ResourceScriptFile.prototype = { |
checkMapping: function() |
{ |
- if (!this._script) |
- return; |
- if (typeof this._scriptSource !== "undefined") |
+ if (!this._script || typeof this._scriptSource !== "undefined") { |
+ this._mappingCheckedForTest(); |
return; |
- this._script.requestContent(callback.bind(this)); |
+ } |
+ this._script.requestContent().then(callback.bind(this)); |
/** |
* @param {?string} source |
@@ -438,9 +438,12 @@ WebInspector.ResourceScriptFile.prototype = { |
{ |
this._scriptSource = source; |
this._update(); |
+ this._mappingCheckedForTest(); |
} |
}, |
+ _mappingCheckedForTest: function() { }, |
+ |
/** |
* @return {?WebInspector.Target} |
*/ |