Граф коммитов

10767 Коммитов

Автор SHA1 Сообщение Дата
Greg Tatum ee2694c97d Bug 1719546 - Replace nsBidi with mozilla::intl::Bidi; r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D128793
2021-10-20 14:01:21 +00:00
Masayuki Nakano acf1af36a8 Bug 1736507 - Make `HTMLEditor` updates its specific UI (if there is) after dispatching `input` event r=m_kato
Currently, `EditorBase::EndUpdateViewBatch()` does this, but it's before `input`
event.  Therefore, if an `input` event listener changes the target elements'
position and/or size, user will see broken UI.  Therefore, it should be updated
at editor finishes everything.

Differential Revision: https://phabricator.services.mozilla.com/D128871
2021-10-19 20:45:37 +00:00
Butkovits Atila 01c5e2aed8 Backed out 3 changesets (bug 1719546) for causing SM bustages at Bidi.h. CLOSED TREE
Backed out changeset c4d6ffc7e445 (bug 1719546)
Backed out changeset a1f7ed6c4251 (bug 1719546)
Backed out changeset e69fc596f2c3 (bug 1719546)
2021-10-19 21:09:47 +03:00
Greg Tatum f250d90114 Bug 1719546 - Replace nsBidi with mozilla::intl::Bidi; r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D128793
2021-10-19 16:55:36 +00:00
Dan Minor a9e674d68d Bug 1719746 - Rename Locale to MozLocale; r=platform-i18n-reviewers,zbraniecki
There is also a mozilla::intl::Locale in intl/locale/MozLocale.h. This naming
collision was causing crashes in debug builds where the wrong destructor ended
up being called. This patch renames the intl/locale/MozLocale.h class to
MozLocale.

I've filed Bug 1736017 to move callers of the MozLocale version to the
unified intl/components/Locale version.

Differential Revision: https://phabricator.services.mozilla.com/D128593
2021-10-18 13:38:24 +00:00
Evgenia Kotovich 0d0980ee0d Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D128482
2021-10-18 09:26:33 +00:00
Noemi Erli 2bba3cec69 Backed out changeset 2ab6bb03dcc1 (bug 1576768) for causing failures in test_double_submit.html CLOSED TREE 2021-10-18 02:05:57 +03:00
Evgenia Kotovich 3e3dff109c Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D128482
2021-10-17 14:59:14 +00:00
Ting-Yu Lin 392266a8fd Bug 1733878 - Remove LineBreaker::Prev() in InternetCiter. r=jfkthame,m_kato
This change is a rewrite, and is not expected to change the behavior.
Also, add a testcase exercising wrapping a long line.

Differential Revision: https://phabricator.services.mozilla.com/D128558
2021-10-15 18:10:09 +00:00
Alexandru Michis dac6815201 Backed out changeset 7c08aa027893 (bug 1576768) for causing multiple failures.
CLOSED TREE
2021-10-15 16:52:43 +03:00
Evgenia Kotovich a8b32926fa Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D128482
2021-10-15 12:58:11 +00:00
Masayuki Nakano fc532efa09 Bug 1734771 - part 3: Make `AppendString()` and `AppendSubString()` take `const Text&` instead of `Text*` r=m_kato
Depends on D128139

Differential Revision: https://phabricator.services.mozilla.com/D128140
2021-10-12 15:02:38 +00:00
Masayuki Nakano 1836c00470 Bug 1729170 - Make all methods of `nsTextFragment` take `uint32_t` for the offset and length of text r=smaug
`nsTextFragment` is a storage of data node and DOM offset is `uint32_t`, but
some methods of `nsTextFragment` takes `int32_t` for the offset/length in
its text.  Therefore, callers need to cast from `uint32_t` to `int32_t` if
the offset value is offset in a DOM node.  Therefore, all methods of it should
take `uint32_t` values as offset/length in its text.

