[xulrunner] Backport patches for GestureEventListener from gecko 29.0