зеркало из https://github.com/mozilla/pjs.git
fixes bug 246872 "PAC: myIpAddress gives 'myIpAddress is not defined' error" r+sr=shaver
This commit is contained in:
Родитель
9ddc5fd676
Коммит
bcfee30930
|
@ -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;
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче