From 2cdccd4952cdbfa05ff69051903794f7e82a0c21 Mon Sep 17 00:00:00 2001 From: "sgehani%netscape.com" Date: Fri, 30 Nov 2001 00:30:22 +0000 Subject: [PATCH] Open a new window if one isn't around when users select the ``Search the Web'' menu item from the ``Search'' menu. b=83329; r=morse; sr=sfraser --- xpfe/communicator/resources/content/builtinURLs.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xpfe/communicator/resources/content/builtinURLs.js b/xpfe/communicator/resources/content/builtinURLs.js index b5704623c72..5eb537454f3 100644 --- a/xpfe/communicator/resources/content/builtinURLs.js +++ b/xpfe/communicator/resources/content/builtinURLs.js @@ -152,9 +152,13 @@ function xlateURL(key) function loadXURL(key) { - debug_dump("loadXURL call with " + key + "\n"); + debug_dump("loadXURL call with " + key + "\n"); - window._content.location.href = xlateURL(key); + var url = xlateURL(key); + if (window._content) + window._content.location.href = url; + else + window.open(url); // on mac, there maybe no open windows: see bug 83329 } loadDS();