Differential Revision: https://phabricator.services.mozilla.com/D127923
2021-10-12 05:05:12 +00:00
Masayuki Nakano d37daf2f82 Bug 1729115 - part 3: Make `IMEStateManager` check whether given focused content matches with null `sContent` in design mode r=m_kato
`nsFocusManager` does not send `focus` event in some cases, e.g., non-editable
root element gets focus.  However, the element may become editable later without
a focus move.  Therefore, even if `IMEStateManager::sContent` is `nullptr`,
`IMEStateManager::UpdateIMEState()` and `IMEStateManager::FocusInEditor()` are
called with focused content when the uncomposed document is in design mode.

With this change, editor does not need to call `IMEStateManager` methods with
`nullptr` when it's in `designMode`.  Therefore, we can get rid of
`GetFocusedContentForIME()` which just returns `nullptr` if focused content is
in design mode.

Differential Revision: https://phabricator.services.mozilla.com/D127612
2021-10-12 04:41:14 +00:00
Masayuki Nakano 25a3c48305 Bug 1732845 - Add `nsINode::IsInDesignMode()` to check whether the node is directly in design mode r=smaug
There are a lot of check of `Document`'s editable state **with** comments. This
means that it's unclear for developers that only `Document` node is editable in
design mode.

Additionally, there are some points which use composed document rather than
uncomposed document even though the raw API uses uncomposed document. Comparing
with the other browsers, checking uncomposed document is compatible behavior,
i.e., nodes in shadow trees are not editable unless `contenteditable`.

Therefore, `nsINode` should have a method to check whether it's in design mode
or not.

Note that it may be called with a node in UA widget.  Therefore, this patch
adds new checks if it's in UA widget subtree or native anonymous subtree,
checking whether it's in design mode with its host.

Differential Revision: https://phabricator.services.mozilla.com/D126764
2021-10-12 03:14:43 +00:00
Sam Foster 37de8c9ba9 Bug 1734719 - Fix the editor/application-handler test when the downloads improvements pref is true. r=Gijs
* bug 1266185 was specifically about the how the editor behaves when the application handler dialog pops up, so I've restored this behavior by setting alwaysAskBeforeHandling true for the octet-stream mime-type

Differential Revision: https://phabricator.services.mozilla.com/D127889
2021-10-11 23:13:51 +00:00
Jonathan Kew fff2fa76a6 Bug 1734590 - Both the static InternetCiter methods are now infallible, so no need to return/check an nsresult. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D127865
2021-10-11 12:20:42 +00:00
Jonathan Kew 71472fbcf2 Bug 1734590 - Eliminate use of LineBreaker::DeprecatedNext in InternetCiter.cpp. r=TYLin
If the old DeprecatedNext() returned needs-more-text, we'd just force a break at the EOL position anyhow;
so the new behavior of Next(), always treating end-of-text as a break position, gives us this for free.

Differential Revision: https://phabricator.services.mozilla.com/D127806
2021-10-11 12:20:41 +00:00
Jonathan Kew b74f5de179 No bug - fix spelling of internal constant name: s/Carridge/Carriage/. r=masayuki DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D127972
2021-10-11 07:38:27 +00:00
Geoff Brown 7e36862b61 Bug 1724296 - Remove many skip-if(verify) test annotations (mochitest pt 2); r=jmaher
This completes the review of skip-if(verify) in mochitest.ini.

Differential Revision: https://phabricator.services.mozilla.com/D127992
2021-10-09 16:07:32 +00:00
Csoregi Natalia e92f158606 Backed out 4 changesets (bug 1734590) for failures on test_xmlserializer.js. CLOSED TREE
Backed out changeset e492f8fd3d53 (bug 1734590)
Backed out changeset 0af985bb7569 (bug 1734590)
Backed out changeset 3751b93ae994 (bug 1734590)
Backed out changeset 45059121c015 (bug 1734590)
2021-10-08 14:41:06 +03:00
Jonathan Kew 7daf89e7fe Bug 1734590 - Both the static InternetCiter methods are now infallible, so no need to return/check an nsresult. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D127865
2021-10-08 10:05:52 +00:00
Jonathan Kew b69ca8f047 Bug 1734590 - Eliminate use of LineBreaker::DeprecatedNext in InternetCiter.cpp. r=TYLin
If the old DeprecatedNext() returned needs-more-text, we'd just force a break at the EOL position anyhow;
so the new behavior of Next(), always treating end-of-text as a break position, gives us this for free.

