Bug 900874 - Register to DOM events instead of system messages