Bug 830858 - Implement a generic way to dispatch events to chrome only, r=jst