Chromium Code Reviews| Index: Source/devtools/front_end/components/Linkifier.js |
| diff --git a/Source/devtools/front_end/components/Linkifier.js b/Source/devtools/front_end/components/Linkifier.js |
| index 69ffc34ff45972d00cad66837a9ac5f576cdc4a5..01d542a180e244418ac11d2f531b5dea70f8e4bd 100644 |
| --- a/Source/devtools/front_end/components/Linkifier.js |
| +++ b/Source/devtools/front_end/components/Linkifier.js |
| @@ -510,9 +510,9 @@ WebInspector.linkifyURLAsNode = function(url, linkText, classes, isExternal, too |
| if (href !== null) |
| a.href = href; |
| a.className = classes; |
| - if (typeof tooltipText === "undefined") |
| + if (!tooltipText && linkText !== url) |
|
pfeldman
2015/08/19 19:08:42
What about the ones with the overflow?
samli
2015/08/21 01:31:47
I have not been able to find any instance of this.
|
| a.title = url; |
| - else if (typeof tooltipText !== "string" || tooltipText.length) |
| + else if (tooltipText) |
| a.title = tooltipText; |
| a.textContent = linkText.trimMiddle(WebInspector.Linkifier.MaxLengthForDisplayedURLs); |
| if (isExternal) |