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
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
ExpandedPrincipal.h
NullPrincipal.cpp
NullPrincipal.h
NullPrincipalURI.cpp
NullPrincipalURI.h
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
SystemPrincipal.h
moz.build
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