Bug 1581859: Part 3a - Add do_GetProperty helper for nsIPropertyBag2. r=mccr8
commit136038c0cb6e96936554823bfe853ea7bd76a9ee
authorKris Maglione <maglione.k@gmail.com>
Mon, 22 Mar 2021 20:12:15 +0000 (22 20:12 +0000)
committerKris Maglione <maglione.k@gmail.com>
Mon, 22 Mar 2021 20:12:15 +0000 (22 20:12 +0000)
treecc941be2c6722cad87d016e0eff9d80e5497c881
parent1095dd88b9ab7e861cdf4398367e9c36535142e2
Bug 1581859: Part 3a - Add do_GetProperty helper for nsIPropertyBag2. r=mccr8

There currently isn't a typesafe way to get a property with a given interface
from a property bag from C++. This patch adds one, following the pattern of
similar helpers, like `do_GetInterface`.

Differential Revision: https://phabricator.services.mozilla.com/D103210
xpcom/ds/nsHashPropertyBag.cpp
xpcom/ds/nsIPropertyBag2.idl