rem: if (!this._confirmOpenTabs(RDFC.GetCount())) 
add:   while (containerChildren.hasMoreElements()) { var res = containerChildren.getNext().QueryInterface(kRDFRSCIID); var type = BookmarksUtils.resolveType(res);   if (type == "Bookmark" || type == "LivemarkBookmark" || type == "ImmutableBookmark" || type == "IEFavorite" || type == "FileSystemObject") numTabsToOpen++; }  if (!this._confirmOpenTabs(numTabsToOpen)) 
context:   openGroupBookmark: function (aURI, aTargetBrowser)  {    var w = getTopWin();    if (!w)      // no browser window is open, we have to open the group into a new window      aTargetBrowser = "window";    var resource = RDF.GetResource(aURI);    var urlArc   = RDF.GetResource(gNC_NS+"URL");    RDFC.Init(BMDS, resource);    var containerChildren = RDFC.GetElements();    if (!this._confirmOpenTabs(RDFC.GetCount()))      return;    if (aTargetBrowser == "current" || aTargetBrowser == "tab") {      var browser  = w.document.getElementById("content");      var tabPanels = browser.browsers;      var tabs = browser.mTabContainer.childNodes;      var tabCount  = tabPanels.length;      var doReplace = PREF.getBoolPref("browser.tabs.loadFolderAndReplace");      var loadInBackground = PREF.getBoolPref("browser.tabs.loadBookmarksInBackground");      var index0;      if (doReplace)        index0 = 0;      else {        for (index0=tabCount-1; index0>=0; --index0)          if (tabPanels[index0].webNavigation.currentURI.spec != "about:blank")            break;        ++index0;      }      var index  = index0;      while (containerChildren.hasMoreElements()) {        var res = containerChildren.getNext().QueryInterface(kRDFRSCIID);        var target = BMDS.GetTarget(res, urlArc, true);        if (target) {          var uri = target.QueryInterface(kRDFLITIID).Value;          if (index < tabCount)            tabPanels[index].loadURI(uri);          else {            // This is not a modal sub-action of a given tab/document within a window            // since opening a bookmarks group replaces all existing tabs in the window,            // closing extras. If this ever changes to be augmentative, this code will            // have to change to probably just use <tabbrowser>.loadTabs() which figures            // out whether or not owner should be set.             browser.addTab(uri);          }          ++index;        }      }      // If the bookmark group was completely invalid, just bail.      if (index == index0)        return;      // focus the first tab if prefs say to      if (!loadInBackground || doReplace) {        // Select the first tab in the group.        // Set newly selected tab after quick timeout, otherwise hideous focus problems        // can occur because new presshell is not ready to handle events        function selectNewForegroundTab(browser, tab) {          browser.selectedTab = tab;        }        setTimeout(selectNewForegroundTab, 0, browser, tabs[index0]);      }      // Close any remaining open tabs that are left over.      // (Always skipped when we append tabs)      for (var i = tabCount-1; i >= index; --i)        browser.removeTab(tabs[i]);      // and focus the content      w.content.focus();    } else if (aTargetBrowser == "window") {      var URIs = [];      while (containerChildren.hasMoreElements()) {        var res = containerChildren.getNext().QueryInterface(kRDFRSCIID);        var target = BMDS.GetTarget(res, urlArc, true);        if (target)          URIs.push(target.QueryInterface(kRDFLITIID).Value);      }      openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no", URIs.join("|"));    }  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a76af687ae3a360612ed0944c267d55ad8be510c/bookmarks.js/clean/browser/components/bookmarks/content/bookmarks.js