Right click to delete across paragraphs in Firefox results in no model transaction. This in turn results in model corruption and inconsistent behavior.
Description
Details
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | None | T230323 Use MutationObservers to detect structural changes | |||
| Open | None | T230325 Make each ve.ce.ContentBranchNode track its own most recently rendered state | |||
| Resolved | Ryasmeen | T220629 Right click to delete across paragraphs in Firefox results in no model transaction |
Event Timeline
Deleted text is supported by resolving T230325 . Deleted DOM nodes need T230323 (which does not fix deleted text).
Steps to reproduce:
- In VE standalone in Firefox, edit <p>abc</p><p>def</p> .
- Select from c to f inclusive, with the selection focus after f.
- Right-click on the selection, and choose Delete.
Behaviour in master:
- In the DOM, the 'c' is deleted, as is the <p>def</p>. However, in the model, nothing is deleted.
Behaviour with T230325 resolved (i.e. https://gerrit.wikimedia.org/r/759510 ):
- In the DOM, the 'c' is deleted, as is the <p>def</p>. In the model, the 'c' is deleted, but the <p>def</p> is not.
Change #1020858 had a related patch set uploaded (by Esanders; author: Esanders):
[VisualEditor/VisualEditor@master] Handle right-click-delete in Firefox programmatically
We should continue with the patches to use MutationObserver, but we can also just intercept the deleteContentBackward input event when there is a selection, and execute the delete action.
Change #1020858 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] Handle right-click-delete in Firefox programmatically
Change #1060179 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (be8847993)
My bad, this change wasn't actually live when you tested it @Ryasmeen (assuming you tested with MediaWiki and not VE standalone). Probably best to test this again once the submodule update is merged. I'm sorry about that.
Change #1060179 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (be8847993)
ok...I tested this on Beta cluster not on VE standalone, and it worked for me. Here is a screencapture of how I tested:
@matmarex: Let me know if I am missing something.