зеркало из https://github.com/mozilla/gecko-dev.git
Bug 775336: mark the social sidebar browser as an app tab, so that untargeted links get opened in new tabs, r=gavin
This commit is contained in:
Родитель
a01da37e93
Коммит
cb7da34504
|
@ -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();
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче