mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Allow creation of "PageTransitionEvent" via createEvent.
Rather than "PageTransition", since it's what IE uses. Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
parent
f27a49964c
commit
9bf698b1a8
@ -860,7 +860,7 @@ EventDispatcher::CreateEvent(EventTarget* aOwner,
|
||||
if (aEventType.LowerCaseEqualsLiteral("beforeunloadevent"))
|
||||
return NS_NewDOMBeforeUnloadEvent(aOwner, aPresContext, nullptr);
|
||||
// XXXkhuey this is broken
|
||||
if (aEventType.LowerCaseEqualsLiteral("pagetransition")) {
|
||||
if (aEventType.LowerCaseEqualsLiteral("pagetransitionevent")) {
|
||||
PageTransitionEventInit init;
|
||||
return PageTransitionEvent::Constructor(aOwner, EmptyString(), init);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user