Skip to content

Commit

Permalink
REGRESSION(275267@main): [WPE][GTK][Debug] SHOULD NEVER BE REACHED in…
Browse files Browse the repository at this point in the history
… JSC::JSValue WebCore::toJSNewlyCreated()

https://bugs.webkit.org/show_bug.cgi?id=270339

Reviewed by Ryosuke Niwa.

This assertion was added in 275233@main. The same patch sets
`EventInterfaceType::TouchEvent` for `TouchEvent` in non-empty
constructors but not in the default constructor.

* Source/WebCore/dom/TouchEvent.cpp:
(WebCore::TouchEvent::TouchEvent):

Canonical link: https://commits.webkit.org/275561@main
  • Loading branch information
obyknovenius authored and darinadler committed Mar 1, 2024
1 parent 90015d3 commit 872748a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/WebCore/dom/TouchEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ namespace WebCore {

WTF_MAKE_ISO_ALLOCATED_IMPL(TouchEvent);

TouchEvent::TouchEvent() = default;
TouchEvent::TouchEvent()
: MouseRelatedEvent(EventInterfaceType::TouchEvent)
{
}

TouchEvent::TouchEvent(TouchList* touches, TouchList* targetTouches, TouchList* changedTouches, const AtomString& type,
RefPtr<WindowProxy>&& view, const IntPoint& globalLocation, OptionSet<Modifier> modifiers)
Expand Down

0 comments on commit 872748a

Please sign in to comment.