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 42694ea646
commit a4b1dd24fa

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;
}