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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js

Issue 2571713005: DevTools: untruncate links on console export (Closed)
Patch Set: rebase Created 3 years, 11 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 | « third_party/WebKit/Source/devtools/front_end/console/consoleView.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
index 49077735edd43c41ef819b528c667a4c7de373f4..e7beb22766e36df0b428c3876c7115dcbbf38f95 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
@@ -1961,7 +1961,7 @@ UI.createExternalLink = function(url, linkText, className, preventClick) {
}
if (linkText !== url)
a.title = url;
- a.textContent = linkText.trimMiddle(150);
+ a.textContent = linkText.trimMiddle(UI.MaxLengthForDisplayedURLs);
a.setAttribute('target', '_blank');
return a;
@@ -2032,3 +2032,9 @@ UI.createFileSelectorElement = function(callback) {
}
return fileSelectorElement;
};
+
+/**
+ * @const
+ * @type {number}
+ */
+UI.MaxLengthForDisplayedURLs = 150;
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/console/consoleView.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698