Commit Graph

190 Commits

Author SHA1 Message Date
Aryeh Gregor
e61ab6cba6 Bug 748313 part 2 - Always try to use CSS values, even for collapsed selections; r=ehsan 2012-05-03 10:09:44 +03:00
Aryeh Gregor
a685451510 Bug 746915 part 1 - Move editing-related tests to editor/ directories; r=ehsan
--HG--
rename : content/html/content/test/test_bug408231.html => editor/libeditor/base/tests/test_bug408231.html
rename : content/html/document/test/test_bug742261.html => editor/libeditor/base/tests/test_bug742261.html
rename : content/html/document/test/test_bug404320.html => editor/libeditor/html/tests/test_bug404320.html
rename : content/html/document/test/test_bug468353.html => editor/libeditor/html/tests/test_bug468353.html
rename : layout/reftests/bugs/388980-1-ref.html => layout/reftests/editor/388980-1-ref.html
rename : layout/reftests/bugs/388980-1.html => layout/reftests/editor/388980-1.html
2012-05-03 10:09:44 +03:00
Jared Wein
1504e6e3d5 Bug 702463 - Increasing the timeout of the tests due to the presence of multiple refresh drivers. r=ehsan 2012-04-30 13:44:55 -04:00
Aryeh Gregor
4836ea0495 Bug 480647 part 6 - Handle CSS in execCommand("fontSize"); r=ehsan 2012-04-24 13:57:49 +03:00
Aryeh Gregor
20a2a54fec Bug 480647 part 5 - Reject invalid values from execCommand("fontSize"); r=ehsan 2012-04-24 13:57:46 +03:00
Ehsan Akhgari
3f561f1dad Merge mozilla-central into birch 2012-04-20 13:50:08 -04:00
Aryeh Gregor
0650854ffc Bug 746515 part 5 - Only add style="" to empty <span>s; r=ehsan 2012-04-20 09:33:21 +03:00
Aryeh Gregor
c88905cdb1 Bug 746515 part 4 - Remove styles more aggressively in execCommand(); r=ehsan 2012-04-20 09:33:21 +03:00
Ehsan Akhgari
b0555ad014 Merge mozilla-central into birch 2012-04-19 10:03:36 -04:00
Aryeh Gregor
65ad808232 Bug 745723 - Only store known fails in currentStatus.js for richtext2, like for richtext; r=ehsan 2012-04-18 17:26:03 +03:00
Aryeh Gregor
b14caf2251 Bug 317093 part 4 - Use computed style for command state even if styleWithCSS is false; r=ehsan 2012-04-18 17:26:02 +03:00
Aryeh Gregor
4f420966ed Bug 745701 part 2 - Strip existing styles more aggressively in execCommand(); r=ehsan 2012-04-17 20:50:19 +03:00
Aryeh Gregor
12ce571ca9 Bug 745528 - execCommand() should apply style="" to only inline elements, not blocks; r=ehsan 2012-04-17 20:50:19 +03:00
Aryeh Gregor
6469be6f64 Bug 205485 - execCommand("backcolor") should work the same as execCommand("hilitecolor"); r=ehsan 2012-04-17 18:37:40 +03:00
Graeme McCutcheon
d7d8932ab4 Bug 686203 - nsHTMLEditorEventListener's MouseDown listener should disregard events outwith its editor. Also fixes bug 578771. r=ehsan a=blassey 2012-04-13 13:52:12 +01:00
Aryeh Gregor
bf8e85b2d4 Bug 738385 part 2 - queryCommand*() should not throw for commands that don't support them; r=ehsan 2012-04-06 10:42:54 +03:00
Aryeh Gregor
1cd223ec12 Bug 279330 part 2 - execCommand("hilitecolor") should work even in non-CSS mode; r=ehsan 2012-04-17 13:18:08 +03:00
Graeme McCutcheon
50f21a7314 Bug 578771 testcase. r=ehsan a=test 2012-04-19 15:50:53 +01:00
Aryeh Gregor
920d308617 Bug 317093 part 2 - execCommand() should remove <strong>, <em>, and <s> as well as <b>, <i>, <strike>; r=ehsan 2012-04-04 14:47:13 +03:00
Aryeh Gregor
d9615bb1fb Bug 317093 part 1 - Avoid spurious UNEXPECTED-FAILs in test_richtext2 when fixing expected fails; r=ehsan 2012-04-04 14:46:04 +03:00
Aryeh Gregor
1aa75aa3d9 Bug 316447 - execCommand("insertHorizontalRule") should not set height/width; r=ehsan 2012-04-04 13:47:36 +03:00
Ehsan Akhgari
124634b2dc Bug 741734 - Fire the paste event when pasting without formatting; r=roc 2012-04-03 13:41:04 -04:00
Ehsan Akhgari
f7a38030b2 Backed out changeset afff429aaf9a because of bad commit message 2012-04-03 17:47:34 -04:00
Ehsan Akhgari
90d053cb5e commit cf0f05533cc23ba918e81ac3669449813799fe9f
Author: Ehsan Akhgari <ehsan.akhgari@gmail.com>
    Bug 741734 - Fire the paste event when pasting without formatting; r=roc
