diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-04-23 11:44:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-23 11:44:47 +0200 |
commit | d220a5e6aaa7410b8c62fd3f7f37e8fb853e5797 (patch) | |
tree | 713c4895ba4c8f1a5d7aa005a38466205b6c64a7 /dom | |
parent | 531abf25517fd6b130bc5a1f799becf33684bb43 (diff) | |
parent | 9957290b5a27555aeebd9c8ce0e6891fee747fee (diff) | |
download | UXP-d220a5e6aaa7410b8c62fd3f7f37e8fb853e5797.tar UXP-d220a5e6aaa7410b8c62fd3f7f37e8fb853e5797.tar.gz UXP-d220a5e6aaa7410b8c62fd3f7f37e8fb853e5797.tar.lz UXP-d220a5e6aaa7410b8c62fd3f7f37e8fb853e5797.tar.xz UXP-d220a5e6aaa7410b8c62fd3f7f37e8fb853e5797.zip |
Merge pull request #236 from janekptacijarabaci/js_dom_createEvent_FocusEvent_1
moebius#123: DOM - Events - support createEvent("FocusEvent")
Diffstat (limited to 'dom')
-rw-r--r-- | dom/events/EventDispatcher.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dom/events/EventDispatcher.cpp b/dom/events/EventDispatcher.cpp index a1d0675ae..65f01844b 100644 --- a/dom/events/EventDispatcher.cpp +++ b/dom/events/EventDispatcher.cpp @@ -1056,6 +1056,11 @@ EventDispatcher::CreateEvent(EventTarget* aOwner, LOG_EVENT_CREATION(STORAGEEVENT); return NS_NewDOMStorageEvent(aOwner); } + if (aEventType.LowerCaseEqualsLiteral("focusevent")) { + RefPtr<Event> event = NS_NewDOMFocusEvent(aOwner, aPresContext, nullptr); + event->MarkUninitialized(); + return event.forget(); + } #undef LOG_EVENT_CREATION |