From ef3db6c0d628887acce5732b0f148b62bc006ace Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Thu, 27 Jul 2006 14:50:25 +0000 Subject: [PATCH] fix for blocker #63603 - forgot to implement OpenURL r=timeless a=blocker-baby --- suite/common/history/history.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/suite/common/history/history.js b/suite/common/history/history.js index 014ef0882e2d..dc9a01ccbc1c 100644 --- a/suite/common/history/history.js +++ b/suite/common/history/history.js @@ -58,3 +58,17 @@ var historyDNDObserver = { } }; + +function OpenURL(event, node, root) +{ + if ((event.button != 1) || (event.detail != 2) + || (node.nodeName != "treeitem")) + return false; + + if (node.getAttribute("container") == "true") + return false; + + var url = node.id; + + window.openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no", url); +}