From be5277e691af25ae0e25f67c96f663d783fc097c Mon Sep 17 00:00:00 2001 From: Josh Aas Date: Wed, 25 Nov 2009 02:40:46 -0500 Subject: [PATCH] Fix a bug that prevents NPAPI plugins from retrieving cookies. b=526462 r=roc --- modules/plugin/base/src/nsNPAPIPlugin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/plugin/base/src/nsNPAPIPlugin.cpp b/modules/plugin/base/src/nsNPAPIPlugin.cpp index 08d124e6016e..6f0eaa8a0fa6 100644 --- a/modules/plugin/base/src/nsNPAPIPlugin.cpp +++ b/modules/plugin/base/src/nsNPAPIPlugin.cpp @@ -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; }