Differential Revision: https://phabricator.services.mozilla.com/D127806
2021-10-08 10:05:51 +00:00
Ting-Yu Lin e558c2cbd9 Bug 1733872 Part 2 - Add a new LineBreaker::Next(), and deprecate the old Next(). r=m_kato
This patch is similar to Bug 1728708 Part 4, but for line breaker. This
should make the future integration of ICU4X line segmenter easier. A
UAX14 compatible line breaker always breaks at the end of text
(rule LB3 [1]), and ICU4X line segmenter has this behavior, too.

Current LineBreaker::Next() doesn't treat the end of text as a line
break opportunity, so this patch deprecates it by renaming it, and add a
new Next() method.

TestASCIILB() has adopted the new Next(). All the other callers of the
DeprecatedNext (nsPlainTextSerializer, nsXMLContentSerializer,
InternetCiter) should be audited later, possibly with the removal of
Prev() because the all the usages are very close to Prev().

[1] https://www.unicode.org/reports/tr14/#LB3

Differential Revision: https://phabricator.services.mozilla.com/D127379
2021-10-07 07:39:13 +00:00
Masayuki Nakano fb82cd4173 Bug 1725850 - part 24: Port editor/libeditor/crashtests/636074-1.html to WPT r=saschanaz
Depends on D127511

Differential Revision: https://phabricator.services.mozilla.com/D127512
2021-10-05 23:44:54 +00:00
Masayuki Nakano 88c6ffc414 Bug 1725850 - part 23: Port editor/libeditor/crashtests/615450-1.html to WPT r=saschanaz
Depends on D127510

Differential Revision: https://phabricator.services.mozilla.com/D127511
2021-10-05 23:44:54 +00:00
Masayuki Nakano 458ac8f180 Bug 1725850 - part 22: Port editor/libeditor/crashtests/615015-1.html to WPT r=saschanaz
Depends on D127509

Differential Revision: https://phabricator.services.mozilla.com/D127510
2021-10-05 23:44:54 +00:00
Masayuki Nakano 2c7cc7087c Bug 1725850 - part 21: Port editor/libeditor/crashtests/612565-1.html to WPT r=saschanaz
Depends on D127508

Differential Revision: https://phabricator.services.mozilla.com/D127509
2021-10-05 23:44:53 +00:00
Masayuki Nakano 61f689566c Bug 1725850 - part 20: Port editor/libeditor/crashtests/499044-1.html to WPT r=saschanaz
Depends on D127507

Differential Revision: https://phabricator.services.mozilla.com/D127508
2021-10-05 23:44:53 +00:00
Masayuki Nakano f3f0050435 Bug 1725850 - part 19: Port editor/libeditor/crashtests/459613.html to WPT r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D127507
2021-10-05 23:44:53 +00:00
Emilio Cobos Álvarez a002eeaccb Bug 1733945 - Simplify reftest annotations to assume skiaContent == true. r=jrmuizel
Generated with:

  2180efaf7c

Differential Revision: https://phabricator.services.mozilla.com/D127428
2021-10-04 15:19:10 +00:00
Chris Peterson ea48b5e2c8 Bug 1732234 - Fix non-unified build errors in editor/. r=masayuki
Building with `ac_add_options --disable-unified-build` on macOS hits the following -Wunreachable-code-return warnings-as-errors:

editor/libeditor/HTMLEditor.cpp:4341:26 [-Wunreachable-code-return] 'return' will never be executed
editor/libeditor/HTMLTableEditor.cpp:1629:10: warning: 'return' will never be executed [-Wunreachable-code-return]

