This is the generalized version of the `ChannelCapability` type, which has now been moved into XPCOM so it can be used by other types. The functionality and checking should be identical. Differential Revision: https://phabricator.services.mozilla.com/D242845