Commit Graph

435 Commits

Author SHA1 Message Date
Mats Palmgren
2c294337da Bug 760080 - Use info() for log messages that aren't tests. Move SimpleTest.finish() last. r=ehsan 2012-06-01 20:52:37 +02:00
Aryeh Gregor
b35fbf4f3f Bug 748307 part 3 - Clean up WillDoAction; r=ehsan 2012-05-22 12:37:17 +03:00
Aryeh Gregor
8137ef02b0 Bug 748307 part 2 - Make WillDoAction take an nsTypedSelection; r=ehsan 2012-05-22 12:37:17 +03:00
Aryeh Gregor
1adb36eedc Bug 748307 part 1 - Make TypedText's second argument a named enum; r=ehsan 2012-05-22 12:37:17 +03:00
Gervase Markham
87620f5676 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Ms2ger
faa0b8ae7d Merge m-c to m-i. 2012-05-18 13:32:20 +02:00
Ms2ger
d06c354b02 Bug 750053 - Part b: Stop using nsISelection::GetIsCollapsed in editor/libeditor; r=ehsan 2012-05-18 10:29:39 +02:00
Aryeh Gregor
1fffe1dc4d Bug 590640 part 5 - Delete empty wrappers when we delete the selection; r=ehsan 2012-05-10 17:54:33 +03:00
Aryeh Gregor
223ee82a41 Bug 590640 part 3 - Remove unnecessary use of NodeIsTypeString; r=ehsan 2012-05-09 12:45:23 +03:00
Aryeh Gregor
cb28d967ce Bug 751547 - Unify action enums in editor/; r=ehsan 2012-05-05 21:52:29 +03:00
Ms2ger
a015bced9a Bug 750063 - Allow passing null to nsTextEditRules::CreateMozBR's outparam; r=ehsan 2012-05-05 11:00:05 +02:00
Ms2ger
ccd3cd30f5 Bug 747346 - Cleanup nsTextEditRules::CreateTrailingBRIfNeeded(); r=ehsan 2012-05-05 11:00:05 +02:00
Aryeh Gregor
00a49bb9eb Bug 748303 part 3 - Convert (Tag)CanContain(Tag) to nsIAtom*; r=ehsan 2012-05-01 09:34:52 +03:00
Graeme McCutcheon
1738fc96e1 Followup nit for bug 740784. r=ehsan 2012-04-26 09:16:51 +01:00
Masayuki Nakano
e089b336f8 Bug 630811 part.2 Replace nsInputEvent::isShift, nsInputEvent::isControl, nsInputEvent::isAlt and nsInputEvent::isMeta r=smaug 2012-04-25 12:00:02 +09:00
Graeme McCutcheon
7b5618d5c3 Bug 740784 - Don't allow old bogus nodes to trail textarea content. r=ehsan a=lsblakk 2012-04-12 21:55:48 +01:00
Kyle Huey
ade7c58314 No bug: Followups to my previous two commits. 2012-03-31 07:54:12 -07:00
Kyle Huey
40e991f2d5 Bug 718316: Disable failing tests. 2012-03-31 07:22:31 -07:00
Masayuki Nakano
941d39a6a6 Bug 722961 Add tests for autocomplete with composition r=m_kato 2012-03-27 23:22:56 +09:00
Masayuki Nakano
acf546c04a Bug 668606 input event should be fired on all editors r=ehsan+smaug, sr=smaug 2012-03-27 10:36:44 +09:00
Ms2ger
e090679772 Bug 738771 - Outparamdel nsEditor::GetDocument(); r=ehsan 2012-03-24 09:19:14 +01:00
Neil Deakin
6c9d8bc0e7 Bug 605991, prevent drops on a parent content page from a child frame from a different domain, r=smaug 2012-03-20 11:21:41 -04:00
Neil Deakin
3e33a45b3f Bug 728652, null check return value of MozGetDataAt, r=ehsan 2012-02-23 15:59:45 -05:00
Neil Deakin
96524d644a Bug 499008, part 7, merge html drag type constants into one place, r=ehsan 2012-02-17 09:17:00 -05:00
Neil Deakin
13c593e55b Bug 499008, part 5, merge the text and html implementations of InsertFromDrop, r=ehsan 2012-02-17 09:16:59 -05:00
Neil Deakin
1d18d254ce Bug 499008, part 4, convert editor drop handling to use datatransfers instead of the drag service, r=ehsan 2012-02-17 09:16:59 -05:00
Neil Deakin
bb01abe388 Bug 499008, part 2, move editor dragstart handling to ContentAreaDragDrop, r=ehsan 2012-02-17 09:16:59 -05:00
Neil Deakin
a8a864c0d2 Bug 499008, part 1, remove spurious event checks drop editor drag handling, r=ehsan 2012-02-17 09:16:59 -05:00
Masayuki Nakano
9b28752e68 Bug 622247 Remove hack for bug 23558 and bug 271815, and add tests for them r=ehsan 2012-02-15 10:38:07 +09:00
Panagiotis Koutsourakis
583eb38038 Bug 702388 - Convert Makefiles to use |TEST_DIRS += foo| r=khuey
Files named Makefile.in containing the expression

DIRS += <foo>
or
DIRS = <foo>

inside the conditional expression

ifdef ENABLE_TESTS
...
endif

are changed to

TEST_DIRS += tests