Differential Revision: https://phabricator.services.mozilla.com/D126441
2021-09-28 04:26:52 +00:00
Masayuki Nakano d7fa9ea462 Bug 1729653 - Make `mozInlineSpellChecker` handle events in the system group at capturing phase r=m_kato
Currently, `mozInlineSpellChecker` handles events in the default group.  This
means that the listener may not run if web app stops the propagation.  For
keeping the event listener order as far as possible, this patch changes to
listen to the event at capturing phase in the system group (editor handles
the events at bubbling phase in the system group).

Additionally, it listens to `keypress` events for handling caret/selection
changes.  However, they should be handled at `keydown` because those keys
are not printable.  Therefore, this patch changes to listen to `keydown`
events, but this could change the race between running the scheduled spellcheck
and following `keypress` event which is dispatched only for chrome code and
C++ event listeners.  However, this may not change it actually because the
race is changed only when the following `keypress` event delays too much.
https://searchfox.org/mozilla-central/rev/2eebd6e256fa0355e08421265e57ee1307836d92/extensions/spellcheck/src/mozInlineSpellChecker.cpp#503-504

Differential Revision: https://phabricator.services.mozilla.com/D126635
2021-09-28 02:47:15 +00:00
Masayuki Nakano 26910d70ce Bug 1725850 - part 18: Port editor/libeditor/crashtests/467647-1.html to WPT r=saschanaz
I think that the crashtests marked as `needs-focus` should wait `focus` event
in the document.  I think that `focus` event is fired only when the window has
focus (*1) and `Element.focus()` steals focus unless chrome UI has focus (*2).
If the testing document hasn't get focus yet, `focus` event will be dispatched
later (*3).

1: https://searchfox.org/mozilla-central/rev/d8d7539593d5a3071841289dee72f971650073ce/dom/base/nsFocusManager.cpp#1672-1681
2: https://searchfox.org/mozilla-central/rev/d8d7539593d5a3071841289dee72f971650073ce/dom/base/nsFocusManager.cpp#1683-1691
3: https://searchfox.org/mozilla-central/rev/d8d7539593d5a3071841289dee72f971650073ce/dom/base/nsFocusManager.cpp#759-777

Depends on D125920

Differential Revision: https://phabricator.services.mozilla.com/D125921
2021-09-22 21:30:54 +00:00
Masayuki Nakano 1e7828e884 Bug 1725850 - part 17: Port editor/libeditor/crashtests/456727-2.html to WPT r=saschanaz
Depends on D125919

Differential Revision: https://phabricator.services.mozilla.com/D125920
2021-09-22 21:30:53 +00:00
Masayuki Nakano 0483379cbe Bug 1725850 - part 16: Port editor/libeditor/crashtests/456727-1.html to WPT r=saschanaz
Depends on D125918

Differential Revision: https://phabricator.services.mozilla.com/D125919
2021-09-22 21:30:53 +00:00
Masayuki Nakano 28bbe04f1b Bug 1725850 - part 15: Port editor/libeditor/crashtests/448329-3.html to WPT r=saschanaz
Depends on D125917

Differential Revision: https://phabricator.services.mozilla.com/D125918
2021-09-22 21:30:52 +00:00
Masayuki Nakano e9d6cc71eb Bug 1725850 - part 14: Port editor/libeditor/crashtests/448329-2.html to WPT r=saschanaz
Depends on D125916

Differential Revision: https://phabricator.services.mozilla.com/D125917
2021-09-22 21:30:52 +00:00
Masayuki Nakano 54be07ba20 Bug 1725850 - part 13: Port editor/libeditor/crashtests/448329-1.html to WPT r=saschanaz
Depends on D125915

Differential Revision: https://phabricator.services.mozilla.com/D125916
2021-09-22 21:30:52 +00:00
Masayuki Nakano c7424ffec6 Bug 1725850 - part 12: Port editor/libeditor/crashtests/430624-1.html to WPT r=saschanaz
Depends on D125914

