<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Regression (Safari 10.1): Pressing Return in a contenteditable no longer inserts a line break under certain conditions"
href="https://bugs.webkit.org/show_bug.cgi?id=167525#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Regression (Safari 10.1): Pressing Return in a contenteditable no longer inserts a line break under certain conditions"
href="https://bugs.webkit.org/show_bug.cgi?id=167525">bug 167525</a>
from <span class="vcard"><a class="email" href="mailto:wenson_hsieh@apple.com" title="Wenson Hsieh <wenson_hsieh@apple.com>"> <span class="fn">Wenson Hsieh</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=167525#c2">comment #2</a>)
<span class="quote">> Oh shoot, this is because I accidentally changed:
>
> element.dispatchEvent(InputEvent::create(eventNames().inputEvent, inputType,
> true, false, element.document().defaultView(), data, WTFMove(dataTransfer),
> targetRanges, 0));
>
> ...to:
>
> element.dispatchScopedEvent(InputEvent::create(eventNames().inputEvent,
> inputType, true, false, element.document().defaultView(), data,
> WTFMove(dataTransfer), targetRanges, 0));
>
> ...while refactoring. I'll fix this ASAP and write a layout test. Thanks,
> Sam!</span >
(actually the other way around: we used to dispatchScopedEvent, and now we dispatch the event immediately)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>