Bug 935441 - [Keyboard] 2 unit tests failures with the latest firefox builds r=janjongboom

Defines the property on `window` itself.
Merge pull request #13427 from julienw/935441-fix-keyboard-unit-tests

Bug 935441 - [Keyboard] 2 unit tests failures with the latest firefox bu...