Commit Graph

330 Commits

Author SHA1 Message Date
Daniel Glazman
0e38cc4a77 Bug 607584 - Part 2: XUL test case; r=ehsan a=test-only 2010-10-29 12:36:21 -04:00
Daniel Glazman
ac5d79b1f8 Bug 607584 - CR in a paragraph with an id attribute creates a second paragraph of same id; r=ehsan a=roc 2010-10-29 12:35:27 -04:00
Ehsan Akhgari
26b56e6566 Bug 542317 - Caret missing when an iframe is put into design mode when it already has focus; r=roc a=blocking-final+ 2010-10-29 12:30:52 -04:00
Ehsan Akhgari
a3d62c2955 Bug 603292 - PRUint32 countU < 0 is useless in nsHTMLEditor::AddNewStyleSheetToList; r=roc a=bsmedberg 2010-10-12 18:30:41 -04:00
Ehsan Akhgari
1bd8b7c9e7 Bug 613130 - Don't sanitize style nodes and attributes in the sanitizing parser if we have not found any unsafe properties; r=roc,bzbarsky a=blocking-final+ 2010-11-24 13:31:52 -05:00
Ehsan Akhgari
11b6d633e6 Bug 615015 followup - Adjust the assertion count which now happens in editor/libeditor/html/crashtests/467647-1.html too; a=orange-fix 2010-12-03 11:15:06 -05:00
Ehsan Akhgari
ed92562d68 Bug 615015 - "ASSERTION: bad action nesting!"; r,a=roc
--HG--
extra : rebase_source : 3e972a7f5dad81b5cba1b8ee93c16798fdc809c2
2010-12-01 00:24:09 -05:00
Ehsan Akhgari
ef612c0f0a Bug 615450 - Prevent the reinitialization of the HTML editor while an editor operation is in progress on a document; r,a=roc
This should prevent crashes, update view count and edit action nesting count mismatches, and more!