outside any conditional expression.

The files

./layout/Makefile.in
./layout/Makefile.in
./layout/style/Makefile.in
./rdf/Makefile.in
./security/manager/Makefile.in
./content/Makefile.in
./content/smil/Makefile.in
./content/xul/templates/Makefile.in
./content/xul/content/Makefile.in
./content/base/Makefile.in
./content/media/Makefile.in
./parser/htmlparser/Makefile.in
./dom/sms/Makefile.in
./js/jsd/Makefile.in
./js/xpconnect/Makefile.in
./widget/Makefile.in
./widget/windows/Makefile.in
./Makefile.in
./startupcache/Makefile.in
./storage/Makefile.in
./gfx/Makefile.in
./intl/strres/Makefile.in
./intl/uconv/Makefile.in
./intl/unicharutil/Makefile.in
./intl/lwbrk/Makefile.in
./embedding/Makefile.in
./modules/libjar/Makefile.in
./modules/libpref/Makefile.in
./build/Makefile.in
./build/win32/Makefile.in
./xpcom/Makefile.in
./extensions/spellcheck/hunspell/Makefile.in
./extensions/cookie/Makefile.in
./netwerk/Makefile.in
./netwerk/streamconv/Makefile.in
./editor/txmgr/Makefile.in
./toolkit/mozapps/shared/Makefile.in
./toolkit/mozapps/update/Makefile.in
./toolkit/library/Makefile.in
./toolkit/library/Makefile.in
./toolkit/crashreporter/Makefile.in
./toolkit/components/perf/Makefile.in
./toolkit/components/perf/Makefile.in
./toolkit/components/feeds/Makefile.in
./toolkit/components/url-classifier/Makefile.in

contain the string

ifdef ENABLE_TESTS

