Commit Graph

8 Commits

Author SHA1 Message Date
Moonchild 9ad680cfc4 Issue #2736 - Part 1: Provide more consistent principals to CSP.
We're currently fairly vague and inconsistent about the values we provide to
content policy implementations for requestOrigin and requestPrincipal. In some
cases they're the triggering principal, sometimes the loading principal,
sometimes the channel principal.

Our existing content policy implementations which require or expect a
loading principal currently retrieve it from the context node.
Since no current callers require the principal to be the loading
principal, and some already expect it to be the triggering principal
(which there's currently no other way to retrieve), a choice was made
to pass the triggering principal whenever possible, but use the loading
principal to determine the origin URL.
2025-05-14 14:21:46 +08:00
Moonchild d4eac725fd Issue #1877 - Resolve RELEASE_OR_BETA conditionals. 2022-04-21 21:46:47 +08:00
Matt A. Tobin cc403750d3 Issue #65 - Remove AppConstants from toolkit/modules
Except for secondscreen
2020-02-07 07:55:51 +08:00
roytam1 65ca6d8036 Revert "[WebRequest] Remove AddonManagerPermissions leftovers" 2020-02-07 07:49:44 +08:00
wolfbeast 690fb97392 [WebRequest] Remove AddonManagerPermissions leftovers
This was added as part of the WebExtension sec issue CVE-2017-5389.
Since we no longer have this interface, it needed to be removed to
prevent errors in the WebRequest channel callback.
2020-01-31 07:43:09 +08:00
janekptacijarabaci d180a351b0 Added Ci.nsIContentPolicy.TYPE_SAVEAS_DOWNLOAD to next files 2019-02-16 00:03:28 +08:00
janekptacijarabaci 9e52126f1a Bug 1329288: Allow content policy consumers to identify contentPolicy checks from docshell 2019-02-15 23:49:24 +08:00
roytam1 dcd9973243 import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00