Bobby Holley
943789da00
Bug 778420 - Fix up tests that don't like the new enablePrivilege. r=jmaher
...
--HG--
extra : rebase_source : 1158df4a4eb917074204e649efd8f2b8e699f115
2012-08-03 22:19:54 +02:00
William Chen
60fc0f1ee6
Bug 778420 - Initial stab at the tests. v2 r=bholley
...
--HG--
extra : rebase_source : c24abc031c82a87f2f669e4b708f8ee364a9682b
2012-08-06 22:15:49 +02:00
Mike Hommey
c1b35e7b2a
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 20:26:44 +02:00
Masayuki Nakano
e947c93f9f
Bug 751749 part.3 Editor should handle Win key as a modifier key r=ehsan
2012-07-19 10:28:17 +09:00
Jared Wein
c186c238d0
Bug 754169 - Fix intermittent orange related to imprecise scrolling positions in test. r=ehsan
2012-07-17 11:40:49 -04:00
Nathan Froyd
5b30baa4c3
Bug 370750 - consolidate mochitest files installation; r=glandium
...
With assistance on the patch from Ms2ger, Waldo, and Mossop.
2012-07-03 16:49:02 -04:00
Aryeh Gregor
18fa0731af
Bug 767684 Test to prevent regression from bug 752210 happening again r=ehsan
2012-07-05 21:35:10 +01:00
Ehsan Akhgari
a95b6edeea
Bug 722872 - Part 1: Add nsITransferable::Init(nsILoadContext*), enforce that it's called in debug builds, and add nsIDOMDocument* arguments to nsIClipboardHelper methods; r=roc
...
This patch does the following:
* It adds nsITransferable::Init(nsILoadContext*). The load context
might be null, which means that the transferable is non-private, but
if it's non-null, we extract the boolean value for the privacy mode
and store it in the transferable.
* It adds checks in debug builds to make sure that Init is always
called, in form of fatal assertions.
* It adds nsIDOMDocument* agruments to nsIClipboardHelper methods which
represent the document that the string is coming from.
nsIClipboardHelper implementation internally gets the nsILoadContext
from that and passes it on to the transferable upon creation. The
reason that I did this was that nsIClipboardHelper is supposed to be a
high-level helper, and in most of its call sites, we have easy access
to a document object.
* It modifies all of the call sites of the above interfaces according to
this change.
* It adds a GetLoadContext helper to nsIDocument to help with changing
the call sites.
2012-04-16 22:14:01 -04:00
Aryeh Gregor
746e74a592
Bug 760052 - execCommand() should abort and return false for disabled commands; r=ehsan
2012-06-21 15:05:24 +03:00
Aryeh Gregor
fee4e249e2
Bug 757371 part 4 - Do not insert style tags if the style is already applied; r=ehsan
2012-05-23 10:49:29 +03:00
Aryeh Gregor
626faeaf0f
Bug 748307 part 5 - Support insertText, forwardDelete, insertParagraph per spec; 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
Aryeh Gregor
1a3922499a
Bug 742240 - Handle unsupported commands per spec in execCommand/queryCommand*; r=ehsan
2012-04-15 15:57:20 +03: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
Ehsan Akhgari
2be6b796b2
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).
2010-11-16 15:45:49 -05:00
Aryeh Gregor
4f8b1fc26d
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
a6483f6245
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
0152ba6f95
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
51d3c28a67
Bug 480647 part 6 - Handle CSS in execCommand("fontSize"); r=ehsan
2012-04-24 13:57:49 +03:00
Aryeh Gregor
6a59021f84
Bug 480647 part 5 - Reject invalid values from execCommand("fontSize"); r=ehsan
2012-04-24 13:57:46 +03:00
Ehsan Akhgari
545bb7a0b1
Merge mozilla-central into birch
2012-04-20 13:50:08 -04:00
Aryeh Gregor
785ec48d50
Bug 746515 part 5 - Only add style="" to empty <span>s; r=ehsan
2012-04-20 09:33:21 +03:00
Aryeh Gregor
ab16a793f7
Bug 746515 part 4 - Remove styles more aggressively in execCommand(); r=ehsan
2012-04-20 09:33:21 +03:00
Ehsan Akhgari
731cf9d3bd
Merge mozilla-central into birch
2012-04-19 10:03:36 -04:00
Aryeh Gregor
9934ea9340
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
7bf2c8a9b0
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
abb362a74e
Bug 745701 part 2 - Strip existing styles more aggressively in execCommand(); r=ehsan
2012-04-17 20:50:19 +03:00
Aryeh Gregor
b2aeb24653
Bug 745528 - execCommand() should apply style="" to only inline elements, not blocks; r=ehsan
2012-04-17 20:50:19 +03:00
Aryeh Gregor
61eb102268
Bug 205485 - execCommand("backcolor") should work the same as execCommand("hilitecolor"); r=ehsan
2012-04-17 18:37:40 +03:00
Graeme McCutcheon
50f4305256
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
d12d659db6
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
2a90e237d9
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
d229de565c
Bug 578771 testcase. r=ehsan a=test
2012-04-19 15:50:53 +01:00
Aryeh Gregor
08528d82ca
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
cc283bd684
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
e5df18eba7
Bug 316447 - execCommand("insertHorizontalRule") should not set height/width; r=ehsan
2012-04-04 13:47:36 +03:00
Ehsan Akhgari
e932aaf835
Bug 741734 - Fire the paste event when pasting without formatting; r=roc
2012-04-03 13:41:04 -04:00
Ehsan Akhgari
9d01c7314b
Backed out changeset afff429aaf9a because of bad commit message
2012-04-03 17:47:34 -04:00
Ehsan Akhgari
694206936a
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
ca85f01f9d
Bug 738366 - Default styleWithCSS to false; r=ehsan
2012-04-03 17:16:05 +03:00
Masayuki Nakano
06d073ef14
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
acf546c04a
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
d2671d16ea
Bug 735805 - Part 2: Fix editor mochitest that runs no tests. r=ehsan
2012-03-16 16:07:16 -04:00
Aryeh Gregor
1e80f34bd3
Bug 735059 - Second and third execCommand() parameters should be optional; r=ehsan
2012-03-12 18:12:19 -04:00
Serge Gautherie
5632f3d616
Bug 732792. (Av1) test_bug674770-2.html: Set "middlemouse.contentLoadURL" preference too. r=ehsan.
2012-03-06 18:14:44 +01:00
Ehsan Akhgari
4b271d2d17
Bug 725069 - Never mark the comment nodes as editable; r=roc
2012-02-07 18:39:05 -05:00
Jared Wein
843a61d98d
Bug 198964 - Enable smooth scrolling by default. r=gavin
2012-01-13 16:26:34 -08:00
Masayuki Nakano
61971e52ff
Bug 711903 part.2 Fix new test failure r=ehsan
2011-12-31 23:04:37 +09:00
Neil Rashbrook
7c093f5b43
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
985ba4520e
Bug 669026 Fix caret movement when contenteditable areas are present r=ehsan
2011-12-24 00:11:30 +00:00