Bug 423848 - Open All in Tabs option does not open Favorites Toolbar folder. r=dietrich.

This commit is contained in:
mozilla.mano@sent.com 2008-04-02 13:05:57 -07:00
parent cb42931d3d
commit d5b7b06b81

View File

@ -742,6 +742,13 @@ var PlacesUIUtils = {
*/
getViewForNode: function PU_getViewForNode(aNode) {
var node = aNode;
// the view for a <menu> of which its associated menupopup is a places view,
// is the menupopup
if (node.localName == "menu" && !node.node &&
node.firstChild.getAttribute("type") == "places")
return node.firstChild;
while (node) {
// XXXmano: Use QueryInterface(nsIPlacesView) once we implement it...
if (node.getAttribute("type") == "places")