Bug 1210321 - Convert to external type before calling action. r=smaug

This commit is contained in:
Morris Tseng 2015-10-02 09:51:18 +08:00
Родитель 2e3a1cee0d
Коммит 4a94b0d70f
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -14,6 +14,7 @@
#ifndef __nsContentPolicyUtils_h__
#define __nsContentPolicyUtils_h__
#include "nsContentUtils.h"
#include "nsIContentPolicy.h"
#include "nsIContent.h"
#include "nsIScriptSecurityManager.h"
@ -194,7 +195,9 @@ NS_CP_ContentTypeName(uint32_t contentType)
do_GetService( \
"@mozilla.org/data-document-content-policy;1"); \
if (dataPolicy) { \
dataPolicy-> action (contentType, contentLocation, \
nsContentPolicyType externalType = \
nsContentUtils::InternalContentPolicyTypeToExternal(contentType);\
dataPolicy-> action (externalType, contentLocation, \
requestOrigin, context, \
mimeType, extra, \
originPrincipal, decision); \