From bcfee30930cc952b22a51374e3f863b7370a1697 Mon Sep 17 00:00:00 2001 From: "darin%meer.net" Date: Tue, 15 Jun 2004 23:20:50 +0000 Subject: [PATCH] fixes bug 246872 "PAC: myIpAddress gives 'myIpAddress is not defined' error" r+sr=shaver --- netwerk/base/src/nsProxyAutoConfig.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netwerk/base/src/nsProxyAutoConfig.js b/netwerk/base/src/nsProxyAutoConfig.js index 56ca1cc22eb..e6271875406 100644 --- a/netwerk/base/src/nsProxyAutoConfig.js +++ b/netwerk/base/src/nsProxyAutoConfig.js @@ -118,11 +118,11 @@ nsProxyAutoConfig.prototype = { } // add predefined functions to pac var mypac = pacUtils + pac; - // evaluate loded js file - evalInSandbox(mypac, ProxySandBox, pacURL); ProxySandBox.myIpAddress = myIpAddress; ProxySandBox.dnsResolve = dnsResolve; ProxySandBox.alert = proxyAlert; + // evaluate loaded js file + evalInSandbox(mypac, ProxySandBox, pacURL); LocalFindProxyForURL=ProxySandBox.FindProxyForURL; this.done = true; },