mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1210321 - Convert to external type before calling action. r=smaug
This commit is contained in:
parent
db333a4be4
commit
79c0bf582b
@ -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); \
|
||||
|
Loading…
Reference in New Issue
Block a user