gecko-dev/editor/libeditor
Makoto Kato 6c788dbaf0 Bug 1708670 - nsIEditor.pasteTransferable won't insert image/png if nsITransaferable uses nsIInputStream. r=masayuki
editor.pastedTransferable cannot insert image/png when using nsITransaferable.

Although pastedTransferable stores DataTransfer in stack, when mime type is
image/png, DataTransfer fetches all data in
DataTransferItem::FillInExternalData then stores it as `KIND_FILE`.
It means that nsIInputStream in nsITransferable is already EOF.

So we should use InsertFromDataTransfer when internal data moves to
DataTransfer.

Differential Revision: https://phabricator.services.mozilla.com/D114702
2021-05-11 09:47:09 +00:00
..
crashtests Bug 1707630 - Fix the crash with a one line fix r=m_kato 2021-04-28 03:33:25 +00:00
tests Bug 1708670 - nsIEditor.pasteTransferable won't insert image/png if nsITransaferable uses nsIInputStream. r=masayuki 2021-05-11 09:47:09 +00:00
CSSEditUtils.cpp Bug 1682003 - Avoid UTF-8 -> UTF-16 conversion during CSSOM serialization. r=heycam 2020-12-17 14:04:35 +00:00
CSSEditUtils.h Bug 1665258 - Shrink `CSSEquivTable`. r=heycam 2020-09-23 01:08:21 +00:00
ChangeAttributeTransaction.cpp Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
ChangeAttributeTransaction.h Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
ChangeStyleTransaction.cpp Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
ChangeStyleTransaction.h Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
CompositionTransaction.cpp Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
CompositionTransaction.h Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
CreateElementTransaction.cpp Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
CreateElementTransaction.h Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
DeleteNodeTransaction.cpp Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
DeleteNodeTransaction.h Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
DeleteRangeTransaction.cpp Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
DeleteRangeTransaction.h
DeleteTextTransaction.cpp Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
DeleteTextTransaction.h Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
EditAction.h Bug 1701348 - Make `TextEditor::Init()` and `HTMLEditor::Init()` stop using `EditAction::eNotEditing` r=m_kato 2021-04-08 08:51:41 +00:00
EditActionListener.h
EditAggregateTransaction.cpp Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
EditAggregateTransaction.h
EditTransactionBase.cpp Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
EditTransactionBase.h Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
EditorBase.cpp Bug 1707630 - part 3: Make `EditorBase::CreateNodeWithTransaction()` return error if failed r=m_kato 2021-04-28 03:33:26 +00:00
EditorBase.h Bug 1707630 - part 3: Make `EditorBase::CreateNodeWithTransaction()` return error if failed r=m_kato 2021-04-28 03:33:26 +00:00
EditorCommands.cpp Bug 1220696 - part 6: Support `insertLineBreak` and `insertParagraphSeparator` commands in `<textarea>` r=smaug 2021-03-24 01:55:09 +00:00
EditorCommands.h
EditorController.cpp
EditorController.h
EditorDOMPoint.h Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
EditorEventListener.cpp Bug 1678361 - Return gracely when GetDataTransfer fails r=masayuki 2020-11-20 06:04:43 +00:00
EditorEventListener.h Bug 1623918 - part 2: Mark `nsINode::GetSelectionRootContent()` and its root callers as `MOZ_CAN_RUN_SCRIPT` as far as possible r=smaug 2020-10-09 02:37:47 +00:00
EditorUtils.cpp Bug 1703561 - Make `HTMLEditor` not allow to modify content nodes in `<select>` element r=m_kato 2021-04-20 12:07:15 +00:00
EditorUtils.h Bug 1703144 - Get rid of `MOZ_KnownLive` for `EditorBase::SelectionRefPtr()` r=m_kato 2021-04-08 01:31:54 +00:00
HTMLAbsPositionEditor.cpp Bug 1707630 - part 1: Make `HTMLEditor::InsertBREelementWithTransaction()` return error when it fails r=m_kato 2021-04-28 03:33:25 +00:00
HTMLAnonymousNodeEditor.cpp Bug 1682003 - Avoid UTF-8 -> UTF-16 conversion during CSSOM serialization. r=heycam 2020-12-17 14:04:35 +00:00
HTMLEditSubActionHandler.cpp Bug 1707630 - part 3: Make `EditorBase::CreateNodeWithTransaction()` return error if failed r=m_kato 2021-04-28 03:33:26 +00:00
HTMLEditUtils.cpp Bug 1627175 - part 38: Move `EditorBase::GetNextContent()` and `EditorBase::GetPreviousContent()` to `HTMLEditUtils` r=m_kato 2021-04-27 11:17:44 +00:00
HTMLEditUtils.h Bug 1627175 - part 38: Move `EditorBase::GetNextContent()` and `EditorBase::GetPreviousContent()` to `HTMLEditUtils` r=m_kato 2021-04-27 11:17:44 +00:00
HTMLEditor.cpp Bug 1707630 - part 3: Make `EditorBase::CreateNodeWithTransaction()` return error if failed r=m_kato 2021-04-28 03:33:26 +00:00
HTMLEditor.h Bug 1707630 - part 2: Make `HTMLEditor::PrepareToInsertBRElement()` return error if failed r=m_kato 2021-04-28 03:33:26 +00:00
HTMLEditorCommands.cpp Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi 2020-09-23 15:17:15 +00:00
HTMLEditorController.cpp
HTMLEditorController.h
HTMLEditorDataTransfer.cpp Bug 1708670 - nsIEditor.pasteTransferable won't insert image/png if nsITransaferable uses nsIInputStream. r=masayuki 2021-05-11 09:47:09 +00:00
HTMLEditorDeleteHandler.cpp Bug 1707630 - part 1: Make `HTMLEditor::InsertBREelementWithTransaction()` return error when it fails r=m_kato 2021-04-28 03:33:25 +00:00
HTMLEditorDocumentCommands.cpp Bug 1220696 - part 5: Support "contentReadOnly" and "getHTML" commands in `<input>` and `<textarea>` r=smaug 2021-03-24 01:55:09 +00:00
HTMLEditorEventListener.cpp Bug 1357365 - part 2: Make `TypeInState::OnSelectionChange()` stop inserting new content into the link if clicked outside it r=m_kato 2021-01-13 01:55:27 +00:00
HTMLEditorEventListener.h Bug 1357365 - part 1: Rename `HTMLEditor::OnMouseDown()`, `HTMLEditor::OnMouseUp()` and `HTMLEditor::OnMouseMove()` r=m_kato 2021-01-13 01:54:17 +00:00
HTMLEditorObjectResizer.cpp Bug 1357365 - part 1: Rename `HTMLEditor::OnMouseDown()`, `HTMLEditor::OnMouseUp()` and `HTMLEditor::OnMouseMove()` r=m_kato 2021-01-13 01:54:17 +00:00
HTMLEditorState.cpp Bug 1627175 - part 38: Move `EditorBase::GetNextContent()` and `EditorBase::GetPreviousContent()` to `HTMLEditUtils` r=m_kato 2021-04-27 11:17:44 +00:00
HTMLInlineTableEditor.cpp Bug 1663638 - Don't use edit transaction for editing UI. r=masayuki 2020-09-14 05:10:08 +00:00
HTMLStyleEditor.cpp Bug 1627175 - part 23: Move `HTMLEditor::IsEmptyNode()` into `HTMLEditUtils` with making it take `EnumSet` instead of `bool` arguments r=m_kato 2021-04-20 12:02:17 +00:00
HTMLTableEditor.cpp Bug 1627175 - part 23: Move `HTMLEditor::IsEmptyNode()` into `HTMLEditUtils` with making it take `EnumSet` instead of `bool` arguments r=m_kato 2021-04-20 12:02:17 +00:00
InsertNodeTransaction.cpp Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
InsertNodeTransaction.h Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
InsertTextTransaction.cpp Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
InsertTextTransaction.h Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
InternetCiter.cpp
InternetCiter.h
JoinNodeTransaction.cpp Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
JoinNodeTransaction.h Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
ManualNAC.h
PlaceholderTransaction.cpp Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
PlaceholderTransaction.h Bug 1653011 - Simplify and make WeakPtr<Derived> usable and compact. r=froydnj,sg,geckoview-reviewers,jgilbert,kvark,snorp 2020-07-23 14:51:46 +00:00
ReplaceTextTransaction.cpp Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
ReplaceTextTransaction.h Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
SelectionState.cpp
SelectionState.h Bug 1656799 - part 2: Create range tracker r=m_kato 2020-08-08 02:57:16 +00:00
SplitNodeTransaction.cpp Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
SplitNodeTransaction.h Bug 1697876 - part 1: Add logging code to transaction classes for making easier to debug r=m_kato 2021-04-05 11:35:48 +00:00
TextEditSubActionHandler.cpp Bug 1703144 - Get rid of `MOZ_KnownLive` for `EditorBase::SelectionRefPtr()` r=m_kato 2021-04-08 01:31:54 +00:00
TextEditor.cpp Bug 1707630 - part 3: Make `EditorBase::CreateNodeWithTransaction()` return error if failed r=m_kato 2021-04-28 03:33:26 +00:00
TextEditor.h Bug 1692673 - Avoid enabling Cut/Copy menu commands in text editor context when there's no selection, unless a listener is present. r=masayuki 2021-03-12 16:34:42 +00:00
TextEditorDataTransfer.cpp Bug 1703144 - Get rid of `MOZ_KnownLive` for `EditorBase::SelectionRefPtr()` r=m_kato 2021-04-08 01:31:54 +00:00
TypeInState.cpp Bug 1703144 - Get rid of `MOZ_KnownLive` for `EditorBase::SelectionRefPtr()` r=m_kato 2021-04-08 01:31:54 +00:00
TypeInState.h Bug 1703144 - Get rid of `MOZ_KnownLive` for `EditorBase::SelectionRefPtr()` r=m_kato 2021-04-08 01:31:54 +00:00
WSRunObject.cpp Bug 1707630 - part 1: Make `HTMLEditor::InsertBREelementWithTransaction()` return error when it fails r=m_kato 2021-04-28 03:33:25 +00:00
WSRunObject.h Bug 1705598 - part 8: Make `WSRunScanner::AutoInclusiveAncestorBlockElementsJoiner()` take editing host instead of `HTMLEditor` r=m_kato 2021-04-19 23:25:47 +00:00
moz.build Bug 1673790 - Split `editor/libeditor/HTMLEditSubActionHandler.cpp` r=m_kato 2020-10-28 13:08:34 +00:00