Differential Revision: https://phabricator.services.mozilla.com/D125915
2021-09-22 21:30:51 +00:00
Masayuki Nakano 0f8cc24fcb Bug 1725850 - part 11: Port editor/libeditor/crashtests/420439.html to WPT r=saschanaz
The test requires to support allowing nested `execCommand` if we want to run
completely.  From point of view of the purose of crashtests, we should allow
it for testing in more complicated situation.  Therefore, this patch allows
it while the test is running by the pref.

Differential Revision: https://phabricator.services.mozilla.com/D125914
2021-09-22 21:30:51 +00:00
Masayuki Nakano 5912f0b3ff Bug 1729480 - Make `keypress` event listener of editor and `execCommand` related methods access editor instance after flushing pending layout r=emilio,smaug
I have no idea how to make the test result stable because the intermittent
failure is caused by a race of `IMEContentObserver`'s content query performend
at vsync and `keypress` event after the `keydown` event.  Therefore, I try to
fix the root cause of the failure.

There are two paths reaching a public method of editor with pending
notifications.  One is `keypress` event listener of the editor.  The other is
`execCommand` related methods of `Document`.  Therefore, we should make them
flush pending notifications before accessing editor, but the cost may be too
expensive.  So we should consider whether we should flush pending notifications
or not as far as later.

Note that we cannot fix the `beforeinput` cases because flushing pending
notifications after dispatching `beforeinput` event may cause oranges.  It'll
be fixed while I'm working on bug 1710784.

Differential Revision: https://phabricator.services.mozilla.com/D125805
2021-09-17 17:48:05 +00:00
Masayuki Nakano f7705eac76 Bug 1731005 - HTMLEditor::GetActiveEditingHost() does not return editing host if selection is collapsed in `<input>` r=m_kato
If we flush pending notifications before calling `execCommand` in
`insert-*-in-void-element.tentative.html`, `HTMLEditor` does not work because
`GetActiveEditingHost()` returns `nullptr`.  This is wrong because `Selection`
cannot cross native anonymous subtree boundaries and the selection collapsed in
`<input>` element is valid.  Therefore, it should not check whether the content
has independent selection or not.

Differential Revision: https://phabricator.services.mozilla.com/D125791
2021-09-17 00:57:22 +00:00
Masayuki Nakano c0d8a32379 Bug 1730429 - part 2: Delete empty inline elements which become newly empty but preserve the styles for next editing r=m_kato
This change makes deletion of all contents in inline elements compatible with
the other browsers.

Differential Revision: https://phabricator.services.mozilla.com/D125369
2021-09-15 04:13:44 +00:00
Masayuki Nakano eecd5a5f1c Bug 1727840 - Make `DeleteNodeTransaction` allow to create its instance for non-editable text node which was created or modified by an editor r=m_kato
Although we don't have a testcase, `HTMLEditor` may need to delete a text node
if it's created for composition.  If it's not allowed, users may see staying
composition string in disabled editor.

Differential Revision: https://phabricator.services.mozilla.com/D125502
2021-09-15 00:20:19 +00:00
Ting-Yu Lin bd25bca479 Bug 1730084 Part 4 - Clean up and fix an edge case of FindWord(). r=jfkthame
* Rename arguments so that their names are consistent with Next().
* Make the function not assert on an empty string, i.e. aLen == 0, like
Next().
* Fix an undefined behavior when the user passes aTextLen == aOffset.
The methods used to access `aText[aOffset]` that is clearly out of range
because the string may not be null-terminated. After this patch, it
returns a sentinel WordRange when aLen == aPos.
* Add document and gtest TestFindWordWithEmptyString().
* Change the sentinel return value to {aLen,aLen} for FindWord(), and
adapt one caller.

