gecko-dev/xpcom
Kris Maglione c86bc6b1ea Bug 1396676: Return already_AddRefed from cookie service GetSingleton() methods. r=jdm
These methods return an addrefed raw pointer, which makes them easy to use in
ways that cause leaks. If they're to continue returning an addrefed pointer,
they should explicitly return an already_AddRefed.

This also switches to StaticRefPtr with ClearOnShutdown for the cached
pointers for the sake of sanity.

MozReview-Commit-ID: D0lDpU8Hqug

--HG--
extra : rebase_source : 7b199070805fc0472eaf8409932517700ed23d49
2017-09-04 15:05:10 -07:00
..
base Bug 1396676: Return already_AddRefed from cookie service GetSingleton() methods. r=jdm 2017-09-04 15:05:10 -07:00
build Bug 1392884 - Remove nsIAtomService. r=froydnj. 2017-08-25 17:06:58 +10:00
components Bug 1390428 (part 2, attempt 2) - Remove more nsXPIDLCString local variables. r=erahm. 2017-08-21 20:01:27 +10:00
doc
ds Bug 1392884 - Remove nsIAtomService. r=froydnj. 2017-08-25 17:06:58 +10:00
glue Bug 1382099 - Remove MOZ_WIDGET_GONK from xpcom/. r=erahm. 2017-07-21 10:45:39 +10:00
idl-parser Bug 1339178 - Use pytest to run python-tests, r=davehunt 2017-08-29 14:50:33 -04:00
io Bug 1393360 - nsMultiplexInputStream should not QI each stream when checking if seekable, cloneable or IPC serializable, r=smaug 2017-08-25 15:32:13 +02:00
libxpt/xptcall
reflect Bug 1394286 - mips64: fix error correction about stackpointer within function _NS_InvokeByIndex. r=froydnj 2017-08-30 10:01:26 +08:00
rust Bug 1381080 patch 1 - Add ClassFlags::NULL_TERMINATED to strings that require null-termination. r=erahm 2017-07-20 15:46:58 -07:00
string Bug 1395527 part 2 - Delegate IsASCII and IsUTF8 to encoding_rs. r=froydnj 2017-09-01 11:53:31 +03:00
system Bug 1395990 - remove Services.appinfo.isOfficial;r=mossop 2017-09-01 18:57:43 +02:00
tests Bug 1395527 part 1 - Add microbenchmarks for IsASCII and IsUTF8. r=froydnj 2017-08-31 14:46:25 +03:00
threads Bug 1394176 - Use default values for scheduler prefs if the parent process didn't send any. r=billm 2017-08-29 10:30:03 -07:00
typelib Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
windbgdlg
xpidl Bug 1390916 - Always use --track instead of --no-remove for install manifests; r=gps 2017-08-08 17:07:07 -04:00
moz.build
xpcom-config.h.in Bug 1326145 - Remove HAVE_CPP_AMBIGUITY_RESOLVING_USING. r=froydnj 2016-12-29 18:05:20 +11:00
xpcom-private.h.in