gecko/editor/libeditor/base
Ehsan Akhgari 4a9dec68d7 Bug 414526 - Backspace at the beginning of a contenteditable element or delete at the end of one should not affect the rest of the contenteditable elements on the page; r=roc
The main fix here involves the introduction of the nsHTMLEditor::IsNodeInActiveEditor
API.  This API returns true if the current selection in the document falls
inside the active editable section.  The patch adds a bunch of checks using
this API to various places in the code to make sure that editing operations do
not escape their editing host.

There are also some unrelated fixes to range promotion code which fix the
bugs that have existed in that code before, but because of the lack of this
check were not uncovered before.

This patch also removes the nsTextEditUtils::InBody API which only made sense
in designMode documents, and was insufficient for contenteditable elements.
2011-07-14 11:25:07 -04:00
..
crashtests Add bug number to comment. a=NPOTB DONTBUILD 2011-02-24 13:43:48 -08:00
tests Bug 663215 - move test_selection_move_commands.xul to mochitest-chrome. r=roc, a=test-only 2011-06-10 11:11:45 -04:00
ChangeAttributeTxn.cpp Bug 633709: Fix editor's handling of txn objects. r+a=ehsan 2011-02-19 17:18:37 -05:00
ChangeAttributeTxn.h Bug 633709: Fix editor's handling of txn objects. r+a=ehsan 2011-02-19 17:18:37 -05:00
ChangeCSSInlineStyleTxn.cpp Bug 605177 - Fix a number of build warnings in editor/; r=ehsan a=bsmedberg 2010-11-04 16:44:46 -04:00
ChangeCSSInlineStyleTxn.h
CreateElementTxn.cpp Bug 633709: Fix editor's handling of txn objects. r+a=ehsan 2011-02-19 17:18:37 -05:00
CreateElementTxn.h Bug 633709: Fix editor's handling of txn objects. r+a=ehsan 2011-02-19 17:18:37 -05:00
DeleteElementTxn.cpp Bug 633709: Fix editor's handling of txn objects. r+a=ehsan 2011-02-19 17:18:37 -05:00
DeleteElementTxn.h Bug 633709: Fix editor's handling of txn objects. r+a=ehsan 2011-02-19 17:18:37 -05:00
DeleteRangeTxn.cpp Bug 605177 - Fix a number of build warnings in editor/; r=ehsan a=bsmedberg 2010-11-04 16:44:46 -04:00
DeleteRangeTxn.h
DeleteTextTxn.cpp Bug 572618 - Make debugging the editor easier - Part 2: Replace all if(!foo) return NS_ERROR_bar checks with NS_ENSURE_TRUE(foo, NS_ERROR_bar); r=roc 2010-06-17 15:41:16 -04:00
DeleteTextTxn.h
EditAggregateTxn.cpp Bug 633709: Fix editor's handling of txn objects. r+a=ehsan 2011-02-19 17:18:37 -05:00
EditAggregateTxn.h Bug 633709: Fix editor's handling of txn objects. r+a=ehsan 2011-02-19 17:18:37 -05:00
EditTxn.cpp Fix for bug 584048 (Clean up cycle collection code) - remove NS_IMPL_CYCLE_COLLECTING_ADDREF_AMBIGUOUS/NS_IMPL_CYCLE_COLLECTING_RELEASE_AMBIGUOUS. r=bent. 2011-03-06 12:11:31 +01:00
EditTxn.h
IMETextTxn.cpp Bug 407127 - Part 2: Refactor the editor so that it only touches mSelConWeak in GetSelectionController, to make removing it for HTML editors easier; r=roc 2011-03-11 00:40:30 -05:00
IMETextTxn.h Bug 407127 - Part 2: Refactor the editor so that it only touches mSelConWeak in GetSelectionController, to make removing it for HTML editors easier; r=roc 2011-03-11 00:40:30 -05:00
InsertElementTxn.cpp Bug 633709: Fix editor's handling of txn objects. r+a=ehsan 2011-02-19 17:18:37 -05:00
InsertElementTxn.h Bug 633709: Fix editor's handling of txn objects. r+a=ehsan 2011-02-19 17:18:37 -05:00
InsertTextTxn.cpp Bug 633709: Fix editor's handling of txn objects. r+a=ehsan 2011-02-19 17:18:37 -05:00
InsertTextTxn.h Bug 633709: Fix editor's handling of txn objects. r+a=ehsan 2011-02-19 17:18:37 -05:00
JoinElementTxn.cpp Bug 572618 - Make debugging the editor easier - Part 2: Replace all if(!foo) return NS_ERROR_bar checks with NS_ENSURE_TRUE(foo, NS_ERROR_bar); r=roc 2010-06-17 15:41:16 -04:00
JoinElementTxn.h
Makefile.in Bug 240933 - Part 8: Avoid creating multiple textnodes when adding text to textareas; r=roc a=dbaron 2010-07-19 16:47:52 -04:00
nsEditor.cpp Bug 414526 - Backspace at the beginning of a contenteditable element or delete at the end of one should not affect the rest of the contenteditable elements on the page; r=roc 2011-07-14 11:25:07 -04:00
nsEditor.h Bug 414526 - Backspace at the beginning of a contenteditable element or delete at the end of one should not affect the rest of the contenteditable elements on the page; r=roc 2011-07-14 11:25:07 -04:00
nsEditorCommands.cpp Bug 655756 - Remove final XP_MAC remnants; r=josh 2011-05-10 20:24:48 +02:00
nsEditorCommands.h
nsEditorController.cpp Bug 562387 - Convert NS_NEWXPCOM/NS_DELETEXPCOM to new/delete. r=bsmedberg 2010-07-05 11:42:18 +02:00
nsEditorController.h
nsEditorEventListener.cpp Bug 663461 Part 1: Remove Add/RemoveEventListenerByIID from editor. r=smaug 2011-06-27 16:34:54 -07:00
nsEditorEventListener.h Bug 663461 Part 1: Remove Add/RemoveEventListenerByIID from editor. r=smaug 2011-06-27 16:34:54 -07:00
nsEditorUtils.cpp Bug 605177 - Fix a number of build warnings in editor/; r=ehsan a=bsmedberg 2010-11-04 16:44:46 -04:00
nsEditorUtils.h
nsEditProperty.h
nsEditPropertyAtomList.h Back out changeset bfb48178c8ec (finish backing out bug 514437) to fix tests on a CLOSED TREE. 2011-05-09 19:38:05 -07:00
nsEditRules.h Bug 611182 - Part 3: Handle dynamic changes to the editable documents and create/remove the bogus node if needed; r=bzbarsky a=blocking-beta8+ 2010-11-11 16:40:52 -05:00
nsIAbsorbingTransaction.h
nsIEditorSupport.h
nsSelectionState.cpp Bug 582553 - Part 2: Fix nsSelectionState::IsCollapsed as well; r,a=roc 2010-08-05 22:13:07 -04:00
nsSelectionState.h
nsStyleSheetTxns.cpp Bug 655756 - Remove final XP_MAC remnants; r=josh 2011-05-10 20:24:48 +02:00
nsStyleSheetTxns.h
PlaceholderTxn.cpp Bug 572618 - Make debugging the editor easier - Part 2: Replace all if(!foo) return NS_ERROR_bar checks with NS_ENSURE_TRUE(foo, NS_ERROR_bar); r=roc 2010-06-17 15:41:16 -04:00
PlaceholderTxn.h
SetDocTitleTxn.cpp Bug 572618 - Make debugging the editor easier - Part 2: Replace all if(!foo) return NS_ERROR_bar checks with NS_ENSURE_TRUE(foo, NS_ERROR_bar); r=roc 2010-06-17 15:41:16 -04:00
SetDocTitleTxn.h
SplitElementTxn.cpp Bug 633709: Fix editor's handling of txn objects. r+a=ehsan 2011-02-19 17:18:37 -05:00
SplitElementTxn.h Bug 633709: Fix editor's handling of txn objects. r+a=ehsan 2011-02-19 17:18:37 -05:00