Bug 1041124 - [Messages][Refactoring] Make use of EventDispatcher in MessageManager. r=julien

it's actually useful for running in Firefox where the API is not available. Maybe the desktop mock that emulates the API has not the function, but you're right, maybe we can add the function returning something to the desktop mock.