Differential Revision: https://phabricator.services.mozilla.com/D125434
2021-09-13 23:55:33 +00:00
Masayuki Nakano 903be77ea2 Bug 1672900 - part 3: Make `ExtendOrShrinkRangeToDelete()` selects all contents in all list items if a list element is selected or all list items in a list element is selected r=m_kato
When a list element has non-empty list item element, even if the list element is
selected, deleting operation should make the list element empty first (i.e.,
making the list element has only one empty list item element).  Then, another
deleting operation/command can delete it completely.  This is Blink compat
behavior in most cases except when the list has non-editable list item element
as first and/or last child of it.

Note that the new failures of the browserscpe are not compatible with the
new behavior, that is, it wants a list element is deleted when the last
list item is deleted.
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/delete.py#161-164
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/forwarddelete.py#146-149

Here is same test in the WPT:
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/testing/web-platform/tests/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html#386-402
And only Gecko failed in this case:
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/testing/web-platform/meta/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html.ini#1449-1450
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/testing/web-platform/meta/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html.ini#1937-1938
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/testing/web-platform/meta/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html.ini#425-426
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/testing/web-platform/meta/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html.ini#787-788

https://wpt.fyi/results/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html%3FDelete,ol?run_id=5734231113203712&run_id=6263979761467392&run_id=5750388243300352&run_id=5090688355008512
https://wpt.fyi/results/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html%3FDelete,ul?run_id=5734231113203712&run_id=6263979761467392&run_id=5750388243300352&run_id=5090688355008512
https://wpt.fyi/results/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html%3FBackspace,ol?run_id=5734231113203712&run_id=6263979761467392&run_id=5750388243300352&run_id=5090688355008512
https://wpt.fyi/results/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html%3FBackspace,ul?run_id=5734231113203712&run_id=6263979761467392&run_id=5750388243300352&run_id=5090688355008512

Therefore, the new failures are expected result.

Depends on D125029

Differential Revision: https://phabricator.services.mozilla.com/D125030
2021-09-11 07:17:38 +00:00
Masayuki Nakano 48b4d9fa76 Bug 1672900 - part 2: Rewrite `HTMLEditor::AutoDeleteRangesHandler::ExtendRangeToIncludeInvisibleNodes()` with modern helper classes r=m_kato
And this renames the method to `ExtendOrShrinkRangeToDelete` for alining to
new behavior changed by the following patch.

Depends on D125028

Differential Revision: https://phabricator.services.mozilla.com/D125029
2021-09-11 07:17:37 +00:00
Masayuki Nakano 153b43e7e2 Bug 1720809 - part 2: Make `insertLineBreak` command handler in `HTMLEditor` insert a linefeed character instead of `<br>` element in same condition as Blink/WebKit r=m_kato
Similar to the previous patch, this patch makes `insertLineBreak` command
handler of `HTMLEditor` may insert a linefeed character instead of `<br>`
element for compatibility with Blink/WebKit.

Note that for making same name rules as `insertParagraphSeparator` command
handlers, this patch renames
`HTMLEditor::InsertBRElementAtSelectionWithTransaction()` to
`InsertLineBreakAsSubAction()` and moves
`EditorBase::InsertLineBreakAsSubAction()` to `TextEditor` since it's
used only by `TextEditor` instance.

Depends on D124731

Differential Revision: https://phabricator.services.mozilla.com/D124732
2021-09-10 21:45:47 +00:00
Masayuki Nakano 2640b6cdc9 Bug 1720809 - part 1: Make `insertParagraphSeparator` command handler in `HTMLEditor` insert a linefeed character instead of `<br>` element in same condition as Blink/WebKit r=m_kato
Blink and WebKit inserts linefeed character for `insertParagraphSeparator`
command if:
* the insertion point's block parent is an editing host
* the editing host's outside display is "inline"
* the editing host's white space style preformats linefeed characters

For web-compat, we should do this in these conditions.

Depends on D124562

Differential Revision: https://phabricator.services.mozilla.com/D124731
2021-09-10 21:45:47 +00:00