pjs/editor/libeditor/base
Ehsan Akhgari 8cdbf16da6 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 Implement cycle collection for transaction manager and editor transactions. (Bug 488799) r+sr=peterv 2009-05-08 21:59:25 -07:00
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 Implement cycle collection for transaction manager and editor transactions. (Bug 488799) r+sr=peterv 2009-05-08 21:59:25 -07:00
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 Implement cycle collection for transaction manager and editor transactions. (Bug 488799) r+sr=peterv 2009-05-08 21:59:25 -07:00
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 Implement cycle collection for transaction manager and editor transactions. (Bug 488799) r+sr=peterv 2009-05-08 21:59:25 -07:00
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 Implement cycle collection for transaction manager and editor transactions. (Bug 488799) r+sr=peterv 2009-05-08 21:59:25 -07:00
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
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 Implement cycle collection for transaction manager and editor transactions. (Bug 488799) r+sr=peterv 2009-05-08 21:59:25 -07:00
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 Remove nsTransactionFactory and most transaction CIDs. (Bug 489851) r+sr=peterv 2009-04-24 15:45:34 -07:00
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
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
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 Support receiving data from Mac OS X services into text and HTML editors. b=525389 r=josh r/sr=smaug 2010-01-10 20:45:45 -05:00
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 Bug 474369 - get rid of nsVoidArray, editor part; r=neil 2009-04-22 10:43:15 +02: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 Implement cycle collection for transaction manager and editor transactions. (Bug 488799) r+sr=peterv 2009-05-08 21:59:25 -07:00
nsStyleSheetTxns.cpp Bug 655756 - Remove final XP_MAC remnants; r=josh 2011-05-10 20:24:48 +02:00
nsStyleSheetTxns.h Remove nsICSSStyleSheet and replace all uses with nsCSSStyleSheet. (Bug 239008) r=dbaron 2010-05-11 13:41:47 -07:00