зеркало из 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
|
// add predefined functions to pac
|
||||||
var mypac = pacUtils + pac;
|
var mypac = pacUtils + pac;
|
||||||
// evaluate loded js file
|
|
||||||
evalInSandbox(mypac, ProxySandBox, pacURL);
|
|
||||||
ProxySandBox.myIpAddress = myIpAddress;
|
ProxySandBox.myIpAddress = myIpAddress;
|
||||||
ProxySandBox.dnsResolve = dnsResolve;
|
ProxySandBox.dnsResolve = dnsResolve;
|
||||||
ProxySandBox.alert = proxyAlert;
|
ProxySandBox.alert = proxyAlert;
|
||||||
|
// evaluate loaded js file
|
||||||
|
evalInSandbox(mypac, ProxySandBox, pacURL);
|
||||||
LocalFindProxyForURL=ProxySandBox.FindProxyForURL;
|
LocalFindProxyForURL=ProxySandBox.FindProxyForURL;
|
||||||
this.done = true;
|
this.done = true;
|
||||||
},
|
},
|
||||||
|
|
Загрузка…
Ссылка в новой задаче