зеркало из https://github.com/mozilla/pjs.git
b=136819 Returned value from getPSMContentType is compared to wrong enum
Patch from t8m@centrum.cz r=kaie sr=alecf
This commit is contained in:
Родитель
ef2a7ad3c1
Коммит
41d86022a1
|
@ -1896,7 +1896,7 @@ PSMContentListener::CanHandleContent(const char * aContentType,
|
||||||
{
|
{
|
||||||
PRUint32 type;
|
PRUint32 type;
|
||||||
type = getPSMContentType(aContentType);
|
type = getPSMContentType(aContentType);
|
||||||
if (type == nsIX509Cert::UNKNOWN_CERT) {
|
if (type == PSMContentDownloader::UNKNOWN_TYPE) {
|
||||||
*aCanHandleContent = PR_FALSE;
|
*aCanHandleContent = PR_FALSE;
|
||||||
} else {
|
} else {
|
||||||
*aCanHandleContent = PR_TRUE;
|
*aCanHandleContent = PR_TRUE;
|
||||||
|
@ -1915,7 +1915,7 @@ PSMContentListener::DoContent(const char * aContentType,
|
||||||
PRUint32 type;
|
PRUint32 type;
|
||||||
type = getPSMContentType(aContentType);
|
type = getPSMContentType(aContentType);
|
||||||
PR_LOG(gPIPNSSLog, PR_LOG_DEBUG, ("PSMContentListener::DoContent\n"));
|
PR_LOG(gPIPNSSLog, PR_LOG_DEBUG, ("PSMContentListener::DoContent\n"));
|
||||||
if (type != nsIX509Cert::UNKNOWN_CERT) {
|
if (type != PSMContentDownloader::UNKNOWN_TYPE) {
|
||||||
downLoader = new PSMContentDownloader(type);
|
downLoader = new PSMContentDownloader(type);
|
||||||
if (downLoader) {
|
if (downLoader) {
|
||||||
downLoader->QueryInterface(NS_GET_IID(nsIStreamListener),
|
downLoader->QueryInterface(NS_GET_IID(nsIStreamListener),
|
||||||
|
|
Загрузка…
Ссылка в новой задаче