mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-20 22:27:31 +09:00
moebius#123: DOM - Events - support createEvent("FocusEvent")
https://github.com/MoonchildProductions/moebius/pull/123
This commit is contained in:
parent
61ce67c968
commit
f0c237ae6d
3 changed files with 5 additions and 28 deletions
|
|
@ -1056,6 +1056,11 @@ EventDispatcher::CreateEvent(EventTarget* aOwner,
|
||||||
LOG_EVENT_CREATION(STORAGEEVENT);
|
LOG_EVENT_CREATION(STORAGEEVENT);
|
||||||
return NS_NewDOMStorageEvent(aOwner);
|
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
|
#undef LOG_EVENT_CREATION
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,10 +12,6 @@
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
bug: https://github.com/whatwg/dom/issues/362, 1314303
|
bug: https://github.com/whatwg/dom/issues/362, 1314303
|
||||||
|
|
||||||
[If the event's initialized flag is not set, an InvalidStateError must be thrown (FocusEvent).]
|
|
||||||
expected: FAIL
|
|
||||||
bug: https://github.com/whatwg/dom/issues/362, 1314303
|
|
||||||
|
|
||||||
[If the event's initialized flag is not set, an InvalidStateError must be thrown (IDBVersionChangeEvent).]
|
[If the event's initialized flag is not set, an InvalidStateError must be thrown (IDBVersionChangeEvent).]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
bug: https://github.com/whatwg/dom/issues/362, 1314303
|
bug: https://github.com/whatwg/dom/issues/362, 1314303
|
||||||
|
|
|
||||||
|
|
@ -76,30 +76,6 @@
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
bug: https://github.com/whatwg/dom/issues/362, 1314303
|
bug: https://github.com/whatwg/dom/issues/362, 1314303
|
||||||
|
|
||||||
[FocusEvent should be an alias for FocusEvent.]
|
|
||||||
expected: FAIL
|
|
||||||
bug: https://github.com/whatwg/dom/issues/362, 1314303
|
|
||||||
|
|
||||||
[createEvent('FocusEvent') should be initialized correctly.]
|
|
||||||
expected: FAIL
|
|
||||||
bug: https://github.com/whatwg/dom/issues/362, 1314303
|
|
||||||
|
|
||||||
[focusevent should be an alias for FocusEvent.]
|
|
||||||
expected: FAIL
|
|
||||||
bug: https://github.com/whatwg/dom/issues/362, 1314303
|
|
||||||
|
|
||||||
[createEvent('focusevent') should be initialized correctly.]
|
|
||||||
expected: FAIL
|
|
||||||
bug: https://github.com/whatwg/dom/issues/362, 1314303
|
|
||||||
|
|
||||||
[FOCUSEVENT should be an alias for FocusEvent.]
|
|
||||||
expected: FAIL
|
|
||||||
bug: https://github.com/whatwg/dom/issues/362, 1314303
|
|
||||||
|
|
||||||
[createEvent('FOCUSEVENT') should be initialized correctly.]
|
|
||||||
expected: FAIL
|
|
||||||
bug: https://github.com/whatwg/dom/issues/362, 1314303
|
|
||||||
|
|
||||||
[IDBVersionChangeEvent should be an alias for IDBVersionChangeEvent.]
|
[IDBVersionChangeEvent should be an alias for IDBVersionChangeEvent.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
bug: https://github.com/whatwg/dom/issues/362, 1314303
|
bug: https://github.com/whatwg/dom/issues/362, 1314303
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue