
In this new version the gecko-interfaces are generated directly from the idl-files of the gecko-sdk using the idlparser utility. The generated include files are kept as closely to the original as possible. For now by defaule Gecko 9 is used, as Gecko 10 has a bug which makes it impossible to embed it on Linux systems. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2349 8e941d3f-bd1b-0410-a28a-d453659cc2b4
31 lines
1.8 KiB
PHP
31 lines
1.8 KiB
PHP
type
|
|
|
|
nsIContentSecurityPolicy = interface(nsISupports)
|
|
['{AB36A2BF-CB32-4AA6-AB41-6B4E4444A221}']
|
|
function GetisInitialized(): longbool; safecall;
|
|
procedure SetisInitialized(aisInitialized: longbool); safecall;
|
|
property isInitialized : longbool read GetisInitialized write SetisInitialized;
|
|
function GetreportOnlyMode(): longbool; safecall;
|
|
procedure SetreportOnlyMode(areportOnlyMode: longbool); safecall;
|
|
property reportOnlyMode : longbool read GetreportOnlyMode write SetreportOnlyMode;
|
|
function Getpolicy(): AString; safecall;
|
|
property policy : AString read Getpolicy;
|
|
function GetallowsInlineScript(): longbool; safecall;
|
|
property allowsInlineScript : longbool read GetallowsInlineScript;
|
|
function GetallowsEval(): longbool; safecall;
|
|
property allowsEval : longbool read GetallowsEval;
|
|
procedure logViolationDetails(violationType: idlushort; sourceFile: AString; scriptSample: AString; lineNum: PRInt32); safecall;
|
|
procedure sendReports(blockedURI: AString; violatedDirective: AString; scriptSample: AString; lineNum: PRInt32); safecall;
|
|
procedure scanRequestData(aChannel: nsIHttpChannel); safecall;
|
|
procedure refinePolicy(policyString: AString; selfURI: nsIURI); safecall;
|
|
function permitsAncestry(docShell: nsIDocShell) : longbool; safecall;
|
|
function shouldLoad(aContentType: idlulong; aContentLocation: nsIURI; aRequestOrigin: nsIURI; aContext: nsISupports; aMimeTypeGuess: ACString; aExtra: nsISupports) : idlshort; safecall;
|
|
function shouldProcess(aContentType: idlulong; aContentLocation: nsIURI; aRequestOrigin: nsIURI; aContext: nsISupports; aMimeType: ACString; aExtra: nsISupports) : idlshort; safecall;
|
|
|
|
end;
|
|
|
|
const
|
|
nsIContentSecurityPolicy_VIOLATION_TYPE_INLINE_SCRIPT=1;
|
|
nsIContentSecurityPolicy_VIOLATION_TYPE_EVAL=2;
|
|
|