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

Unified Diff: third_party/WebKit/Source/devtools/front_end/components/Linkifier.js

Issue 2644753002: DevTools: untruncate links on copy (Closed)
Patch Set: a Created 3 years, 9 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: third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
diff --git a/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js b/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
index 066190ef070a4b59907a30bfad694e6db80e3f6d..300337873f0cc239e79d0ae557e85389ab827ed0 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
+++ b/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
@@ -303,10 +303,9 @@ Components.Linkifier = class {
return;
Components.Linkifier._bindUILocation(anchor, uiLocation);
- var text = uiLocation.linkText();
var info = Components.Linkifier._linkInfo(anchor);
- info.originalLinkText = text;
- text = text.replace(/([a-f0-9]{7})[a-f0-9]{13}[a-f0-9]*/g, '$1\u2026');
+ info.originalLinkText = uiLocation.linkText(true /* skipTrim */);
+ var text = info.originalLinkText.replace(/([a-f0-9]{7})[a-f0-9]{13}[a-f0-9]*/g, '$1\u2026');
allada 2017/03/28 01:13:08 This looks very strange to me. I believe it's sayi
luoe 2017/03/31 21:35:21 Done.
if (this._maxLength)
text = text.trimMiddle(this._maxLength);
anchor.textContent = text;

Powered by Google App Engine
This is Rietveld 408576698