B2G/gecko/content/base/src/CSPUtils.jsm
// Callback to resume a request once the policy-uri has been fetched
Callback to resume a request once the policy-uri has been fetched
Callback to resume a request once the policy - uri has been fetched
function CSPPolicyURIListener(policyURI, docRequest, csp) {
  this._policyURI = policyURI;    
  this._docRequest = docRequest;  
  this._csp = csp;                
  this._policy = "";              
  this._wrapper = null;           
  this._docURI = docRequest.QueryInterface(Ci.nsIChannel)
                 .URI;    
}
function CSPPolicyURIListener ( policyURI , docRequest , csp ) { this . _policyURI = policyURI ; this . _docRequest = docRequest ; this . _csp = csp ; this . _policy = "" ; this . _wrapper = null ; this . _docURI = docRequest . QueryInterface ( Ci . nsIChannel ) . URI ; }
Callback to resume a request once the policy-uri has been fetched
Callback to resume a request once the policy - uri has been fetched
// location of remote policy // the parent document request // parent document's CSP // contents fetched from policyURI // nsIScriptableInputStream // parent document URI (to be used as 'self')