but have some other statement inside (e.g. TOOL_DIRS += <foo> etc) and
they remain unchanged by this patch.
2012-02-04 17:32:24 +00:00
Ms2ger
c81e3a7323 Bug 720974 - Remove IsMozEditorBogusNode(nsIDOMNode*); r=ehsan 2012-02-01 11:54:22 +01:00
Ms2ger
0eaa39270a Bug 722412 - Cleanup nsPlaintextEditor::SetDocumentCharacterSet; r=ehsan 2012-02-01 11:54:22 +01:00
Ms2ger
bee22468f5 Bug 722411 - Cleanup nsPlaintextEditor::GetAndInitDocEncoder; r=ehsan 2012-02-01 11:54:22 +01:00
Ms2ger
853c6e26ed Bug 720982 - Part b: Remove nsHTMLEditor::InsertBR; r=ehsan 2012-02-01 11:54:21 +01:00
Ms2ger
2e6a1cac96 Bug 720982 - Part a: Remove nsHTMLEditor::CreateBRImpl; r=ehsan 2012-02-01 11:54:21 +01:00
Matthew Schranz
75edd6c796 Bug 698384 - Make document.createNodeIterator's 2nd and 3rd parameters optional. r=smaug 2012-01-25 13:47:50 +01:00
Ehsan Akhgari
7ed714fe6f Bug 718316 - Try to fix the intermittent orange introduced after the landing of bug 598482 by flushing before capturing the screenshot; r=bzbarsky 2012-01-16 14:41:54 -05:00
Masayuki Nakano
a620faaa8d Bug 717560 input events during composition should be fired after auto batch is gone r=ehsan 2012-01-13 15:19:22 +09:00
Masayuki Nakano
7de3aa99c7 Bug 717147 part.2 Don't do autocomplete during composition r=dolske 2012-01-13 15:19:22 +09:00
Ms2ger
03f1927241 Bug 716207 - Part b: Cleanup nsTextEditRules::RemoveRedundantTrailingBR; r=ehsan 2012-01-11 09:23:07 +01:00
Ms2ger
b36f3f9abc Bug 716207 - Part a: Cleanup nsTextEditRules::DidUndo; r=ehsan 2012-01-11 09:23:07 +01:00
Ms2ger
fe537b0860 Bug 716630 - Kill editor's warnings; r=ehsan 2012-01-11 09:22:16 +01:00
David Zbarsky
3484fe1ebe Bug 682611 - Part 1: Merge nsIDOMRange and nsIDOMNSRange; r=Ms2ger r=smaug 2012-01-10 15:19:54 +01:00
Ehsan Akhgari
1505a73948 Bug 716593 - test_bug596001.html calls SimpleTest.finish needlessly; r=roc 2012-01-09 17:07:17 -05:00
Graeme McCutcheon
0532ae7b27 Bug 471319 - Don't make incorrect assumptions about the bogus node after undo/redo. r=ehsan 2012-01-04 15:15:09 +00:00
Masayuki Nakano
61971e52ff Bug 711903 part.2 Fix new test failure r=ehsan 2011-12-31 23:04:37 +09:00
Masayuki Nakano
a0dbc0b9f1 Bug 713502 Fire input event even during composition r=smaug+ehsan 2011-12-31 23:04:37 +09:00
Masayuki Nakano
b4506dd72f Bug 700199 EventUtils.js should use synthesized events for sendKey(), sendChar() and sendString() rather than untrusted events r=smaug+ehsan+dolske+enndeakin 2011-12-16 22:38:45 +09:00
Jan Bambach
1984c5a018 Bug 707677 - Use defaultPrevented instead of the deprecated getPreventDefault() in front-end code. r=dao 2011-12-08 10:21:32 +01:00
Masayuki Nakano
b26f243504 backout 34b8fe028357 2011-12-08 16:42:45 +09:00
Masayuki Nakano
67ab8bc88a Bug 700199 EventUtils.js should use synthesized events for sendKey(), sendChar() and sendString() rather than untrusted events r=ehsan+smaug+enndeakin+dolske 2011-12-07 14:13:06 +09:00
Fabien Cazenave
9a367e43a4 Bug 684187 - Use dom::Element instead of nsIDOMElement for nsEditor::mRootElement; r=ehsan 2011-12-03 22:50:15 +01:00
Masayuki Nakano
d5ddcb1538 Bug 674770 part.2 Fix new test_bug597331.html failure and test_bug600570.html failur on Windows r=ehsan 2011-11-26 13:51:48 +09:00
Ed Morley
7bc582f20f Backout 4997c6f8b24d (bug 616542) for causing locally run mochitest-browser-chrome test runs to fail 2011-11-05 18:35:59 +00:00
Rail Aliiev
8a56fd9db2 Bug 616542 - Shorten file path length of mochitest; r=ted 2011-11-04 21:13:42 +00:00
Ehsan Akhgari
2a602a5685 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Quentin Headen
2fe3ac75d0 Bug 364914 - Do not spell check the contents of a textarea until it's focused for the first time; r=ehsan 2011-10-16 22:06:24 -04:00
Jeff Walden
b7753477cf Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones
--HG--
extra : rebase_source : b4bae9a0f85abf2feb828609b50e756916b99a6f
2011-10-10 22:50:08 -07:00
Jeff Walden
eb2cb918a4 Back out everything since 5435ee09cf7b. Tinderbox compilers hate me. r=epic-fail 2011-10-12 12:21:53 -07:00
Jeff Walden
77ebbde4ab Bug 639469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. r=cjones
--HG--
extra : rebase_source : 860a8271bf7e51cde358f2a4185c410de1fc2960
2011-10-10 22:50:08 -07:00
Ehsan Akhgari
d9e0fb12d5 Bug 692520 - Handle the case where the frame might going away while retrieving selection properties from a text control; r=bzbarsky 2011-10-07 09:40:11 -04:00
Michael Wu
d8e503c38b Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Ehsan Akhgari
2929393a1a Merge mozilla-central and mozilla-inbound after the landing of bug 666414 2011-09-26 16:12:48 -04:00
Ehsan Akhgari
b542efd4e6 Bug 666414 - Prevent AddRef and Release from being called on the pointers wrapped in nsCOMPtr and nsRefPtr; r=bsmedberg 2011-09-16 16:22:44 -04:00
Masayuki Nakano
27777a6f2a Bug 669028 part.9 editor should use mozilla::LookAndFeel rather than nsILookAndFeel r=ehsan 2011-09-09 11:27:12 +09:00
Ehsan Akhgari
b5f8461038 Bug 681229 - Sanitize the platform linebreaks to DOM linebreaks when pasting or drag-dropping text into text controls; r=roc 2011-09-15 15:32:42 -04:00
Felix Fung
9bb0edf799 Bug 577266 - Correct misspellings in source code 2011-09-06 17:20:35 -07:00
Ms2ger
b12351fbda Bug 672054 - Part a: Remove nsIDOMNSUIEvent; r=smaug 2011-08-26 09:43:49 +02:00
Ehsan Akhgari
08eb4fb344 Bug 318065 followup - Remove the extra finish call from the test
DONTBUILD
2011-08-17 16:40:31 -04:00
Graeme McCutcheon
8ded7124eb Bug 318065 - Don't notify editor observers until bogus node state is reset. r=ehsan 2011-08-16 13:55:23 +01:00
Ms2ger
66ab4757eb Merge m-c to m-i 2011-08-13 14:47:03 +02:00
Malini Das
a0832b693a Bug 367393 - Add a packed MochiKit that contains only SimpleTest dependencies- plain tests 2/2. r=jmaher, a=test-only 2011-08-12 12:21:44 -04:00
Malini Das
e306b1b5aa Bug 367393 - Add a packed MochiKit that contains only SimpleTest dependencies- chrome. r=jmaher, a=test-only 2011-08-12 12:21:36 -04:00
Graeme McCutcheon
1e5935a446 Bug 483651 - Trailing <br> node not removed when it should be; r=ehsan 2011-08-12 15:53:10 -04:00
Jonas Sicking
5491caaaf4 Bug 661297 Part 1: Remove Add/RemoveEventListenerByIID API. r=smaug 2011-08-08 11:26:26 -07:00
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
Simon Montagu
ae37ce037d Undefine caret bidi level during reflow instead of on text entry. Bug 664087, r=roc 2011-07-05 08:42:32 +03:00
Jonas Sicking
5e5e6bd544 Bug 658714 Part 10: Remove nsIDOM3EventTarget/nsIDOMEventGroup. r=smaug 2011-06-23 19:18:02 -07:00
Jonas Sicking
864793d608 Bug 658714 Part 9: Don't use EventGroups for system-group. r=smaug 2011-06-23 19:18:02 -07:00
Jonas Sicking
6a04ff1d9f Bug 658714 Part 6: Fixups after search'n'replace s/nsPIDOMEventTarget/nsIDOMEventTarget/. r=smaug 2011-06-23 19:18:01 -07:00
Jonas Sicking
e3f6b769a1 Bug 658714 Part 5: Search'n'replace nsPIDOMEventTarget to nsIDOMEventTarget. r=smaug 2011-06-23 19:18:00 -07:00
Masayuki Nakano
db1e5b26fa Bug 664437 editor should use mozilla::Preferences r=ehsan 2011-06-17 09:59:29 +09:00
Masayuki Nakano
85c451e309 Bug 660121 Remove all pref related methods from nsContentUtils r=roc 2011-05-29 08:42:57 +09:00
Ehsan Akhgari
01360016f7 Bug 634406 - Don't select past the trailing BR node in text fields when performing the SelectAll operation; r=roc 2011-05-25 16:30:14 -04:00
Masayuki Nakano
49814a538d Bug 659536 part.2 Replace nsContentUtils::GetIntPref() with Preferences::GetInt() or Preferences::GetUint() r=roc 2011-05-25 15:32:00 +09:00
Ms2ger
c36c459144 Bug 657210 - Outparamdel nsEditor::GetPresShell; r=ehsan 2011-05-22 14:43:13 +02:00
Craig Topper
4e38ca20a7 Bug 658143 - Part 1: Changes nsCOMPtr<nsFrameSelection> to nsRefPtr. r=roc 2011-05-18 20:10:49 -07:00
Ms2ger
48b02e4f5a Bug 657160 - Remove NS_NewTextEditRules; r=ehsan 2011-05-15 12:16:45 +02:00
Ehsan Akhgari
15252ef290 Bug 612129 - Set the initial selection range to the beginning of the text field in order to be more compatible with other browsers; r=roc 2011-05-12 09:52:38 -04:00
Masayuki Nakano
9a56e9598d Bug 655918 Clean up the composition string when whole characters of it are refused due to maxlength r=ehsan 2011-05-11 13:52:45 +09:00
Ed Morley
082d53f39b Bug 655756 - Remove final XP_MAC remnants; r=josh 2011-05-10 20:24:48 +02:00
Ehsan Akhgari
540b4161a5 Bug 649797 - Rewrite the test for bug 600570 in a way that doesn't trigger the assertion which can never happen on the web; r=roc
--HG--
extra : rebase_source : 8f21974f360f1e9806a1b7cfefb7d1733513d22f
2011-04-21 10:25:34 -04:00
Ehsan Akhgari
680e9b757e Bug 649012 - Fix some flaky mochitests which rely on non-zero timeout values; rs=ted 2011-04-16 19:39:34 -04:00
Ehsan Akhgari
c1e4d5e196 Backed out changeset d407ee4dabcc because it causes some tests to go orange 2011-04-16 23:47:06 -04:00
Ehsan Akhgari
3938fc6c75 Bug 649012 - Fix some flaky mochitests which rely on non-zero timeout values; rs=ted 2011-04-16 19:39:34 -04:00
Sebastian Kromp
c90dd3913b Bug 633066: Remove nsICiter and make nsInternetCiter a static class. r=ehsan 2011-03-31 07:32:13 -04:00
Ehsan Akhgari
5199d98d91 Bug 645914 - Do not eat the white-space when doing word selection if the eaten whitespace is a newline character and we have been instructed not to jump between lines; r=roc
This fixes a bug in selecting words at the end of lines in textarea's for Windows.
2011-03-30 11:56:48 -04:00
Ehsan Akhgari
eaafa97906 Test case for bug 638596; r=roc 2011-03-04 13:44:25 -08:00
Ehsan Akhgari
7a77702d1e Bug 641466 - Correct the array bounds checking so that the last surrogate pair in a textbox can be deleted correctly; r=roc 2011-03-16 15:34:29 -04:00
Ehsan Akhgari
c06813a2c5 Bug 407127 - Part 6: Remove the presshell argument to nsIEditor::Init as it's no longer necessary; r=roc 2011-03-11 00:40:31 -05:00
Ehsan Akhgari
bb48d9cae8 Bug 407127 - Part 4: Avoid using the presshell needlessly because it may not always be available; r=roc 2011-03-11 00:40:30 -05:00
Ehsan Akhgari
6ef553932d 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
Ehsan Akhgari
586a904360 Bug 407127 - Part 1: Refactor the editor so that it only touches mPresShellWeak in GetPresShell, to make removing it easier; r=roc 2011-03-11 00:40:30 -05:00
Ehsan Akhgari
af800fd6a1 Bug 636465 - Reset the spellchecking override status when detaching an editor object from the content node; r,a=roc 2011-03-01 15:04:42 -08:00
Ehsan Akhgari
1989a9bf06 Bug 636074 follow-up: move the assertion count adjustment because a test was added in between 2011-02-23 15:28:33 -08:00
Kyle Huey
da2a416c73 Bug 633709: Convert bogus assert into a warning. r+a=ehsan
--HG--
extra : rebase_source : 5928d5a4309bd98e0cf4cd3041f36ba64d992706
2011-02-19 17:49:23 -05:00
Peter Van der Beken
2552abd64a Fix for bug 633738 (quora.com bloats out of control (part 3)) - mark some known assertions caused by bug 439258. r=bz, a=jst. 2011-02-17 12:19:13 +01:00
Chris Leary
86d81ea3d6 Merge tracemonkey to mozilla-central. (a=blockers) 2011-01-31 19:43:36 -08:00
Jonas Sicking
6c6a7cea3e Disallow content access to chrome functions without __exposedProps__ (bug 628410, r=gal). 2011-01-29 18:47:17 -08:00
Ehsan Akhgari
b1d2463ed9 Bug 629172 - Fix the regression in switching the text input direction using Cmd/Ctrl+Shift+X; r=roc a=blocking-final+
--HG--
extra : rebase_source : 57471865db00c1efa07bb746df42de8278027b36
2011-01-27 00:26:33 -05:00
Ehsan Akhgari
3f40511a92 Bug 626411 - Selecting a section of URL, then clicking "Delete" stays at refresh, instead of "go"; r=roc a=blocking-final+
--HG--
extra : rebase_source : 09c7a68d030c819afe7086fe22f2c83620e881eb
2011-01-19 19:25:03 -05:00
Ehsan Akhgari
bde6418f39 Bug 625452 - Make sure all plaintext editor commands generate trusted input events; r=roc a=blocking-final+ 2011-01-15 23:16:45 -05:00
Ehsan Akhgari
22f13c2a13 Bug 527935 - Part 4: Make sure that the input event after paste operations; r=roc a=blocking-final+ 2010-12-17 14:47:11 -08:00
Ehsan Akhgari
393e54e609 Bug 527935 - Fire the input event for text controls with the correct trusted-ness status; r=roc a=blocking-final+ 2010-12-07 01:30:05 -05:00
Masayuki Nakano
17924ba129 Bug 613810 - Undo(ctrl+z) does not work continuously after committing IME; r=ehsan a=blocking-final+ 2010-11-24 17:57:32 -05:00
Justin Dolske
4e13204b40 Bug 613403 - Fix existing tests to work with tab-modal prompt changes. r=ehsan, a=testsonly 2010-11-19 15:15:27 -08:00
Ehsan Akhgari
9cd1d8318f Bug 611182 - Part 6: Actually allow the bogus node to be deleted from the document, and check if the parent is modifiable when inserting an element to prevent a bogus node being inserted under a contenteditable="false" element; r=bzbarsky a=blocking-beta8+
This fixes a failure in layout/reftests/bugs/579985-1.html, and is tested by it.
2010-11-12 10:38:14 -05:00
Ehsan Akhgari
8376c423de 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
Ehsan Akhgari
472326895e Bug 551704 - Part 2: Don't replace newline characters with BR nodes in preformatted editable fields; r=roc a=blocking-betaN+ 2010-11-06 18:49:26 -04:00
Ms2ger
859896ba2e Bug 606717 - Comparison between signed and unsigned integers in nsTextEditRules::CollapseSelectionToTrailingBRIfNeeded; r=ehsan a=bsmedberg 2010-11-04 16:45:39 -04:00
Ms2ger
1dc17b150a Bug 605177 - Fix a number of build warnings in editor/; r=ehsan a=bsmedberg 2010-11-04 16:44:46 -04:00
Ehsan Akhgari
22cdd2dc8b Bug 606295 - Don't attempt to remove the edit action listener from nsPlaintextEditor's dtor; r,a=roc 2010-10-22 16:51:06 -04:00
Ehsan Akhgari
88e3c3e1a4 Bug 604532 - Copying from the location bar doesn't copy the entire URL if some text has been appended to it; r=roc a=blocking-final+ 2010-10-18 13:58:55 -04:00
Ehsan Akhgari
bd870e5b18 Bug 602130 - Always start with a clean transaction manager when re-initialing the editor; r=roc a=blocking-final+
--HG--
extra : rebase_source : ec386404eb6853a66406f1b441cc25f3a3417688
2010-10-14 19:53:43 -04:00
Ehsan Akhgari
e75e09ff61 Bug 603556 - pasting into text that is longer than maxlength of text control fails; r=roc a=blocking-final+ 2010-10-12 18:30:41 -04:00
Ehsan Akhgari
52b16445e6 Bug 597331 - Reframing a textarea sets the caret position to the end of its contents; r=bzbarsky a=blocking-final+ 2010-10-13 01:34:05 -04:00
Ehsan Akhgari
fc135a2458 Bug 600570 - textarea: cut and paste broken, pastes more than cut, leaves selectionEnd with wrong value; r=bzbarsky a=blocking-betaN+ 2010-10-06 18:42:21 -04:00
Ehsan Akhgari
133d6d5182 Bug 597519 - Attempting to add characters to a textarea filled to its maxlength with a trailing newline results in the caret to jump to the previous line; r=roc a=blocking-final+ 2010-09-24 15:10:53 -04:00
Ehsan Akhgari
f4902d68f7 Bug 596001 - Add a test to make sure that tab values are handled correctly in plaintext editable fields; r=roc a=NOPTB 2010-09-23 16:55:40 -04:00
Ehsan Akhgari
dae8839f12 Bug 596506 - Going to end of line using Ctrl-e on Mac positions caret after newline in textareas; r=bzbarsky a=blocking-final+ 2010-09-16 14:40:26 -04:00
Ehsan Akhgari
93d0c6b193 Bug 596333 - Part 2: Make ContainsDOMWordSeparator greedy; r=bz a=blocking-betaN+ 2010-09-16 14:39:28 -04:00
Ehsan Akhgari
851b7dc1b5 Bug 596333 - Automatic spell checking not always functional after bug 240933; r=roc a=blocking-betaN+ 2010-09-16 14:38:46 -04:00
Ehsan Akhgari
ced4d3129b Bug 590554 - Part 2: Disable the end offset assertion for password fields; r=roc
--HG--
extra : rebase_source : 29f26dc5de8bd0ba0656a37fdf3b24657a38c581
2010-08-30 16:38:43 -04:00
Ehsan Akhgari
8c8c515368 Bug 590554 - maxlength in textarea does not prevent newline characters from being inserted; r,a=roc
--HG--
extra : rebase_source : 7156090a56ed7818db3539dbc8e6f9f7ae86d6e5
2010-08-27 01:36:09 -04:00
Ehsan Akhgari
88f276e98a Bug 240933 - Part 7: Collapse the selection in textarea's to the trailing BR if needed after every edit operation; r,a=roc
--HG--
extra : rebase_source : def2e0da4f32e9e50231b250075c45766bb00819
2010-09-01 18:06:52 -04:00
Ehsan Akhgari
b5f720a55c Bug 240933 - Part 6: Put the selection on the moz BR element if the user presses Enter at the end of a textarea; r=roc a=dbaron
--HG--
extra : rebase_source : 179199c5e641282fdcc382dccbe2d31ad0cbe057
2010-07-19 16:19:27 -04:00
Ehsan Akhgari
43c9761626 Bug 240933 - Part 5: Inject linefeed characters instead of BR elements when the user presses Enter; r=roc a=dbaron
--HG--
extra : rebase_source : 6e8e9f098950113fd4739251dfee6b19473c8f08
2010-07-17 19:40:22 -04:00
Ehsan Akhgari
2a998fd974 Bug 240933 - Part 4: Remove the code responsible for handling non-preformatted text in WillInsertText; r=roc a=dbaron
--HG--
extra : rebase_source : 67bddca61bbf4f2d20fd8e105234c3667459aa20
2010-07-16 17:34:59 -04:00
Ehsan Akhgari
4085a00c0c Bug 240933 - Part 1: Do not split multiline text into textframes separated by BR elements; r=roc a=dbaron
--HG--
extra : rebase_source : bcaf760ad9d2e939a5d99f21cd8727ef71faea92
2010-07-11 16:26:26 -04:00
Ehsan Akhgari
96488558d9 Bug 592592 - Part 2: Fix test_texteditor_keyevent_handling.html to reflect the desired behavior; r=roc 2010-09-08 17:32:07 -04:00
Ehsan Akhgari
7b654288bf Back out bug 240933 and bug 590554 because of reftest failure on Win7 and also bug 593211 2010-09-02 19:54:23 -04:00
Ehsan Akhgari
f46bed132f Bug 590554 - Part 2: Disable the end offset assertion for password fields; r=roc
--HG--
extra : rebase_source : 0e3dce695eafc269f1efdacd57d56d5383be6bd9
2010-08-30 16:38:43 -04:00
Ehsan Akhgari
9367068a32 Bug 590554 - maxlength in textarea does not prevent newline characters from being inserted; r,a=roc
--HG--
extra : rebase_source : bc351ffd6cd3a346b57808f338e4367e2c731947
2010-08-27 01:36:09 -04:00
Ehsan Akhgari
ddbe740048 Bug 240933 - Part 7: Collapse the selection in textarea's to the trailing BR if needed after every edit operation; r,a=roc
--HG--
extra : rebase_source : a13c6c277ddb545614eb8c93131112bc793c1348
2010-09-01 18:06:52 -04:00
Ehsan Akhgari
b41230b0ae Bug 240933 - Part 6: Put the selection on the moz BR element if the user presses Enter at the end of a textarea; r=roc a=dbaron
--HG--
extra : rebase_source : d992d0950cd15c24d68f976d6e628eb349de5150
2010-07-19 16:19:27 -04:00
Ehsan Akhgari
f31556a8c3 Bug 240933 - Part 5: Inject linefeed characters instead of BR elements when the user presses Enter; r=roc a=dbaron
--HG--
extra : rebase_source : af405de4d02ba543dffacea04dd026a1dd24c8bf
2010-07-17 19:40:22 -04:00
Ehsan Akhgari
1bb782fa37 Bug 240933 - Part 4: Remove the code responsible for handling non-preformatted text in WillInsertText; r=roc a=dbaron
--HG--
extra : rebase_source : cb4457edb5716727801fad0152eff55d3f4d9b09
2010-07-16 17:34:59 -04:00
Ehsan Akhgari
b2d7d2f956 Bug 240933 - Part 1: Do not split multiline text into textframes separated by BR elements; r=roc a=dbaron
--HG--
extra : rebase_source : 45cbd49946c1577786a5bd141384d92f9daf27c4
2010-07-11 16:26:26 -04:00
Joel Maher
ce269022ab Bug 574189 - Fix chrome tests to work from an extension for android and e10s support a=NPOTB r=ctalbert 2010-08-24 10:29:34 -07:00
Jonas Sicking
cbc0676504 Backout bugs 586754, 574189, 584611 due to orange. a=backout 2010-08-20 11:08:43 -07:00
Joel Maher
978a4a1ad2 Bug 574189 - Fix chrome tests so they can run from a .jar bundle (e10s, android) r=ctalbert a=NPOTB 2010-08-20 09:28:13 -07:00
Ehsan Akhgari
e85adb5a55 Bug 580151 - Part 3: crashtest; r=roc
--HG--
extra : rebase_source : 7b0f6b55c8977d3a3b2b1ef61e5a727f2959badc
2010-07-20 09:21:44 -04:00
Ehsan Akhgari
25f6280420 Bug 580151 - Part 1: Move the increment up in case the call to nsIEditor::GetSelection fails and we bail out early; r=roc
--HG--
extra : rebase_source : 249cf74c6a1700b230d946793819ff6611ebbb99
2010-07-20 09:04:14 -04:00
Daniel Holbert
2e57434ab5 Bug 581166, part 2: Avoid passing null argument to RemoveEditActionListener in ~nsPlainTextEditor, to quiet 2 NS_ENSURE_TRUE warnings at shutdown time. r=ehsan a=bsmedberg 2010-07-26 12:11:09 -07:00
Daniel Holbert
3048e2abb0 Bug 581166, part 1: Quiet a spammy NS_ENSURE_TRUE() in nsTextEditRules::WillDeleteSelection that fires on every tab-switch. r=ehsan a=bsmedberg 2010-07-26 12:11:08 -07:00
Masayuki Nakano
6a5b71a1ed Bug 564412 Remove non-scriptable internal methods from nsIEditorIMESupport r=ehsan, sr=smaug 2010-06-30 13:05:12 +09:00
Masayuki Nakano
721ceccc5d Bug 569988 adding test r=ehsan 2010-06-23 15:15:21 +09:00
Masayuki Nakano
8dfe5edd59 Bug 572969 [SeaMonkey][OSX] Mochitest-3 test_(htmleditor|texteditor)_keyevent_handling.html has 96 (perma)failures r=ehsan 2010-06-20 13:29:44 +09:00
Ehsan Akhgari
24b20624da Bug 572618 - Make debugging the editor easier - Part 4: multiline version of part 1; r=roc 2010-06-17 16:44:35 -04:00
Ehsan Akhgari
efa76e8106 Bug 572618 - Make debugging the editor easier - Part 3: multiline version of part 2; r=roc 2010-06-17 16:40:48 -04:00
Ehsan Akhgari
e93945101f 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
Ehsan Akhgari
ed95bc25f5 Bug 572618 - Make debugging the editor easier - Part 1: Replace all if(NS_FAILED) checks with NS_ENSURE_SUCCESS; r=roc 2010-06-17 15:27:24 -04:00
Masayuki Nakano
ceaf9951b3 Bug 545775 part.2 Refactor GetPIDOMEventTarget() r=ehsan 2010-06-17 14:30:10 +09:00
Masayuki Nakano
be11e1c17d Bug 570455 Editor shouldn't do anything when ESC key is pressed because bug 471322 was marked as WONTFIX r=ehsan 2010-06-17 14:25:20 +09:00
Ehsan Akhgari
181e117cff Bug 569523 - GetStartNodeAndOffset should take an nsIDOMNode** parameter, instead of nsCOMPtr<nsIDOMNode>*; r=roc 2010-06-10 22:46:51 -04:00
Josh Matthews
98ebf9fb31 Bug 566414 - Signed/unsigned comparison warnings in editor; r=ehsan 2010-05-17 15:30:15 -04:00
Masayuki Nakano
9d9e285291 Bug 564669 Remove nsIPlaintextEditor::handleKeyPress() r=smaug+ehsan, sr=roc 2010-06-10 10:16:58 +09:00
Ehsan Akhgari
67c7d5d5e2 Bug 332636 - Handle backspace for Unicode plane 1 characters correctly; r=roc
--HG--
extra : rebase_source : a343610b06983d3328f3ddb2e7025193ab275094
2010-06-04 13:28:19 -04:00
Ehsan Akhgari
c0245df31d Backed out changeset 634e1f2cf46c because it breaks the Esc key in XUL dialogs (possibly among others) 2010-06-03 21:28:03 -04:00
Masayuki Nakano
d075ac396c Bug 564669 Remove nsIPlaintextEditor::handleKeyPress() r=smaug, sr=roc 2010-06-02 16:24:56 +09:00
Ehsan Akhgari
5a941e7405 Bug 568362 - Protect IsPreFormatted callers from premature death; r=roc 2010-05-27 21:18:48 -04:00
Ehsan Akhgari
f58add9d96 Bug 336104 - "ASSERTION: no frame, see bug #188946"; r=roc,dbaron 2010-05-21 16:36:42 -04:00
Ehsan Akhgari
a87b134220 Bug 560647 - add startup timeline instrumentation; r=vlad 2010-05-19 19:22:19 -04:00
L. David Baron
7c61f15cf1 Annotate remainder of crashtest mainfests (all but one test) with the tests that are known to assert. (Bug 472557) 2010-05-06 09:28:01 -07:00
Jonas Sicking
6f9aebb70a Bug 429175: Make sure to only set aNotify to true when we should. r=peterv 2010-05-03 06:23:36 -07:00
Ehsan Akhgari
856ecc5649 Bug 558962 - Memoize nsPlaintextEditor::GetDefaultEditorPrefs to avoid unnecessary calls to the pref service; r=roc 2010-04-13 13:44:17 -04:00
Masayuki Nakano
7d05909d39 Bug 552914 nsEditor::mFlags is never modified by SetFlags() r=smaug 2010-04-12 11:35:18 +09:00
Ehsan Akhgari
05b0ede6fb Bug 221820 - Part 1: Call EnsureEditorInitialized from all places where editor needs to exist; r=bzbarsky 2010-02-01 23:00:12 -05:00
Craig Topper
9eccdbd4d7 Bug 557416: Remove unnecessary includes and forward declarations of nsIPresShell. r=roc 2010-04-10 16:09:38 -04:00
Masayuki Nakano
2e04f8ba90 Bug 543398 Drop nsTextEventReply and nsIPrivateCompositionEvent r=smaug, sr=roc 2010-04-10 18:24:35 +09:00
Ehsan Akhgari
a7ebcd12b9 Back out the editor lazy inititialization patches (bug 221820) to try to solve the orange in bug 557689 2010-04-06 21:08:58 -04:00
Ehsan Akhgari
0170b6dede Bug 221820 - Part 1: Call EnsureEditorInitialized from all places where editor needs to exist; r=bzbarsky
--HG--
extra : rebase_source : 91df07eb7a6a52c35d8f4d52212663045450b95a
2010-02-01 23:00:12 -05:00
Craig Topper
7b89b159bb Bug 253889: DeCOMtaminate nsIPresShell - GetCaret(). r=roc
--HG--
extra : rebase_source : 2a05050d8cbb10dd3bb763d5d5a158cc5f3dd814
2010-03-31 08:39:31 -04:00
Kyle Huey
afc6c6ca2d Backed out changeset 4b8936ac4a31 2010-03-30 19:56:44 -04:00
Craig Topper
6c9540a26d Bug 253889: More deCOMtamination of nsIPresShell. r=roc 2010-03-28 19:21:11 -04:00
Neil Deakin
8f3acb3041 Bug 501154, consolidate places where clipboard events are fired from, r=smaug,sr=neil 2010-03-19 14:32:13 -04:00
Mats Palmgren
549893b6d7 Bug 544852, part 1: Remove nsCaret::GetCaretCoordinates. r=roc 2010-03-14 23:52:07 +01:00
Markus Stange
6cd85ba6d1 Bug 434210 - When dropping text in textfields, check the drag session's drag action instead of the event's modifier flags when determining whether to move or copy text. r=smaug 2010-03-08 13:32:53 +01:00
Masayuki Nakano
8a42231835 Bug 545602 Unify the event listeners for editor r=smaug
--HG--
rename : editor/libeditor/text/nsEditorEventListeners.cpp => editor/libeditor/base/nsEditorEventListener.cpp
rename : editor/libeditor/text/nsEditorEventListeners.h => editor/libeditor/base/nsEditorEventListener.h
rename : editor/libeditor/html/nsHTMLEditorMouseListener.cpp => editor/libeditor/html/nsHTMLEditorEventListener.cpp
rename : editor/libeditor/html/nsHTMLEditorMouseListener.h => editor/libeditor/html/nsHTMLEditorEventListener.h
2010-03-06 13:01:28 +09:00
Henri Sivonen
1bc27dd8cf Bug 546256 - Replace bogus </head> tag with </title> in test_bug471722.html. r=peterv.
--HG--
extra : rebase_source : 374ecbaed964aae46426cf3b65eb6ead7bcc1d24
2010-02-22 14:17:37 +02:00
Ehsan Akhgari
50f48242c4 Backed out changeset 70b1ccb14325 2010-02-18 18:52:12 -05:00
Ehsan Akhgari
8b4d5890e9 Bug 221820 - Part 1: Call EnsureEditorInitialized from all places where editor needs to exist; r=bzbarsky
--HG--
extra : rebase_source : 117d5f34a90941543a994107351eb0e34ae7308f
2010-02-01 23:00:12 -05:00
Ehsan Akhgari
1000016308 Bug 542912 - Refactor the newline handling behavior in nsTextEditRules; r=bzbarsky sr=roc
--HG--
extra : rebase_source : 92fb4649c72293253317cc5eb6fc0f10d8aa6dfb
2010-02-01 13:12:31 -05:00
Tom Dyas
8209cf7fbc 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
Josh Aas
f9051ae7e3 Backed out changeset bee6729280d8 2009-12-30 17:29:26 -05:00
Tom Dyas
13780ad38c Support receiving data from Mac OS X services into text and HTML editors. b=525389 r=josh r/sr=smaug 2009-12-30 15:58:33 -05:00
Oleg Romashin
0a396e82ab b=536560; Freeze and OOM kill happens in gfxPangoFontGroup::CreateGlyphRunsItemizing, on password input field, r=neil 2009-12-26 10:36:11 +02:00
Brad Lassey
c7d187e05b bug 527674 - number of askterisks doesn't match the number of password charecters when user hits delete r=neil 2009-11-25 12:50:35 -05:00
Brad Lassey
926e622d2a bug 530367 - passwords from password manager flash in clear text r=neil 2009-11-25 12:41:23 -05:00
Brad Lassey
3a3e6e7566 bug 527182 - crash entering login info on twitter, missing QI impl r=timeless 2009-11-18 13:45:26 -05:00