Bug 595343 - Remote tab titles are always URLs [r=mbrubeck]
authorMark Finkle <mfinkle@mozilla.com>
Fri, 10 Sep 2010 17:24:18 -0400
changeset 66563 9f2baf1caf20498df0f51cb76505f36004363203
parent 66562 7414284043f265c814abe9026160ffcb708e7e9d
child 66564 791f5b7ee42fa8b6b34e19c8cd98d793b92325db
child 66644 a9515c975d686b0c7476eede0ccaf87185646bc4
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmbrubeck
bugs595343
Bug 595343 - Remote tab titles are always URLs [r=mbrubeck]
mobile/chrome/content/bindings.xml
--- a/mobile/chrome/content/bindings.xml
+++ b/mobile/chrome/content/bindings.xml
@@ -1218,17 +1218,17 @@
             client.tabs.forEach(function({title, urlHistory, icon}) {
               let pageUrl = urlHistory[0];
 
               // Skip tabs that are already open
               if (engine.locallyOpenTabMatchesURL(pageUrl))
                 return;
 
               tabs.push({
-                title: title ? pageUrl : title,
+                title: title || pageUrl,
                 uri: pageUrl,
                 icon: Weave.Utils.getIcon(icon, "chrome://browser/skin/images/tab.png")
               });
             });
           };
 
           return tabs;
         ]]></body>