Bug 1015841 - [Messages][Refresh] Recipients panel visible area handling. r=julien

JS-based solution
can you try to use sinon instead? I'd like to make this mock a lot dumber in the future, and using its "emit" function is in the way of this