From df9e817cc1c32f9d8ba5883ed2d1392dd4ada1cd Mon Sep 17 00:00:00 2001 From: "dougt%netscape.com" Date: Sat, 29 Jul 2006 05:37:11 +0000 Subject: [PATCH] Fixes 87289 - context menu bustage fix - r=gagan@netscape.com, sr=alecf@netscape.com, a=chofmann --- suite/common/nsContextMenu.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/suite/common/nsContextMenu.js b/suite/common/nsContextMenu.js index 1a794feee12..498eef3cef7 100644 --- a/suite/common/nsContextMenu.js +++ b/suite/common/nsContextMenu.js @@ -677,10 +677,9 @@ nsContextMenu.prototype = { // Construct nsIURL. var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); - var uriToAdd = ioService.newURI(base, null); - // Resolve - var result = baseURL.resolve( url ); - return result; + var baseURI = ioService.newURI(base, null); + + return ioService.newURI(baseURI.resolve(url), null); }, // Save specified URL in user-selected file. savePage : function ( url, doNotValidate ) {