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

Unified Diff: Source/devtools/front_end/bindings/Linkifier.js

Issue 1180733005: [DevTools] Added missing items to live anchor's context menu (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | Source/devtools/front_end/elements/ElementsPanel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/bindings/Linkifier.js
diff --git a/Source/devtools/front_end/bindings/Linkifier.js b/Source/devtools/front_end/bindings/Linkifier.js
index 133ad24465e0da3cec9bae9472aead25f9c893d1..e1b2d5ad4520d81bf195b243cfe09f4c98fe06a9 100644
--- a/Source/devtools/front_end/bindings/Linkifier.js
+++ b/Source/devtools/front_end/bindings/Linkifier.js
@@ -340,6 +340,10 @@ WebInspector.Linkifier.DefaultFormatter.prototype = {
if (typeof uiLocation.lineNumber === "number")
titleText += ":" + (uiLocation.lineNumber + 1);
anchor.title = titleText;
+
+ var networkURL = WebInspector.networkMapping.networkURL(uiLocation.uiSourceCode);
pfeldman 2015/06/18 06:51:18 This is likely a modularity violation. You should
+ if (networkURL)
+ anchor.href = networkURL;
}
}
« no previous file with comments | « no previous file | Source/devtools/front_end/elements/ElementsPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698