Index: third_party/WebKit/Source/devtools/front_end/sdk/SourceMapManager.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/SourceMapManager.js b/third_party/WebKit/Source/devtools/front_end/sdk/SourceMapManager.js |
index b6ab08ac745cd0998dd7e1ad1ea4128e44ad59ed..4b652c7e07ce2b40242ca14db9703cbb17b4aa56 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sdk/SourceMapManager.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/SourceMapManager.js |
@@ -184,7 +184,9 @@ SDK.SourceMapManager = class extends SDK.SDKObject { |
*/ |
function attach(sourceMapURL, client) { |
this._sourceMapURLToClients.set(sourceMapURL, client); |
- this.dispatchEventToListeners(SDK.SourceMapManager.Events.SourceMapAttached, client); |
+ var sourceMap = this._sourceMapByURL.get(sourceMapURL); |
+ this.dispatchEventToListeners( |
+ SDK.SourceMapManager.Events.SourceMapAttached, {client: client, sourceMap: sourceMap}); |
} |
} |
@@ -220,9 +222,11 @@ SDK.SourceMapManager = class extends SDK.SDKObject { |
return; |
} |
this._sourceMapURLToClients.remove(sourceMapURL, client); |
+ var sourceMap = this._sourceMapByURL.get(sourceMapURL); |
if (!this._sourceMapURLToClients.has(sourceMapURL)) |
this._sourceMapByURL.delete(sourceMapURL); |
- this.dispatchEventToListeners(SDK.SourceMapManager.Events.SourceMapDetached, client); |
+ this.dispatchEventToListeners( |
+ SDK.SourceMapManager.Events.SourceMapDetached, {client: client, sourceMap: sourceMap}); |
} |
_sourceMapLoadedForTest() { |