nsIPolicyContainer.idl (805B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 #include "nsISerializable.idl" 6 7 interface nsIContentSecurityPolicy; 8 9 [scriptable, builtinclass, uuid(c9da865e-c3d7-4aa1-a271-0f571f013c30)] 10 interface nsIPolicyContainer : nsISerializable { 11 // Unfortunately, we have to expose CSP for now. For now, we only expose it as readonly. 12 [infallible] readonly attribute nsIContentSecurityPolicy csp; 13 14 // Please avoid using this method. We only expose it to allow devtools to create a 15 // policy container from a CSP. 16 // (It is used by SessionHistory too but it is only while we migrate fully) 17 void initFromCSP(in nsIContentSecurityPolicy aCSP); 18 };