diff --git a/mobile/chrome/content/browser-ui.js b/mobile/chrome/content/browser-ui.js index e4332887266f..42b6d5d9e9c6 100644 --- a/mobile/chrome/content/browser-ui.js +++ b/mobile/chrome/content/browser-ui.js @@ -2802,7 +2802,7 @@ var SharingUI = { name: "Twitter", callback: function callback(aURL, aTitle) { let url = "http://twitter.com/home?status=" + encodeURIComponent((aTitle ? aTitle+": " : "")+aURL); - Browser.addTab(url, true, Browser.selectedTab); + BrowserUI.newTab(url, Browser.selectedTab); } }, { @@ -2810,14 +2810,14 @@ var SharingUI = { callback: function callback(aURL, aTitle) { let url = "http://www.google.com/reader/link?url=" + encodeURIComponent(aURL) + "&title=" + encodeURIComponent(aTitle); - Browser.addTab(url, true, Browser.selectedTab); + BrowserUI.addTab(url, Browser.selectedTab); } }, { name: "Facebook", callback: function callback(aURL, aTitle) { let url = "http://www.facebook.com/share.php?u=" + encodeURIComponent(aURL); - Browser.addTab(url, true, Browser.selectedTab); + BrowserUI.newTab(url, Browser.selectedTab); } } ] diff --git a/mobile/chrome/content/browser.js b/mobile/chrome/content/browser.js index 423daa67876c..86acd25d746f 100644 --- a/mobile/chrome/content/browser.js +++ b/mobile/chrome/content/browser.js @@ -508,6 +508,7 @@ var Browser = { hideSidebars: function scrollSidebarsOffscreen() { let rect = Elements.browsers.getBoundingClientRect(); this.controlsScrollboxScroller.scrollBy(Math.round(rect.left), 0); + this.tryUnfloatToolbar(); }, hideTitlebar: function hideTitlebar() {