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