mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Fix a bug that prevents NPAPI plugins from retrieving cookies. b=526462 r=roc
This commit is contained in:
parent
84b496e99b
commit
be5277e691
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user