--HG--
extra : rebase_source : af1397b3c8de19d936ca70690a6f7ed284cc5d00
2010-11-30 23:21:32 -05:00
Ehsan Akhgari
2337dae8c9 Back out bug 612128 because it regressed Fennec with bug 618357, which blocks Fennec beta3; a=blocking-fennecb3+ 2010-12-10 21:20:00 -05:00
Ehsan Akhgari
7b0059c6db Bug 612128 - Part 4: Use the read-write state to find the selection root of the editor; r=roc a=bz 2010-12-06 14:27:14 -05:00
Ehsan Akhgari
30e6f309f2 Bug 612128 - document.execCommand("inserthtml") may insert HTML inside non-editable parts of a document; r=roc,bz a=bz 2010-11-16 15:45:49 -05:00
Ehsan Akhgari
a3f2856505 Bug 613823 - Don't attach multiple mutation observers to the document in case the HTML editor reinitializes; r=roc a=blocking-final+ 2010-12-08 21:44:15 -05:00
Ehsan Akhgari
a09905d6a5 Bug 612447 - Part 3: Prevent the HTML editor from dying while we run a document modified handler from a script runner; r=bzbarsky a=blocking-beta8 2010-11-19 11:02:24 -05:00
Ehsan Akhgari
bf6b8a80c8 Bug 612447 - Part 2: Protect the HTML editor from dying while a mutation event handler is in progress; r=bzbarsky a=blocking-beta8 2010-11-18 16:01:12 -05:00
Ehsan Akhgari
d921d70f6f Bug 612447 - Don't Recreate an editor object attached to a document in a frame if that frame is restyled; r=bzbarsky a=blocking-beta8+ 2010-11-18 16:01:12 -05:00
Ehsan Akhgari
4d471b8466 Bug 613434 - Rename the browserscope richtext suite in preparation of richtext2 integration; r=roc a=NPOTB
--HG--
rename : editor/libeditor/html/tests/browserscope/lib/browserscope/LICENSE => editor/libeditor/html/tests/browserscope/lib/richtext/LICENSE
rename : editor/libeditor/html/tests/browserscope/lib/browserscope/README => editor/libeditor/html/tests/browserscope/lib/richtext/README
rename : editor/libeditor/html/tests/browserscope/lib/browserscope/README.Mozilla => editor/libeditor/html/tests/browserscope/lib/richtext/README.Mozilla
rename : editor/libeditor/html/tests/browserscope/lib/browserscope/currentStatus.js => editor/libeditor/html/tests/browserscope/lib/richtext/currentStatus.js
rename : editor/libeditor/html/tests/browserscope/lib/browserscope/current_revision => editor/libeditor/html/tests/browserscope/lib/richtext/current_revision
rename : editor/libeditor/html/tests/browserscope/lib/browserscope/richtext/editable.html => editor/libeditor/html/tests/browserscope/lib/richtext/richtext/editable.html
rename : editor/libeditor/html/tests/browserscope/lib/browserscope/richtext/js/range.js => editor/libeditor/html/tests/browserscope/lib/richtext/richtext/js/range.js
rename : editor/libeditor/html/tests/browserscope/lib/browserscope/richtext/richtext.html => editor/libeditor/html/tests/browserscope/lib/richtext/richtext/richtext.html
rename : editor/libeditor/html/tests/browserscope/lib/browserscope/update_from_upstream => editor/libeditor/html/tests/browserscope/lib/richtext/update_from_upstream
rename : editor/libeditor/html/tests/browserscope/test_browserscope.html => editor/libeditor/html/tests/browserscope/test_richtext.html
extra : rebase_source : 04a0818f516856a2868b94481f1d29694db1f0d1
2010-11-19 11:02:22 -05:00
Ehsan Akhgari
de09cc12fc Bug 611457 - mochitest-chrome: intermittent "test_bug607584.xul | Test timed out."; r=roc a=orange-fix
--HG--
extra : rebase_source : afbaabdbb9f7335913acb3d27c4eac900f288469
2010-11-19 11:02:24 -05:00
Ehsan Akhgari
db3a9aabba Bug 612625 - intermittent orange: test_bug607584.xul continues executing after we've left the page, mostly showing up in test_bug171813.html; r=roc a=test-fix 2010-11-17 18:23:18 -05:00
Daniel Glazman
7aab5ded6b Bug 605081 - Editor refuses to insert a <keygen> element; r=ehsan a=roc 2010-10-21 17:12:49 -04:00
Mounir Lamouri
66067bcb7b Bug 595036 (2/2) - Introduce nsEventStates class to represent event states. r+a=bz 2010-10-20 13:26:32 +02:00
Ehsan Akhgari
1acdecd31f Bug 604332 - Whitelist attribute names beginning with "_" when pasting HTML into an editable field; r,a=roc 2010-10-18 13:59:34 -04:00
Ehsan Akhgari
16a0dc9a08 Bug 601881 - video and audio should never play automatically in editor; r,a=bzbarsky 2010-10-06 16:31:09 -04:00
Ehsan Akhgari
da9574bd29 Bug 410986 - Part 4: Switch the shortcut to Cmd+Option+Shift+V on Mac; r,a=bzbarsky 2010-09-28 20:33:22 -04:00
Ehsan Akhgari
e30f04231f Bug 410986 - Part 2: unit test; r=roc a=NPOTB 2010-09-21 23:33:44 -04:00
Ehsan Akhgari
ecfaa4d477 Bug 586662 - Part 3: Don't attempt to compare unrelated points when manipulating selections; r=roc a=blocking-betaN+ 2010-09-23 14:44:01 -04:00
Ehsan Akhgari
b7844b60fc Bug 599322 - Base href ignored for drag/drop or copy/paste in designMode; r=roc a=blocking-final,1.9.2.11,1.9.1.14 2010-09-24 15:02:21 -04:00
Ehsan Akhgari
4395a51b4e Bug 596300 - Element Attributes dropped when dragging and dropping in DesignMode/ContentEditable sections; r=bzbarsky a=blocking-betaN,1.9.2.11,1.9.1.14 2010-09-27 13:28:54 -04:00
Ehsan Akhgari
37297d45dc Bug 597784 - The inserthtml command should not use a sanitizing fragment content sink; r=bzbarsky a=blocking-betaN,1.9.2.11,1.9.1.14 2010-09-27 13:21:34 -04:00
Jesse Ruderman
13d5e83e08 Bug 499844 - add crashtest. a=NPOTB 2010-09-24 11:33:54 -07:00
Ehsan Akhgari
855295156d Bug 598105 - Support the HTML5 data-* attributes in the sanitizing fragment sink; r,a=bzbarsky
--HG--
extra : rebase_source : a76a2f8eab3452d054de86d08da885bc875a7fbb
2010-09-20 17:32:24 -04:00
Mounir Lamouri
af7af7ba81 Bug 555840 - Implement datalist element. r=sicking,mrbkap,ehsan sr=smaug a2.0=roc 2010-09-10 07:16:56 +02:00
Ehsan Akhgari
4872a675f7 Bug 592592 - Part 3: Add a test for the back-space behavior to make sure that back-space will not delete multiple consecutive space characters; r=roc 2010-09-08 17:32:09 -04:00
Ehsan Akhgari
c4d1fc059a Bug 592592 - Non-breaking spaces inserted when multiple spaces are typed, even in pre-wrap-styled text r,a=roc 2010-09-02 20:36:42 -04:00
Ehsan Akhgari
dfd8ce442d Back out bug 592592, bug 588999, bug 591706 and bug 592586 because of test failures 2010-09-07 19:23:29 -04:00
Ehsan Akhgari
48efe58c89 Bug 592592 - Non-breaking spaces inserted when multiple spaces are typed, even in pre-wrap-styled text r,a=roc 2010-09-02 20:36:42 -04:00
Ehsan Akhgari
307d3f93d1 Bug 591378 - REFTEST TEST-UNEXPECTED-PASS | file:///home/cltbld/talos-slave/mozilla-central_fedora-debug_test-crashtest/build/reftest/tests/editor/libeditor/html/crashtests/448329-3.html | assertion count 8 is less than expected 16 assertions; r=roc a=NPOTB
--HG--
extra : rebase_source : 486646660fa6970a7371a149eec08f5bbaaa569e
2010-08-27 15:03:09 -04:00
Timothy Nikkel
a52c6b7ef2 Bug 588693. Bump assertion count for editor/libeditor/html/crashtests/448329-3.html. r=ehsan 2010-08-27 18:15:08 -05:00
Ehsan Akhgari
8a6a073e4c Bug 582138 - Crash [@ nsHTMLEditor::GetElementOrigin] with mixed HTML and MathML table; r,a=roc 2010-08-25 20:20:32 -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
Ms2ger
a2c049c1fc Bug 531030 - Remove support for the spacer element; r=bzbarsky a=blocking-betaN 2010-08-20 08:05:05 +02:00
Ginn Chen
fbe18c5eaa Bug 586225 Make test_htmleditor_keyevent_handling.html recognize Solaris r=masayuki a=testing files only 2010-08-15 20:33:58 +08:00
Boris Zbarsky
45df267748 Fix some editor tests to actually change something instead of throwing. 2010-08-13 14:31:48 +12:00
Ehsan Akhgari
5a36ff1530 Bug 572290 - <title> value of HTML signature file shows up in signature; r=bzbarsky a=blocking2.0+
--HG--
extra : rebase_source : 7085d047498e0509f056c8a33d9189e52aaeb077
2010-08-10 11:52:32 -04:00
Kyle Huey
4108bf2819 Backed out changeset 0aa4ad290221 2010-08-10 21:14:51 -07:00
Ehsan Akhgari
d8ca1c0100 Bug 572290 - <title> value of HTML signature file shows up in signature; r=bzbarsky a=blocking2.0+ 2010-08-10 11:52:32 -04:00
Antti Jarvelin
ce34e772be Bug 582912 - Extend copy paste support of Fennec Qt port. r=dougt
--HG--
extra : rebase_source : cc841f301338cc66b2382a398627a96373c3406a
2010-07-30 12:46:30 -07:00
Masayuki Nakano
660981e020 Bug 389372 - Contenteditable node is still editable without focus; r=ehsan,masayuki,roc sr=jst a=blocking-2.0:betaN+ 2010-07-22 12:22:44 -04:00
Masayuki Nakano
d7540e477b backout the previous my check-ins 2010-07-22 11:11:34 +09:00
Masayuki Nakano
742e98c291 Bug 389372 Contenteditable node is still editable without focus r=ehsan+roc, sr=jst 2010-07-22 08:46:52 +09:00
Craig Topper
b9673b8709 Bug 577438 Part 1: Add previous sibling to nsIMutationObserver::ContentRemoved. r=sicking 2010-07-21 15:05:17 -07:00
Boris Zbarsky
998b474e42 Bug 578696 part 9. Stop holding strong refs when calling ContentAppended. r=sicking 2010-07-21 11:33:32 -04:00
Zack Weinberg
76dbdde0f4 Bug 569719 part 2: Move headers for the former nsCSSLoader and nsCSSDeclaration into mozilla/css/. r=dbaron
--HG--
rename : layout/style/nsCSSDeclaration.cpp => layout/style/Declaration.cpp
rename : layout/style/nsCSSDeclaration.h => layout/style/Declaration.h
rename : layout/style/nsCSSLoader.cpp => layout/style/Loader.cpp
rename : layout/style/nsCSSLoader.h => layout/style/Loader.h
2010-06-28 15:49:35 -07:00
Ehsan Akhgari
7081b03117 Bug 289384 - Part 3: SelectAll in HTML editor shouldn't attempt to select input/textareas' contents directly; r=roc 2010-07-12 00:20:20 -04:00
Ehsan Akhgari
3c9cf85286 Bug 289384 - Part 2: Fix an assertion; r=roc 2010-07-11 19:54:28 -04:00
Ehsan Akhgari
0ad20714f9 Bug 289384 - Midas Editor: Shortcut command + left/right should go to beginning/end of line; r=masayuki,bzbarsky 2010-07-11 17:48:46 -04:00
Ehsan Akhgari
7dcf9d424a Backout bug 289384 because of crashtest assertion failures 2010-07-11 17:43:27 -04:00
Ehsan Akhgari
e2eb474a10 Bug 490879 - Pasting images into rich text editors creates temporary moz-screenshot.jpg; r+sr=roc
--HG--
extra : rebase_source : e8a5e10ed3067548366574d64406c33bee3b455e
2009-05-15 13:14:16 +04:30
Ehsan Akhgari
f6d555362e Bug 572637 - Paste image into Compose window broken with Shredder; r=bzbarsky
--HG--
extra : rebase_source : 30d81359c13d31a4693c8140ec6ed2b450759a99
2010-06-25 22:22:12 -04:00
Ehsan Akhgari
d288e15ecd Bug 289384 - Midas Editor: Shortcut command + left/right should go to beginning/end of line; r=masayuki,bzbarsky
--HG--
extra : rebase_source : d533ad700d2e3e5d50dc0f03b57b14723e12c7eb
2010-06-25 14:58:25 -04:00
Saint Wesonga
e7a357dcaf Bug 562387 - Convert NS_NEWXPCOM/NS_DELETEXPCOM to new/delete. r=bsmedberg 2010-07-05 11:42:18 +02:00
Dão Gottwald
9b15b69a1b Backed out changeset 59ace8d80ce8 2010-07-04 22:01:13 +02:00
Saint Wesonga
8dd5da1024 Bug 562387 - Convert NS_NEWXPCOM/NS_DELETEXPCOM to new/delete. r=bsmedberg 2010-07-04 21:39:17 +02:00
Jesse Ruderman
14ecbf3e68 Add bug numbers for all remaining asserts() annotations in crashtests and reftests 2010-07-01 19:33:56 -07:00
Dão Gottwald
b314909c2e Backed out changeset db6f8068e9a5 2010-06-29 17:49:21 +02:00
Saint Wesonga
c3669d7e9c Bug 562387 - Convert NS_NEWXPCOM/NS_DELETEXPCOM to new/delete. r=bsmedgerg 2010-06-29 17:14:36 +02:00
Ehsan Akhgari
10408bd2e2 Bug 574558 - Part 4: test case; r=roc 2010-06-28 14:04:37 -04:00
Ehsan Akhgari
c24212e707 Bug 572642 - Part 2: tests; r=roc 2010-06-23 14:40:08 -04:00
Ehsan Akhgari
fafab966e3 Bug 572642 - Part 1: Allow comments, and disallow styles when pasting CF_HTML content; r=roc 2010-06-23 14:40:08 -04:00
Ms2ger
27a3b29543 Implement the figure element. r=jst+timeless+ehsan (Bug 573356) 2010-06-23 10:08:56 -07:00
Ivan Enderlin ext:(%2C%20Mounir%20Lamouri%20%3Cmounir.lamouri%40gmail.com%3E%2C%20Ms2ger%20%3Cms2ger%40gmail.com%3E)
4164b0645e Implement the mark element. r=jonas+timeless (Bug 485377) 2010-06-23 10:08:56 -07:00
Ehsan Akhgari
3f077eaff5 Bug 572598 - Part 6: Don't try to split a node which can't contain a list when inserting one; r=roc 2010-06-21 11:02:14 -04:00
Ehsan Akhgari
1879d1099a Bug 572598 - Part 4: Don't attempt to check empty selections, after all, they're empty; r=roc 2010-06-18 17:43:31 -04:00
Ehsan Akhgari
6caa9db6f3 Bug 572598 - Part 2: Make sure not to exceed the editor's root element when promoting ranges; r=roc 2010-06-18 16:53:16 -04:00
Ehsan Akhgari
83246c59b4 Bug 572598 - Part 1: Don't attempt to inject nodes for type-in state where the container can't accept child nodes; r=roc 2010-06-18 01:37:20 -04: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
Mounir Lamouri
21c25202c6 Bug 562008 - HTML5 section DOM elements should be of type HTMLElement; r=mrbkap,sicking,timeless,ehsan sr=jst 2010-06-19 11:44:43 -07:00
Masayuki Nakano
a69e746d9f Bug 545775 part.6 makes caret visible r=ehsan 2010-06-19 19:39:39 +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
Jesse Ruderman
fb054fc73e Add some crashtests and reftests
--HG--
extra : rebase_source : a167ccf140387fa50e3668422b5a74bea0527255
2010-06-17 13:21:24 -07:00
Masayuki Nakano
eddb1d5460 Bug 545775 part.5 Text editor in ASUS Forum doesn't work r=ehsan 2010-06-17 14:32:05 +09:00
Masayuki Nakano
16f55c793b Bug 545775 part.4 Move mutation observer to nsHTMLEditor r=ehsan 2010-06-17 14:31:15 +09:00
Masayuki Nakano
5f41263aaf Bug 545775 part.3 Move selection initializer into nsEditor r=ehsan 2010-06-17 14:30:42 +09:00
Masayuki Nakano
ceaf9951b3 Bug 545775 part.2 Refactor GetPIDOMEventTarget() r=ehsan 2010-06-17 14:30:10 +09:00
Masayuki Nakano
255dc50f24 Bug 545775 part.1 Separate GetRootElement() r=ehsan 2010-06-17 14:29:40 +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
59ce9793d3 Backed out changeset 2dcce82f9d66 because of mochitest failures 2010-06-16 22:14:11 -04:00
Mounir Lamouri
540508e5de Bug 562008 - HTML5 section DOM elements should be of type HTMLElement; r=mrbkap,sicking,timeless,ehsan sr=jst 2010-06-16 20:33:46 -04:00
Ehsan Akhgari
1d27c39d4a Bug 520189 - Fix copy and test for the HTML editor; f=bzbarsky,dbaron r=sayrer,peterv,bzbarsky sr=roc 2010-04-09 17:06:09 -04: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
Ehsan Akhgari
78a40d380d Bug 550434 - Clicking in an empty contenteditable element that has focus causes the caret to disappear; 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
Jonas Sicking
1489785d0c Bug 570258: Some more atom usage cleanup. r=jst 2010-06-08 16:25:27 -07: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