Bug 1031000 - Fix problem with TabSource Prompt. r=blassey
authorRandall Barker <rbarker@mozilla.com>
Thu, 26 Jun 2014 14:21:00 +0200
changeset 191173 fe37b883556e6df22f45c178d518b008558390e1
parent 191172 25e196a33884d1c5a39739ac92e258e20ad701d0
child 191174 1d7abed6da1bfa33b4d9cebf555c066b9107f09c
child 191195 af969bbd0b136bd9d6d550f77a09e79b2edfdf09
push id8436
push usercbook@mozilla.com
push dateFri, 27 Jun 2014 13:56:57 +0000
treeherderb2g-inbound@22ea396750e8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey
bugs1031000
milestone33.0a1
Bug 1031000 - Fix problem with TabSource Prompt. r=blassey
mobile/android/components/TabSource.js
--- a/mobile/android/components/TabSource.js
+++ b/mobile/android/components/TabSource.js
@@ -35,20 +35,20 @@ TabSource.prototype = {
 
     let prompt = new Prompt({
       title: title,
       window: null
     }).setSingleChoiceItems(tabs.map(function(tab) {
       let label;
       if (tab.browser.contentTitle)
         label = tab.browser.contentTitle;
-      else if (tab.browser.contentURI && tab.browser.contentURI.spec)
+      else if (tab.browser.contentURI)
         label = tab.browser.contentURI.spec;
       else
-        label = tab.originalURI;
+        label = tab.originalURI.spec;
       return { label: label,
                icon: "thumbnail:" + tab.id }
     }));
 
     let result = null;
     prompt.show(function(data) {
       result = data.button;
     });