Bug 1096146, Patch 1: No default actions of keydown event should be made if mozbrowserbeforekeydown event is defaultPrevented, r=smaug.
Bug 1096146, Patch 2: Mochitest, r=smaug.