gecko/editor/reftests
Ehsan Akhgari ce353a11c2 Bug 997805 - Correctly restore the placeholder text after the editor object is re-attached to a text control as a result of a reframe; r=bzbarsky
Recomputing the placeholder visibility does not require the placeholder div
itself to be present, as the only information required for that is the current
value of the text control which is present either way.  This patch fixes
nsTextEditorState::ValueWasChanged and nsTextEditorState::UpdatePlaceholderVisibility
to that effect.

But the real fix is in nsTextEditorState::UpdatePlaceholderText, where after
setting the placeholder text on the anonymous div, we redo the placeholder
visibility computation.  Since this function can be called from
HTMLTextAreaElement::CreatePlaceholderNode during frame construction, the
GetValue function may return the wrong value since the editor has not properly
been set up yet, resulting in this bug.  And this function call is useless
anyway, because changing the placeholder text does not really affect the
result of the visibility computation, so there is no need to do this work
in the first place.
2014-04-25 16:40:44 -04:00
..
xul Bug 157846 - Remove padding from textbox.plain. r=roc 2014-01-16 16:45:20 -07:00
338427-1-ref.html
338427-1.html
338427-2-ref.html
338427-2.html
338427-3-ref.html
338427-3.html
388980-1-ref.html
388980-1.html
462758-grabbers-resizers-ref.html
462758-grabbers-resizers.html
642800-iframe.html
642800-ref.html
642800.html
672709-ref.html
672709.html
674212-spellcheck-ref.html
674212-spellcheck.html
694880-1.html
694880-2.html
694880-3.html
694880-ref.html
824080-1-ref.html Bug 824080 HTML editor shouldn't set selection state as inactive at losing focus but the document has focus r=ehsan 2013-05-18 09:07:46 +09:00
824080-1.html Bug 824080 HTML editor shouldn't set selection state as inactive at losing focus but the document has focus r=ehsan 2013-05-18 09:07:46 +09:00
824080-2-ref.html Bug 824080 HTML editor shouldn't set selection state as inactive at losing focus but the document has focus r=ehsan 2013-05-18 09:07:46 +09:00
824080-2.html Bug 824080 HTML editor shouldn't set selection state as inactive at losing focus but the document has focus r=ehsan 2013-05-18 09:07:46 +09:00
824080-3-ref.html Bug 824080 HTML editor shouldn't set selection state as inactive at losing focus but the document has focus r=ehsan 2013-05-18 09:07:46 +09:00
824080-3.html Bug 824080 HTML editor shouldn't set selection state as inactive at losing focus but the document has focus r=ehsan 2013-05-18 09:07:46 +09:00
824080-4-ref.html Bug 824080 HTML editor shouldn't set selection state as inactive at losing focus but the document has focus r=ehsan 2013-05-18 09:07:46 +09:00
824080-4.html Bug 824080 HTML editor shouldn't set selection state as inactive at losing focus but the document has focus r=ehsan 2013-05-18 09:07:46 +09:00
824080-5-ref.html Bug 824080 HTML editor shouldn't set selection state as inactive at losing focus but the document has focus r=ehsan 2013-05-18 09:07:46 +09:00
824080-5.html Bug 824080 HTML editor shouldn't set selection state as inactive at losing focus but the document has focus r=ehsan 2013-05-18 09:07:46 +09:00
824080-6-ref.html Bug 824080 HTML editor shouldn't set selection state as inactive at losing focus but the document has focus r=ehsan 2013-05-18 09:07:46 +09:00
824080-6.html Bug 824080 HTML editor shouldn't set selection state as inactive at losing focus but the document has focus r=ehsan 2013-05-18 09:07:46 +09:00
824080-7-ref.html Bug 824080 HTML editor shouldn't set selection state as inactive at losing focus but the document has focus r=ehsan 2013-05-18 09:07:46 +09:00
824080-7.html Bug 824080 HTML editor shouldn't set selection state as inactive at losing focus but the document has focus r=ehsan 2013-05-18 09:07:46 +09:00
969773-ref.html Bug 969773 - Restore Selection/Controller state when disconnecting the editor. r=ehsan 2014-02-10 02:14:38 +00:00
969773.html Bug 969773 - Restore Selection/Controller state when disconnecting the editor. r=ehsan 2014-02-10 02:14:38 +00:00
997805-ref.html Bug 997805 - Correctly restore the placeholder text after the editor object is re-attached to a text control as a result of a reframe; r=bzbarsky 2014-04-25 16:40:44 -04:00
997805.html Bug 997805 - Correctly restore the placeholder text after the editor object is re-attached to a text control as a result of a reframe; r=bzbarsky 2014-04-25 16:40:44 -04:00
caret_after_reframe-ref.html
caret_after_reframe.html
caret_on_focus-ref.html
caret_on_focus.html
caret_on_positioned-ref.html
caret_on_positioned.html
caret_on_presshell_reinit-2.html
caret_on_presshell_reinit-ref.html
caret_on_presshell_reinit.html
caret_on_textarea_lastline-ref.html
caret_on_textarea_lastline.html
dynamic-1.html
dynamic-overflow-change-ref.html
dynamic-overflow-change.html
dynamic-ref.html
dynamic-type-1.html
dynamic-type-2.html
dynamic-type-3.html
dynamic-type-4.html
emptypasswd-1.html
emptypasswd-2.html
emptypasswd-ref.html
input-text-notheme-onfocus-reframe-ref.html
input-text-notheme-onfocus-reframe.html
input-text-onfocus-reframe-ref.html
input-text-onfocus-reframe.html
newline-1.html
newline-2.html
newline-3.html
newline-4.html
newline-ref.html
nobogusnode-1.html
nobogusnode-2.html
nobogusnode-ref.html
passwd-1.html
passwd-2.html
passwd-3.html
passwd-4.html
passwd-ref.html
readonly-editable-ref.html
readonly-editable.html
readonly-non-editable-ref.html
readonly-non-editable.html
readwrite-editable-ref.html
readwrite-editable.html
readwrite-non-editable-ref.html
readwrite-non-editable.html
reftest.list Bug 997805 - Correctly restore the placeholder text after the editor object is re-attached to a text control as a result of a reframe; r=bzbarsky 2014-04-25 16:40:44 -04:00
selection_visibility_after_reframe-2.html
selection_visibility_after_reframe-3.html
selection_visibility_after_reframe-ref.html
selection_visibility_after_reframe.html
spellcheck-comma-valid-ref.html
spellcheck-comma-valid.html
spellcheck-contenteditable-attr-dynamic-inherit.html Bug 674927 part 1 - Add reftests for spellcheck in contenteditable; r=ehsan 2013-06-17 21:23:53 -04:00
spellcheck-contenteditable-attr-dynamic-override-inherit.html Bug 674927 part 1 - Add reftests for spellcheck in contenteditable; r=ehsan 2013-06-17 21:23:53 -04:00
spellcheck-contenteditable-attr-dynamic-override.html Bug 674927 part 1 - Add reftests for spellcheck in contenteditable; r=ehsan 2013-06-17 21:23:53 -04:00
spellcheck-contenteditable-attr-dynamic.html Bug 674927 part 1 - Add reftests for spellcheck in contenteditable; r=ehsan 2013-06-17 21:23:53 -04:00
spellcheck-contenteditable-attr-inherit.html Bug 674927 part 1 - Add reftests for spellcheck in contenteditable; r=ehsan 2013-06-17 21:23:53 -04:00
spellcheck-contenteditable-attr.html Bug 674927 part 1 - Add reftests for spellcheck in contenteditable; r=ehsan 2013-06-17 21:23:53 -04:00
spellcheck-contenteditable-disabled-partial-ref.html Bug 674927 part 1 - Add reftests for spellcheck in contenteditable; r=ehsan 2013-06-17 21:23:53 -04:00
spellcheck-contenteditable-disabled-partial.html Bug 674927 part 1 - Add reftests for spellcheck in contenteditable; r=ehsan 2013-06-17 21:23:53 -04:00
spellcheck-contenteditable-disabled-ref.html Bug 674927 part 1 - Add reftests for spellcheck in contenteditable; r=ehsan 2013-06-17 21:23:53 -04:00
spellcheck-contenteditable-disabled.html Bug 674927 part 1 - Add reftests for spellcheck in contenteditable; r=ehsan 2013-06-17 21:23:53 -04:00
spellcheck-contenteditable-focused-reframe.html Bug 674927 part 1 - Add reftests for spellcheck in contenteditable; r=ehsan 2013-06-17 21:23:53 -04:00
spellcheck-contenteditable-focused.html Bug 674927 part 1 - Add reftests for spellcheck in contenteditable; r=ehsan 2013-06-17 21:23:53 -04:00
spellcheck-contenteditable-nofocus-ref.html Bug 674927 part 1 - Add reftests for spellcheck in contenteditable; r=ehsan 2013-06-17 21:23:53 -04:00
spellcheck-contenteditable-nofocus.html Bug 674927 part 1 - Add reftests for spellcheck in contenteditable; r=ehsan 2013-06-17 21:23:53 -04:00
spellcheck-contenteditable-property-dynamic-inherit.html Bug 674927 part 1 - Add reftests for spellcheck in contenteditable; r=ehsan 2013-06-17 21:23:53 -04:00
spellcheck-contenteditable-property-dynamic-override-inherit.html Bug 674927 part 1 - Add reftests for spellcheck in contenteditable; r=ehsan 2013-06-17 21:23:53 -04:00
spellcheck-contenteditable-property-dynamic-override.html Bug 674927 part 1 - Add reftests for spellcheck in contenteditable; r=ehsan 2013-06-17 21:23:53 -04:00
spellcheck-contenteditable-property-dynamic.html Bug 674927 part 1 - Add reftests for spellcheck in contenteditable; r=ehsan 2013-06-17 21:23:53 -04:00
spellcheck-contenteditable-ref.html Bug 674927 part 1 - Add reftests for spellcheck in contenteditable; r=ehsan 2013-06-17 21:23:53 -04:00
spellcheck-dotafterquote-valid-ref.html
spellcheck-dotafterquote-valid.html
spellcheck-hyphen-invalid-ref.html
spellcheck-hyphen-invalid.html
spellcheck-hyphen-multiple-invalid-ref.html
spellcheck-hyphen-multiple-invalid.html
spellcheck-hyphen-multiple-valid-ref.html
spellcheck-hyphen-multiple-valid.html
spellcheck-hyphen-valid-ref.html
spellcheck-hyphen-valid.html
spellcheck-input-attr-after.html
spellcheck-input-attr-before.html
spellcheck-input-attr-dynamic-inherit.html Bug 856270 - Update spell checking to use nsIContentPrefService2 (part 4: update reftests). r=ehsan 2013-06-05 17:07:55 -07:00
spellcheck-input-attr-dynamic-override-inherit.html Bug 856270 - Update spell checking to use nsIContentPrefService2 (part 4: update reftests). r=ehsan 2013-06-05 17:07:55 -07:00
spellcheck-input-attr-dynamic-override.html Bug 856270 - Update spell checking to use nsIContentPrefService2 (part 4: update reftests). r=ehsan 2013-06-05 17:07:55 -07:00
spellcheck-input-attr-dynamic.html Bug 856270 - Update spell checking to use nsIContentPrefService2 (part 4: update reftests). r=ehsan 2013-06-05 17:07:55 -07:00
spellcheck-input-attr-inherit.html Bug 856270 - Update spell checking to use nsIContentPrefService2 (part 4: update reftests). r=ehsan 2013-06-05 17:07:55 -07:00
spellcheck-input-disabled.html
spellcheck-input-nofocus-ref.html
spellcheck-input-property-dynamic-inherit.html Bug 856270 - Update spell checking to use nsIContentPrefService2 (part 4: update reftests). r=ehsan 2013-06-05 17:07:55 -07:00
spellcheck-input-property-dynamic-override-inherit.html Bug 856270 - Update spell checking to use nsIContentPrefService2 (part 4: update reftests). r=ehsan 2013-06-05 17:07:55 -07:00
spellcheck-input-property-dynamic-override.html Bug 856270 - Update spell checking to use nsIContentPrefService2 (part 4: update reftests). r=ehsan 2013-06-05 17:07:55 -07:00
spellcheck-input-property-dynamic.html Bug 856270 - Update spell checking to use nsIContentPrefService2 (part 4: update reftests). r=ehsan 2013-06-05 17:07:55 -07:00
spellcheck-input-ref.html
spellcheck-period-valid-ref.html
spellcheck-period-valid.html
spellcheck-slash-valid-ref.html
spellcheck-slash-valid.html
spellcheck-space-valid-ref.html
spellcheck-space-valid.html
spellcheck-superscript-1-ref.html Bug 777529 - Don't spellcheck Unicode numbers; r=ehsan 2012-07-31 11:50:04 +03:00
spellcheck-superscript-1.html Bug 777529 - Don't spellcheck Unicode numbers; r=ehsan 2012-07-31 11:50:04 +03:00
spellcheck-superscript-2-ref.html Bug 777529 - Don't spellcheck Unicode numbers; r=ehsan 2012-07-31 11:50:04 +03:00
spellcheck-superscript-2.html Bug 777529 - Don't spellcheck Unicode numbers; r=ehsan 2012-07-31 11:50:04 +03:00
spellcheck-textarea-attr-dynamic-inherit.html
spellcheck-textarea-attr-dynamic-override-inherit.html
spellcheck-textarea-attr-dynamic-override.html
spellcheck-textarea-attr-dynamic.html
spellcheck-textarea-attr-inherit.html
spellcheck-textarea-attr.html
spellcheck-textarea-disabled.html
spellcheck-textarea-focused-notreadonly.html Bug 539356 - Part 10 - Test changes required for DLBI. r=roc 2012-08-29 17:48:13 +12:00
spellcheck-textarea-focused-reframe.html Bug 754292 - Make spellcheck-textarea-ref.html blur its contents so that we would test the right thing; r=roc 2012-05-11 11:39:38 -04:00
spellcheck-textarea-focused.html Bug 754292 - Make spellcheck-textarea-ref.html blur its contents so that we would test the right thing; r=roc 2012-05-11 11:39:38 -04:00
spellcheck-textarea-nofocus-ref.html
spellcheck-textarea-nofocus.html
spellcheck-textarea-property-dynamic-inherit.html
spellcheck-textarea-property-dynamic-override-inherit.html
spellcheck-textarea-property-dynamic-override.html
spellcheck-textarea-property-dynamic.html
spellcheck-textarea-ref2.html Bug 539356 - Part 10 - Test changes required for DLBI. r=roc 2012-08-29 17:48:13 +12:00
spellcheck-textarea-ref.html Bug 754292 - Make spellcheck-textarea-ref.html blur its contents so that we would test the right thing; r=roc 2012-05-11 11:39:38 -04:00
spellcheck-url-valid-ref.html
spellcheck-url-valid.html
unneeded_scroll-ref.html
unneeded_scroll.html