gecko-dev/caps
Nicholas Nethercote a518709339 Bug 1587162 - Fix UBSAN complaints about pref callbacks. r=erahm
Lots of these callbacks have a non-`void*` final parameter, which UBSAN
complains about. This commit changes them to have a `void*` parameter.

This requires undoing the machinery added in the first two commits of bug
1473631: `TypePrefChangeFunc` and `PREF_CHANGE_METHOD`. The resulting code is
simpler (which is good) and more boilerplate-y (which is bad) but avoids the
undefined behaviour (which is good).

Differential Revision: https://phabricator.services.mozilla.com/D50901

--HG--
extra : moz-landing-system : lando
2019-11-01 02:57:20 +00:00
..
tests Bug 1534339 - make OriginAttributes deserializable; r=baku 2019-10-23 14:10:19 +00:00
BasePrincipal.cpp Bug 1585664 - Add GetAsciiSpecForLogging and update callers r=ckerschb 2019-10-22 16:03:27 +00:00
BasePrincipal.h Bug 1585664 - Add GetAsciiSpecForLogging and update callers r=ckerschb 2019-10-22 16:03:27 +00:00
ContentPrincipal.cpp Bug 1558915 - Use infallible nsIURI::SchemeIs in various places r=Ehsan 2019-08-07 19:49:40 +00:00
ContentPrincipal.h Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb 2019-07-08 16:37:45 +00:00
DomainPolicy.cpp Bug 1289211 - Rename InfallibleTArray to nsTArray in caps/ r=bzbarsky 2019-07-10 03:24:29 +00:00
DomainPolicy.h Bug 1289211 - Rename InfallibleTArray to nsTArray in caps/ r=bzbarsky 2019-07-10 03:24:29 +00:00
ExpandedPrincipal.cpp Bug 1547707 - Add in origin attributes to ExpandedPrincipal serialization. r=ckerschb 2019-06-05 11:27:16 +00:00
ExpandedPrincipal.h Bug 1547707 - Add in origin attributes to ExpandedPrincipal serialization. r=ckerschb 2019-06-05 11:27:16 +00:00
moz.build Bug 1508939 - cpp serialization r=ckerschb,mccr8,mikedeboer 2019-06-03 12:37:12 +00:00
nsIAddonPolicyService.idl Bug 1581611 Part 1: add content_scripts to the extension content_security_policy r=rpl,bzbarsky 2019-11-01 06:02:45 +00:00
nsIDomainPolicy.idl
nsIPrincipal.idl Bug 1585664 - Add GetAsciiSpecForLogging and update callers r=ckerschb 2019-10-22 16:03:27 +00:00
nsIScriptSecurityManager.idl Bug 1588461 - Added OA StripAttributes flag for privateBrowsingId. r=johannh,ckerschb 2019-10-24 14:18:54 +00:00
nsJSPrincipals.cpp Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-10-21 14:13:44 +00:00
nsJSPrincipals.h Bug 1576254 - Add isSystemOrAddonPrincipal to JSPrincipal and nsJSPrincipals r=luke 2019-10-04 17:37:36 +00:00
nsScriptSecurityManager.cpp Bug 1587162 - Fix UBSAN complaints about pref callbacks. r=erahm 2019-11-01 02:57:20 +00:00
nsScriptSecurityManager.h Bug 1587162 - Fix UBSAN complaints about pref callbacks. r=erahm 2019-11-01 02:57:20 +00:00
NullPrincipal.cpp Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb 2019-07-08 16:37:45 +00:00
NullPrincipal.h Bug 1508939 - cpp serialization r=ckerschb,mccr8,mikedeboer 2019-06-03 12:37:12 +00:00
NullPrincipalURI.cpp Bug 1556747 - Remove UUIDGenerator dependency of NullPrincipalURI.cpp r=ckerschb 2019-06-05 12:07:33 +00:00
NullPrincipalURI.h Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan 2019-05-01 08:47:10 +00:00
OriginAttributes.cpp Bug 1588461 - Added OA StripAttributes flag for privateBrowsingId. r=johannh,ckerschb 2019-10-24 14:18:54 +00:00
OriginAttributes.h Bug 1588461 - Added OA StripAttributes flag for privateBrowsingId. r=johannh,ckerschb 2019-10-24 14:18:54 +00:00
SystemPrincipal.cpp Bug 1508939 - cpp serialization r=ckerschb,mccr8,mikedeboer 2019-06-03 12:37:12 +00:00
SystemPrincipal.h Bug 1508939 - cpp serialization r=ckerschb,mccr8,mikedeboer 2019-06-03 12:37:12 +00:00