From cb7da34504b7e6528353ddceee29c33e40288808 Mon Sep 17 00:00:00 2001 From: Shane Caraveo Date: Wed, 25 Jul 2012 16:27:20 -0700 Subject: [PATCH] Bug 775336: mark the social sidebar browser as an app tab, so that untargeted links get opened in new tabs, r=gavin --- browser/base/content/browser-social.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/browser/base/content/browser-social.js b/browser/base/content/browser-social.js index c08fa5d58d0f..b506c26bb8af 100644 --- a/browser/base/content/browser-social.js +++ b/browser/base/content/browser-social.js @@ -378,6 +378,10 @@ var SocialToolbar = { var SocialSidebar = { // Called once, after window load, when the Social.provider object is initialized init: function SocialSidebar_init() { + let sbrowser = document.getElementById("social-sidebar-browser"); + // setting isAppTab causes clicks on untargeted links to open new tabs + sbrowser.docShell.isAppTab = true; + this.updateSidebar(); },