зеркало из https://github.com/mozilla/pjs.git
Fix for bug 101658: leaving Auto proxy URL blank will cause browser to
crash. (r=tao) Displaying error message if auto proxy URL is blank.
This commit is contained in:
Родитель
8584e11c63
Коммит
576bf12779
|
@ -25,7 +25,7 @@ Caption=2nd level node
|
|||
Help=Online;%Root%CCKHelp\proxy.html
|
||||
|
||||
[Navigation Controls]
|
||||
onNext=
|
||||
onNext=IsAutourlempty
|
||||
Help=ProxyHelp.ini
|
||||
|
||||
[Image 1999]
|
||||
|
@ -333,4 +333,5 @@ Start_x=20
|
|||
Start_y=220
|
||||
Width=250
|
||||
Height=12
|
||||
onCommand=IsAutourlempty
|
||||
|
||||
|
|
|
@ -658,6 +658,21 @@ BOOL CInterpret::interpret(CString cmds, WIDGET *curWidget)
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (strcmp(pcmd, "IsAutourlempty") == 0)
|
||||
{
|
||||
CString proxyConfigoption = GetGlobal("radioGroup2");
|
||||
if (proxyConfigoption == "3")
|
||||
{
|
||||
WIDGET *wid;
|
||||
wid = findWidget("autoproxyurl");
|
||||
CString autourl = CWizardUI::GetScreenValue(wid);
|
||||
if (autourl == "")
|
||||
{
|
||||
AfxMessageBox("Please enter a URL for automatic proxy configuration", MB_OK);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (strcmp(pcmd, "IsSamedomain") == 0)
|
||||
{
|
||||
CString ispDomainName = GetGlobal("DomainName");
|
||||
|
@ -700,7 +715,7 @@ BOOL CInterpret::interpret(CString cmds, WIDGET *curWidget)
|
|||
}
|
||||
|
||||
}
|
||||
else if(strcmp(pcmd, "IsPortnumEmpty") ==0)
|
||||
else if(strcmp(pcmd, "IsPortnumEmpty") ==0)
|
||||
{
|
||||
WIDGET *wid;
|
||||
wid = curWidget;
|
||||
|
|
Загрузка…
Ссылка в новой задаче