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

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: Address aandrey's comments #2 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 aa85f0f339b95c4fc590dd1fbb14eee38e874090..fd1ccae479d7ce74346562397c18ee922bfeaf65 100644
--- a/Source/devtools/front_end/sdk/DOMModel.js
+++ b/Source/devtools/front_end/sdk/DOMModel.js
@@ -1854,6 +1854,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 = {
@@ -1889,6 +1895,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
}
« no previous file with comments | « Source/devtools/front_end/profiler/HeapSnapshotView.js ('k') | Source/devtools/front_end/sdk/DebuggerModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698