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

Unified Diff: content/shell/shell_devtools_discovery_page.html

Issue 9232077: Add default title for untitled tabs to shell devtools discovery page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_devtools_discovery_page.html
diff --git a/content/shell/shell_devtools_discovery_page.html b/content/shell/shell_devtools_discovery_page.html
index 62bb583f299fccb6d47097e5776400e42085bfb6..e8a730a6917ca5508865573e0fb224e73d6c55ba 100644
--- a/content/shell/shell_devtools_discovery_page.html
+++ b/content/shell/shell_devtools_discovery_page.html
@@ -33,7 +33,10 @@ function appendItem(item_object) {
}
var text = document.createElement("div");
- text.innerText = item_object.title;
+ if (item_object.title)
+ text.innerText = item_object.title;
+ else
+ text.innerText = "(untitled tab)";
text.style.cssText = "background-image:url(" + item_object.faviconUrl + ")";
frontend_ref.appendChild(text);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698