mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-06 08:40:56 +00:00
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:
parent
2db7201caf
commit
d3beb86682
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user