gecko-dev/caps
Kris Maglione 84fb189b82 Bug 1407056: Part 2 - Override page CSP for loads by expanded principals. r=bz,krizsa
Per the CSP specification, content injected by extensions is meant to be
exempt from page CSP. This patch takes care of the most common case of content
injected by extension content scripts, which always have expanded principals
which inherit from the page principal.

In a follow-up, we'll probably need to extend the exemption to stylesheet
content loaded by extension codebase principals.

MozReview-Commit-ID: GlY887QAb5V

--HG--
extra : rebase_source : 1371b4e4e7f330b7f7721d4aa169fcb52a7622d0
2017-10-07 14:53:30 -07:00
..
tests Bug 1186409 - Use Cu.getGlobalForObject when importing properties off a JSM global. r=kmag 2017-06-23 13:51:14 -07: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 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
ExpandedPrincipal.h Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11: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 1396449: Part 1 - Use WebExtensionPolicy objects in extension content principals. r=krizsa 2017-09-05 11:04:43 -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 1363200 - JSAPI for realms: Change a few XPConnect methods to take Realm arguments instead of JSCompartments. r=mrbkap 2017-06-28 12:31:53 -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
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