I think you wanted to write aEvent.channel here (here is the code sending this event: http://hg.mozilla.org/mozilla-central/annotate/c190422547ed/dom/media/PeerConnection.js#l1027)