Bug 449359 - Middle-click on empty folder in Bookmarks Toolbar or Library creates empty new tab. r=mak77+gavin

This commit is contained in:
Dão Gottwald 2009-01-18 11:36:01 +01:00
parent 4b0b5e5530
commit ddbe1e27c5
2 changed files with 6 additions and 0 deletions

View File

@ -1196,6 +1196,9 @@
<parameter name="aLoadInBackground"/>
<parameter name="aReplace"/>
<body><![CDATA[
if (!aURIs.length)
return;
// The tab selected after this new tab is closed (i.e. the new tab's
// "owner") is the next adjacent tab (i.e. not the previously viewed tab)
// when several urls are opened here (i.e. closing the first should select

View File

@ -887,6 +887,9 @@ var PlacesUIUtils = {
* {uri: string, isBookmark: boolean}
*/
_openTabset: function PU__openTabset(aItemsToOpen, aEvent) {
if (!aItemsToOpen.length)
return;
var urls = [];
for (var i = 0; i < aItemsToOpen.length; i++) {
var item = aItemsToOpen[i];