gecko/editor/libeditor/base
Robert O'Callahan 299ea95ae7 Bug 821307. Ensure nsTextEditorState::SetValue does nothing when the new value equals the old value, even for password inputs. r=ehsan
If nsTextEditorState::SetValue is allowed to rebuild the editor DOM even when
the new value is the same as the old value, then during PrepareEditor we can
remove the content that's the current target of the event triggering the
PrepareEditor, which prevents important code from running such as the code that
focuses the text input. Normally this isn't a problem but
nsTextEditorState::SetValue's code for getting the current value is broken
for password controls when !mEditorInitialized. So we remove that broken code
path.

We have to make sure that the password text, if any, is set on the edit-rules
during their initialization so the regular path for getting the current
value returns the right thing.

--HG--
extra : rebase_source : 81a01a957b4b1e0cf868505a1b23c9110a2f4b3a
2014-04-15 00:33:47 +12:00
..
crashtests
tests Bug 982828 - [e10s] Disable mochitest-plain tests that don't pass in e10s (r=ted) 2014-03-13 21:38:19 -07:00
ChangeAttributeTxn.cpp
ChangeAttributeTxn.h
ChangeCSSInlineStyleTxn.cpp Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc 2014-01-04 10:02:17 -05:00
ChangeCSSInlineStyleTxn.h
CreateElementTxn.cpp
CreateElementTxn.h
DeleteNodeTxn.cpp
DeleteNodeTxn.h
DeleteRangeTxn.cpp
DeleteRangeTxn.h
DeleteTextTxn.cpp
DeleteTextTxn.h
EditActionListener.h
EditAggregateTxn.cpp
EditAggregateTxn.h
EditTxn.cpp
EditTxn.h
IMETextTxn.cpp Bug 978203 - Don't include nsWindowMemoryReporter.h in nsINode.h. r=smaug 2014-03-04 15:39:42 -08:00
IMETextTxn.h Bug 974318 part.2 TextComposition should store TextRangeArray at editor handling text event and nsEditor should refer it r=smaug+ehsan 2014-03-04 22:48:26 +09:00
InsertElementTxn.cpp
InsertElementTxn.h
InsertTextTxn.cpp
InsertTextTxn.h
JoinElementTxn.cpp
JoinElementTxn.h
moz.build Bug 990855 part.2 Remove dom/events from local includes of moz.build files r=smaug 2014-04-03 13:18:38 +09:00
nsEditor.cpp Bug 821307. Ensure nsTextEditorState::SetValue does nothing when the new value equals the old value, even for password inputs. r=ehsan 2014-04-15 00:33:47 +12:00
nsEditor.h Bug 993253 Implement DOM InputEvent interface with isComposing attribute r=smaug+ehsan 2014-04-10 16:11:37 +09:00
nsEditorCommands.cpp
nsEditorCommands.h
nsEditorController.cpp
nsEditorController.h
nsEditorEventListener.cpp Bug 981261 part.5 Rename nsEventListenerManager to mozilla::EventListenerManager r=smaug 2014-03-17 15:56:53 +09:00
nsEditorEventListener.h Bug 977959 part.3 Hide nsINativeKeyBindings with nsIWidget::ExecuteNativeKeyBinding() r=roc+karlt+smichaud 2014-03-14 22:13:31 +09:00
nsEditorUtils.cpp bug 939049 - get rid of useless QIs r=smaug 2013-11-15 11:32:12 -05:00
nsEditorUtils.h
nsEditProperty.h
nsEditPropertyAtomList.h
nsEditRules.h Bug 821307. Ensure nsTextEditorState::SetValue does nothing when the new value equals the old value, even for password inputs. r=ehsan 2014-04-15 00:33:47 +12:00
nsIAbsorbingTransaction.h
nsSelectionState.cpp
nsSelectionState.h Bug 984786 part 6: Mark struct nsRangeStore in /editor as MOZ_FINAL & give it a private destructor. r=ehsan 2014-04-02 09:21:12 -07:00
nsStyleSheetTxns.cpp
nsStyleSheetTxns.h
PlaceholderTxn.cpp
PlaceholderTxn.h
SetDocTitleTxn.cpp
SetDocTitleTxn.h
SplitElementTxn.cpp
SplitElementTxn.h