Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1683)

Unified Diff: Source/devtools/front_end/sdk/DOMModel.js

Issue 404953004: DevTools: Refactor linkifyRawLocation to use fallback url (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/sdk/DOMModel.js
diff --git a/Source/devtools/front_end/sdk/DOMModel.js b/Source/devtools/front_end/sdk/DOMModel.js
index 66253b66f01e67fc67155c7d7a47013946ff1eb1..caae77b0e4c5d9bb587b82355e8636f8fb248e30 100644
--- a/Source/devtools/front_end/sdk/DOMModel.js
+++ b/Source/devtools/front_end/sdk/DOMModel.js
@@ -1837,6 +1837,12 @@ WebInspector.DOMModel.EventListener = function(target, payload)
{
WebInspector.SDKObject.call(this, target);
this._payload = payload;
+ var sourceName = this._payload.sourceName;
+ if (!sourceName) {
+ var script = target.debuggerModel.scriptForId(payload.location.scriptId);
+ sourceName = script ? script.contentURL() : "";
+ }
+ this._sourceName = sourceName;
}
WebInspector.DOMModel.EventListener.prototype = {
@@ -1872,6 +1878,14 @@ WebInspector.DOMModel.EventListener.prototype = {
return this._payload.handler ? this.target().runtimeModel.createRemoteObject(this._payload.handler) : null;
},
+ /**
+ * @return {string}
+ */
+ sourceName: function()
+ {
+ return this._sourceName;
+ },
+
__proto__: WebInspector.SDKObject.prototype
}

Powered by Google App Engine
This is Rietveld 408576698