Bug 989198, Patch 1: Implementation of InternalBeforeAfterKeyboardEvent, r=smaug,masayuki
---
 widget/BasicEvents.h              |    5 +++
 widget/EventClassList.h           |    1 +
 widget/TextEvents.h               |   72 +++++++++++++++++++++++++++++++++++--
 widget/nsGUIEventIPC.h            |   31 ++++++++++++++++
 widget/shared/WidgetEventImpl.cpp |    4 +++
 5 files changed, 111 insertions(+), 2 deletions(-)
Bug 989198, Patch 2: Implementation of BeforeAfterKeyboardEvent, sr=smaug, r=masayuki.
---
 dom/events/BeforeAfterKeyboardEvent.cpp          |   92 ++++++++++++++++++++++
 dom/events/BeforeAfterKeyboardEvent.h            |   45 +++++++++++
 dom/events/EventDispatcher.cpp                   |    3 +
 dom/events/KeyboardEvent.cpp                     |   60 ++++++++------
 dom/events/KeyboardEvent.h                       |    8 +-
 dom/events/moz.build                             |    2 +
 dom/events/test/test_all_synthetic_events.html   |    4 +
 dom/interfaces/events/nsIDOMEvent.idl            |    7 ++
 dom/tests/mochitest/general/test_interfaces.html |   48 ++++++-----
 dom/webidl/BeforeAfterKeyboardEvent.webidl       |   24 ++++++
 dom/webidl/moz.build                             |    1 +
 11 files changed, 250 insertions(+), 44 deletions(-)
 create mode 100644 dom/events/BeforeAfterKeyboardEvent.cpp
 create mode 100644 dom/events/BeforeAfterKeyboardEvent.h
 create mode 100644 dom/webidl/BeforeAfterKeyboardEvent.webidl
Bug 989198, Patch 3: Dispatch BeforeAfterKeyboardEvent on b2g, r=smaug
---
 b2g/app/b2g.js                   |    3 +
 content/base/src/nsGkAtomList.h  |    4 +
 dom/events/EventNameList.h       |   16 +++
 dom/events/EventStateManager.cpp |    6 +
 dom/ipc/PBrowser.ipdl            |    2 +
 dom/ipc/TabChild.cpp             |    6 +-
 dom/ipc/TabParent.cpp            |   24 ++++
 dom/ipc/TabParent.h              |    1 +
 layout/base/nsIPresShell.h       |   12 +-
 layout/base/nsPresShell.cpp      |  250 ++++++++++++++++++++++++++++++++++++++
 layout/base/nsPresShell.h        |   26 ++++
 modules/libpref/init/all.js      |    3 +
 12 files changed, 350 insertions(+), 3 deletions(-)
Bug 989198, Patch 4: Dispatch both chrome event and key event for hardward keys, and add new permission, r=fabrice.
---
 b2g/chrome/content/shell.js       |   13 ++++++++-----
 dom/apps/PermissionsTable.jsm     |    6 ++++++
 testing/mochitest/manifest.webapp |    3 ++-
 3 files changed, 16 insertions(+), 6 deletions(-)
Bug 989198, Patch 5: Mochitest for BeforeAfterKeyboardEvent, r=smaug.
---
 dom/events/test/bug989198_embedded.html            |   20 ++
 dom/events/test/bug989198_helper.js                |  200 ++++++++++++++++++++
 dom/events/test/mochitest.ini                      |    9 +
 .../test/test_dom_before_after_keyboard_event.html |  117 ++++++++++++
 ...est_dom_before_after_keyboard_event_remote.html |  142 ++++++++++++++
 5 files changed, 488 insertions(+)
 create mode 100644 dom/events/test/bug989198_embedded.html
 create mode 100644 dom/events/test/bug989198_helper.js
 create mode 100644 dom/events/test/test_dom_before_after_keyboard_event.html
 create mode 100644 dom/events/test/test_dom_before_after_keyboard_event_remote.html