Bug 242150 implement NPN_GetValue of NPNVisOfflineBool
patch by William Bardwell <wbardwel@curl.com> r+sr=jst git-svn-id: svn://10.0.0.236/trunk@161470 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1811,9 +1811,17 @@ _getvalue(NPP npp, NPNVariable variable, void *result)
|
||||
*(NPBool*)result = FALSE;
|
||||
return NPERR_NO_ERROR;
|
||||
|
||||
case NPNVisOfflineBool:
|
||||
*(NPBool*)result = FALSE;
|
||||
case NPNVisOfflineBool: {
|
||||
PRBool offline = PR_FALSE;
|
||||
nsCOMPtr<nsIIOService> ioservice = do_GetService(NS_IOSERVICE_CONTRACTID, &res);
|
||||
if (NS_SUCCEEDED(res))
|
||||
res = ioservice->GetOffline(&offline);
|
||||
if (NS_FAILED(rv))
|
||||
return NPERR_GENERIC_ERROR;
|
||||
|
||||
*(NPBool*)result = offline;
|
||||
return NPERR_NO_ERROR;
|
||||
}
|
||||
|
||||
case NPNVserviceManager: {
|
||||
nsIServiceManager * sm;
|
||||
|
||||
Reference in New Issue
Block a user