Index: Source/devtools/front_end/bindings/ResourceUtils.js |
diff --git a/Source/devtools/front_end/bindings/ResourceUtils.js b/Source/devtools/front_end/bindings/ResourceUtils.js |
index 0c7375aeba08718f6130e59bd8b69c8ea75e9cdd..0cc3a46b3115b1222b1160932ed7df7bb52b338b 100644 |
--- a/Source/devtools/front_end/bindings/ResourceUtils.js |
+++ b/Source/devtools/front_end/bindings/ResourceUtils.js |
@@ -177,9 +177,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) |
a.title = url; |
- else if (typeof tooltipText !== "string" || tooltipText.length) |
+ else if (tooltipText && tooltipText.length) |
dgozman
2015/08/12 17:19:34
Just |if (tooltipText)| since empty string evaluat
samli
2015/08/17 00:53:26
Done.
|
a.title = tooltipText; |
a.textContent = linkText.trimMiddle(WebInspector.Linkifier.MaxLengthForDisplayedURLs); |
if (isExternal) |