Implement content/chrome events.
Merge pull request #1016 from Gozala/bug/content-events@724632

Bug 724632 - Implement content/chrome events. r=@jsantell