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

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

Issue 1262063003: Devtools UI: Remove redundant tooltips (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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: 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)

Powered by Google App Engine
This is Rietveld 408576698