2012-04-03 13:41:04 -04:00
Aryeh Gregor
2c1ee92a02 Bug 738366 - Default styleWithCSS to false; r=ehsan 2012-04-03 17:16:05 +03:00
Masayuki Nakano
ada065ae94 Bug 739557 Set focus to editing host and use document.getSelection().collapse() for setting caret to edit target; r=ehsan 2012-03-29 09:10:22 -07:00
Masayuki Nakano
2ab8e3fb4a Bug 668606 input event should be fired on all editors r=ehsan+smaug, sr=smaug 2012-03-27 10:36:44 +09:00
Aryeh Gregor
0d0dc77101 Bug 735805 - Part 2: Fix editor mochitest that runs no tests. r=ehsan 2012-03-16 16:07:16 -04:00
Aryeh Gregor
aeeb5ee819 Bug 735059 - Second and third execCommand() parameters should be optional; r=ehsan 2012-03-12 18:12:19 -04:00
Serge Gautherie
06584f5688 Bug 732792. (Av1) test_bug674770-2.html: Set "middlemouse.contentLoadURL" preference too. r=ehsan. 2012-03-06 18:14:44 +01:00
Ehsan Akhgari
a802e7dffa Bug 725069 - Never mark the comment nodes as editable; r=roc 2012-02-07 18:39:05 -05:00
Jared Wein
3a800a6051 Bug 198964 - Enable smooth scrolling by default. r=gavin 2012-01-13 16:26:34 -08:00
Masayuki Nakano
fd8c7e75e6 Bug 711903 part.2 Fix new test failure r=ehsan 2011-12-31 23:04:37 +09:00
Neil Rashbrook
02c6a3f7d4 Bug 692153 Make Copy and Select All always work even when contenteditable areas are present r=ehsan 2011-12-30 17:42:04 +00:00
Neil Rashbrook
5d0063889c Bug 669026 Fix caret movement when contenteditable areas are present r=ehsan 2011-12-24 00:11:30 +00:00
Masayuki Nakano
e925b75494 Bug 698949 Editor should refuse untrusted keypress event r=smaug 2011-12-21 21:11:36 +09:00
Masayuki Nakano
d82ad83346 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
2cd6ae449b 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
5aaeb19ce0 backout 34b8fe028357 2011-12-08 16:42:45 +09:00
Masayuki Nakano
0cf8dbff4b 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
Masayuki Nakano
145d565bb0 Bug 392159 Use nsIClipboard::SupportsSelectionClipboard() instead of #ifdef in nsEditorEventListener r=ehsan 2011-11-30 11:57:41 +09:00
Masayuki Nakano
c51f522330 Bug 697842 stopPropagation() shouldn't break IME composition r=ehsan 2011-11-27 09:36:36 +09:00
Masayuki Nakano
e5b55da467 Bug 674770 part.4 Add new tests for pasting by middle click r=ehsan 2011-11-26 13:51:49 +09:00
Ehsan Akhgari
8e6c11ce28 Bug 674770 part.3 Add tests for middle-clicking on anchor element when the page has contenteditable element r=roc 2011-11-26 13:51:49 +09:00
Oonishi Atsushi
ebc58fb880 Bug 311007 - Add aFlags arg to onLocationChange(...), to distinguish between same-document and different-document. r=smaug, sr=bzbarsky 2011-11-10 15:01:11 +01:00
Ed Morley
6a998be2c5 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
364e83c545 Bug 616542 - Shorten file path length of mochitest; r=ted 2011-11-04 21:13:42 +00:00
Jonas Sicking
0588c874fd Bug 687400: Kill Node.isSameNode. r=smaug 2011-10-28 19:52:27 -07:00
Ehsan Akhgari
74d9b6f1fb Backout changeset be42bc18185a (bug 612128) because of bug 688423 2011-10-25 22:32:55 -04:00
Ehsan Akhgari
8cfbed187e Bug 612128 - Prevent the editor from modifying nodes which are not under an editing host; r=roc,bzbarsky
This patch ensures that the NODE_IS_EDITABLE flag is only set on nodes living
under an editing host.  Things like text controls which used to have that flag
previously will not have it any more.  The flag would be set on their anonymous
div node instead.  Note that if text controls actually fall under an editing
host, they will get the NODE_IS_EDITABLE flag.

This patch also makes nsHTMLEditor::IsEditable return sane results (text nodes
are always considered to be editable).

--HG--
extra : rebase_source : 37317b4d95c2ea957be81420583a98a24f0864ac
2010-11-16 15:45:49 -05:00