Fix a bug that prevents NPAPI plugins from retrieving cookies. b=526462 r=roc

This commit is contained in:
Josh Aas 2009-11-25 02:40:46 -05:00
parent 84b496e99b
commit be5277e691

View File

@ -2432,9 +2432,9 @@ _getvalueforurl(NPP instance, NPNURLVariable variable, const char *url,
}
nsXPIDLCString cookieStr;
if (NS_FAILED(cookieService->GetCookieString(uri, nsnull,
getter_Copies(cookieStr))) ||
!cookieStr) {
nsresult cookieReturn = cookieService->GetCookieString(uri, nsnull,
getter_Copies(cookieStr));
if (NS_FAILED(cookieReturn) || !cookieStr) {
return NPERR_GENERIC_ERROR;
}