зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1210321 - Convert to external type before calling action. r=smaug
This commit is contained in:
Родитель
2e3a1cee0d
Коммит
4a94b0d70f
|
@ -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); \
|
||||
|
|
Загрузка…
Ссылка в новой задаче