gecko-dev/editor/libeditor
Masayuki Nakano 635539b0e5 Bug 1706266 - part 2: Disable some Gecko specific edit commands in release and beta channel, and all of them in nightly channel r=smaug
The telemetry result is written in bug 1706266 comment 1:
https://bugzilla.mozilla.org/show_bug.cgi?id=1706266#c1

`increasefontsize`, `decreasefontsize`, `gethtml`, `heading` and `readonly` are
obviously not used by web apps in the wild.  Therefore, they can be disabled
in all channels.

`contentReadOnly` and `insertBrOnReturn` are odd.  The usage is really low (less
than 1% of beta users).  However, the number of documents which used the command
is about 1k samples.  The result of the commands are not tiny (making the editor
not editable or changing the behavior at typing `Enter` key in `<div>`, `<p>`,
etc).  Therefore, it's hard to use them in web apps which supports not only
Gecko.  So I guess that they are collected the number of used by automated
tests of somebody because of the constant number in other beta versions.
Perhaps, we should disable it only in Nightly channel for now, and after a
couple of releases, we should try to disable those commands too later.

Depends on D130328

Differential Revision: https://phabricator.services.mozilla.com/D130329
2021-11-05 14:29:25 +00:00
..
crashtests Bug 1725850 - part 30: Port editor/libeditor/crashtests/716456-1.html to WPT r=saschanaz 2021-10-29 09:29:24 +00:00
tests Bug 1706266 - part 2: Disable some Gecko specific edit commands in release and beta channel, and all of them in nightly channel r=smaug 2021-11-05 14:29:25 +00:00
CSSEditUtils.cpp Bug 1727844 - part 7: Make `HTMLEditor` related classes use constants in `HTMLEditUtils` to use specific character code point r=m_kato 2021-08-31 17:37:42 +00:00
CSSEditUtils.h
ChangeAttributeTransaction.cpp
ChangeAttributeTransaction.h
ChangeStyleTransaction.cpp Bug 1727844 - part 7: Make `HTMLEditor` related classes use constants in `HTMLEditUtils` to use specific character code point r=m_kato 2021-08-31 17:37:42 +00:00
ChangeStyleTransaction.h
CompositionTransaction.cpp Bug 1714914 - Make editor classes treat offset in parent node as uint32_t r=m_kato 2021-06-30 07:07:28 +00:00
CompositionTransaction.h
CreateElementTransaction.cpp
CreateElementTransaction.h
DeleteNodeTransaction.cpp 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 2021-09-15 00:20:19 +00:00
DeleteNodeTransaction.h
DeleteRangeTransaction.cpp Bug 1727185 - part 2: Add removable node checks for more callers of `DeleteNodeTransaction::MaybeCreate()` r=m_kato 2021-08-27 00:49:35 +00:00
DeleteRangeTransaction.h
DeleteTextTransaction.cpp
DeleteTextTransaction.h
EditAction.h
EditActionListener.h
EditAggregateTransaction.cpp
EditAggregateTransaction.h
EditTransactionBase.cpp
EditTransactionBase.h
EditorBase.cpp Backed out 2 changesets (bug 1739315) for causing android wpt failures. 2021-11-05 07:18:22 -04:00
EditorBase.h Backed out 2 changesets (bug 1739315) for causing android wpt failures. 2021-11-05 07:18:22 -04:00
EditorCommands.cpp Bug 1713756 - Make editor command classes treat `EditorBase` instead of `TextEditor` r=m_kato 2021-06-09 07:17:52 +00:00
EditorCommands.h Bug 1713756 - Make editor command classes treat `EditorBase` instead of `TextEditor` r=m_kato 2021-06-09 07:17:52 +00:00
EditorController.cpp
EditorController.h
EditorDOMPoint.h 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 2021-09-11 07:17:38 +00:00
EditorEventListener.cpp Bug 1455514 - part 1: Add accessors and static helper methods to retrieve `nsINode` or its concrete classes from `EventTarget` r=smaug 2021-11-02 13:03:43 +00:00
EditorEventListener.h Bug 1729115 - part 3: Make `IMEStateManager` check whether given focused content matches with null `sContent` in design mode r=m_kato 2021-10-12 04:41:14 +00:00
EditorUtils.cpp Bug 1739526 - Move some trivial classes defined in `EditorUtils.h` but used only by `HTMEditor` or its helper classes to `HTMLEditHelpers.h" r=m_kato 2021-11-05 14:10:49 +00:00
EditorUtils.h Bug 1739526 - Move some trivial classes defined in `EditorUtils.h` but used only by `HTMEditor` or its helper classes to `HTMLEditHelpers.h" r=m_kato 2021-11-05 14:10:49 +00:00
HTMLAbsPositionEditor.cpp Bug 1723921 - Cleanup nsComputedDOMStyle and related APIs. r=layout-reviewers,jfkthame 2021-08-07 09:47:15 +00:00
HTMLAnonymousNodeEditor.cpp
HTMLEditHelpers.cpp Bug 1739526 - Move some trivial classes defined in `EditorUtils.h` but used only by `HTMEditor` or its helper classes to `HTMLEditHelpers.h" r=m_kato 2021-11-05 14:10:49 +00:00
HTMLEditHelpers.h Bug 1739526 - Move some trivial classes defined in `EditorUtils.h` but used only by `HTMEditor` or its helper classes to `HTMLEditHelpers.h" r=m_kato 2021-11-05 14:10:49 +00:00
HTMLEditSubActionHandler.cpp Bug 1739315 - part 2: Make `HTMLEditor::JoinNodesWithTransaction()` return error if failed r=m_kato 2021-11-05 10:14:35 +00:00
HTMLEditUtils.cpp Bug 1729170 - Make all methods of `nsTextFragment` take `uint32_t` for the offset and length of text r=smaug 2021-10-12 05:05:12 +00:00
HTMLEditUtils.h Bug 1739526 - Move some trivial classes defined in `EditorUtils.h` but used only by `HTMEditor` or its helper classes to `HTMLEditHelpers.h" r=m_kato 2021-11-05 14:10:49 +00:00
HTMLEditor.cpp Bug 1739315 - part 2: Make `HTMLEditor::JoinNodesWithTransaction()` return error if failed r=m_kato 2021-11-05 10:14:35 +00:00
HTMLEditor.h Bug 1739526 - Move some trivial classes defined in `EditorUtils.h` but used only by `HTMEditor` or its helper classes to `HTMLEditHelpers.h" r=m_kato 2021-11-05 14:10:49 +00:00
HTMLEditorCommands.cpp Bug 1714918 - Sort out editor class accessors of `nsIEditor` r=m_kato 2021-06-11 03:01:08 +00:00
HTMLEditorController.cpp
HTMLEditorController.h
HTMLEditorDataTransfer.cpp Bug 1734590 - Both the static InternetCiter methods are now infallible, so no need to return/check an nsresult. r=TYLin 2021-10-11 12:20:42 +00:00
HTMLEditorDeleteHandler.cpp Bug 1739315 - part 2: Make `HTMLEditor::JoinNodesWithTransaction()` return error if failed r=m_kato 2021-11-05 10:14:35 +00:00
HTMLEditorDocumentCommands.cpp Bug 1714918 - Sort out editor class accessors of `nsIEditor` r=m_kato 2021-06-11 03:01:08 +00:00
HTMLEditorEventListener.cpp Bug 1455514 - part 1: Add accessors and static helper methods to retrieve `nsINode` or its concrete classes from `EventTarget` r=smaug 2021-11-02 13:03:43 +00:00
HTMLEditorEventListener.h
HTMLEditorObjectResizer.cpp Bug 1727844 - part 7: Make `HTMLEditor` related classes use constants in `HTMLEditUtils` to use specific character code point r=m_kato 2021-08-31 17:37:42 +00:00
HTMLEditorState.cpp Bug 1726064 - part 10: Make the constructor of `AlignStateAtSelection` use `HTMLEditUtils::GetInclusiveAncestorElement()` r=m_kato 2021-08-20 22:17:02 +00:00
HTMLInlineTableEditor.cpp Bug 1717178 - part 1: Get rid of `nsIHTMLInlineTableEditor.refreshInlineTableEditingUI()` because of unused r=m_kato 2021-06-28 12:08:49 +00:00
HTMLStyleEditor.cpp Bug 1714914 - Make editor classes treat offset in parent node as uint32_t r=m_kato 2021-06-30 07:07:28 +00:00
HTMLTableEditor.cpp Bug 1732234 - Fix non-unified build errors in editor/. r=masayuki 2021-09-28 04:26:52 +00:00
InsertNodeTransaction.cpp Bug 1713334 - Part 1: Keep a text node inside text controls even if empty r=masayuki,Jamie 2021-06-18 00:36:53 +00:00
InsertNodeTransaction.h
InsertTextTransaction.cpp
InsertTextTransaction.h
InternetCiter.cpp Bug 1736938 Part 2 - Make all LineBreaker's methods static, and adapt the callers. r=jfkthame 2021-10-25 19:00:22 +00:00
InternetCiter.h Bug 1734590 - Both the static InternetCiter methods are now infallible, so no need to return/check an nsresult. r=TYLin 2021-10-11 12:20:42 +00:00
JoinNodeTransaction.cpp
JoinNodeTransaction.h
ManualNAC.h
PlaceholderTransaction.cpp
PlaceholderTransaction.h
ReplaceTextTransaction.cpp
ReplaceTextTransaction.h
SelectionState.cpp Bug 1719669 - Fix the reverse loop in `SelectionState::SaveSelection()` r=m_kato 2021-07-12 07:52:32 +00:00
SelectionState.h Bug 1714914 - Make editor classes treat offset in parent node as uint32_t r=m_kato 2021-06-30 07:07:28 +00:00
SplitNodeTransaction.cpp Bug 1727185 - Add `MOZ_DIAGNOSTIC_ASSERT` to the constructors of `DeleteNodeTransaction` and `SplitNodeTransaction` and make their users return error before hitting it r=m_kato 2021-08-25 00:39:41 +00:00
SplitNodeTransaction.h
TextEditSubActionHandler.cpp 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 2021-09-10 21:45:47 +00:00
TextEditor.cpp Bug 1455514 - part 1: Add accessors and static helper methods to retrieve `nsINode` or its concrete classes from `EventTarget` r=smaug 2021-11-02 13:03:43 +00:00
TextEditor.h 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 2021-09-10 21:45:47 +00:00
TextEditorDataTransfer.cpp Bug 1727176, use the principal to determine the source of the drag, r=masayuki 2021-08-31 00:58:35 +00:00
TypeInState.cpp Bug 1455514 - part 1: Add accessors and static helper methods to retrieve `nsINode` or its concrete classes from `EventTarget` r=smaug 2021-11-02 13:03:43 +00:00
TypeInState.h Bug 1730429 - part 2: Delete empty inline elements which become newly empty but preserve the styles for next editing r=m_kato 2021-09-15 04:13:44 +00:00
WSRunObject.cpp Bug 1729170 - Make all methods of `nsTextFragment` take `uint32_t` for the offset and length of text r=smaug 2021-10-12 05:05:12 +00:00
WSRunObject.h Bug 1724650 - part 6: Make white-space normalizers treat `white-space: pre-line` correctly r=m_kato 2021-09-10 04:04:29 +00:00
moz.build Bug 1739526 - Move some trivial classes defined in `EditorUtils.h` but used only by `HTMEditor` or its helper classes to `HTMLEditHelpers.h" r=m_kato 2021-11-05 14:10:49 +00:00