gecko-dev/caps
Kris Maglione bd6d63772a Bug 1407428: Hand out a const array reference for expanded principal whiteList. r=krizsa
The current API makes the life time and ownership of the result array unclear
without careful reading. The result array is always owned by the principal,
and its lifetime tied to the lifetime of the principal itself. Returning a
const array reference makes this clear, and should prevent callers from
accidentally modifying the returned array.

MozReview-Commit-ID: 3f8mhynkKAj

--HG--
extra : source : 237acf2879f6222bc4b076c377bf026d18a6ebef
extra : amend_source : dfaf6e88e3c4758f7fdcf7fb422d457edafab1b7
2017-10-10 15:00:16 -07:00
..
tests Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8 2017-10-15 20:50:39 +01:00
BasePrincipal.cpp Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
BasePrincipal.h Bug 1407056: Part 2 - Override page CSP for loads by expanded principals. r=bz,krizsa 2017-10-07 14:53:30 -07:00
ContentPrincipal.cpp Bug 1396449: Part 1 - Use WebExtensionPolicy objects in extension content principals. r=krizsa 2017-09-05 11:04:43 -07:00
ContentPrincipal.h Bug 1396449: Part 1 - Use WebExtensionPolicy objects in extension content principals. r=krizsa 2017-09-05 11:04:43 -07:00
DomainPolicy.cpp Bug 1326520 - Rename nsIURI.path to pathQueryRef. r=valentin.gosu 2017-07-29 20:50:21 +09:00
DomainPolicy.h
ExpandedPrincipal.cpp Bug 1407428: Hand out a const array reference for expanded principal whiteList. r=krizsa 2017-10-10 15:00:16 -07:00
ExpandedPrincipal.h Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
NullPrincipal.cpp Bug 1326520 - Rename nsIURI.path to pathQueryRef. r=valentin.gosu 2017-07-29 20:50:21 +09:00
NullPrincipal.h Backed out 8 changesets (bug 1356334) for frequent test_ext_contentscript_async_loading.html failures on Android debug on a CLOSED TREE. 2017-08-18 11:32:18 -04:00
NullPrincipalURI.cpp Bug 1386103 (part 2, attempt 3) - Convert nsFixed[C]String uses to nsAuto[C]String. r=erahm. 2017-08-09 20:41:40 +10:00
NullPrincipalURI.h Bug 1386103 (part 2, attempt 3) - Convert nsFixed[C]String uses to nsAuto[C]String. r=erahm. 2017-08-09 20:41:40 +10:00
OriginAttributes.cpp Bug 1344170: set firstPartyDomai on blob: URI. r=smaug 2017-04-24 14:12:03 +08:00
OriginAttributes.h Bug 1349512 - Move OriginAttributes class in separate files, r=qdot 2017-03-22 18:45:40 +01:00
SystemPrincipal.cpp Bug 1390428 (part 9) - Remove nsXPIDLCString. r=erahm. 2017-08-17 15:29:03 +10:00
SystemPrincipal.h Backed out 8 changesets (bug 1356334) for frequent test_ext_contentscript_async_loading.html failures on Android debug on a CLOSED TREE. 2017-08-18 11:32:18 -04:00
moz.build Bug 1399590 - Modify the argument of nsICookiePermission::CanAccess for changing nsIURI to nsIPrincipal. r=jdm 2017-10-03 14:37:11 +08:00
nsIAddonPolicyService.idl Bug 1356334: Part 4 - Add a helper to synchronously get an extension's name from its ID. r=billm 2017-08-11 21:22:18 -07:00
nsIDomainPolicy.idl bug 1303096 - Stop sending sync messages soon after content process start-up r=billm 2017-02-05 00:52:38 -05:00
nsIPrincipal.idl Bug 1407428: Hand out a const array reference for expanded principal whiteList. r=krizsa 2017-10-10 15:00:16 -07:00
nsIScriptSecurityManager.idl Bug 1387805 - Remove [deprecated] nsIScriptSecurityManager.getCodebasePrincipal(). r=bz 2017-08-06 15:31:31 +09:00
nsJSPrincipals.cpp Bug 1390428 (part 9) - Remove nsXPIDLCString. r=erahm. 2017-08-17 15:29:03 +10:00
nsJSPrincipals.h Bug 1297300 - Add missing checks to GetSpec() calls in caps/ and js/. r=mrbkap. 2016-08-30 14:22:04 +10:00
nsScriptSecurityManager.cpp Bug 1407428: Hand out a const array reference for expanded principal whiteList. r=krizsa 2017-10-10 15:00:16 -07:00
nsScriptSecurityManager.h Bug 1396449: Part 1 - Use WebExtensionPolicy objects in extension content principals. r=krizsa 2017-09-05 11:04:43 -07:00