Commit Graph

754 Commits

Author SHA1 Message Date
Ehsan Akhgari
5600f01996 Bug 1109968 - Make all links in editable regions unfocusable; r=roc
The content inside an editable region is either editable itself, or
is inside a contenteditable="false" subtree.  In the first case,
it should not be focusable since it is editable.  In the second
case, it should not be focusable since the entire non-editable
region is treated as a special single entity for the purposes of
selection and caret movement, and having something focusable in
the middle of such a subtree breaks that model.
2015-01-23 08:49:28 -05:00
Carsten "Tomcat" Book
b85d910517 Backed out changeset 2b79bd646942 (bug 1109968) for b2g ics m9 test failures 2015-01-23 11:33:31 +01:00
Ehsan Akhgari
4b7d675119 Bug 1109968 - Make all links in editable regions unfocusable; r=roc
The content inside an editable region is either editable itself, or
is inside a contenteditable="false" subtree.  In the first case,
it should not be focusable since it is editable.  In the second
case, it should not be focusable since the entire non-editable
region is treated as a special single entity for the purposes of
selection and caret movement, and having something focusable in
the middle of such a subtree breaks that model.
2015-01-23 00:55:12 -05:00
Carsten "Tomcat" Book
a6cfd84dc6 Backed out changeset d1847f46d293 (bug 1107336) 2015-01-21 16:12:28 +01:00
Carsten "Tomcat" Book
b038666e4a Backed out changeset 5a2e085824ae (bug 1107336) 2015-01-21 16:10:57 +01:00
David Burns
19f70f4fb9 Bug 1107336: selection tests imports for marionette; r=jgriffin
--HG--
extra : rebase_source : 807b6f129b932445da3355b11bd3c7ff569c852e
2015-01-09 21:42:06 +00:00
David Burns
988973a3d8 Bug 1107336: Update layout tests that use marionette to use new Marionette Driver module; r=jgriffin
--HG--
extra : rebase_source : 645d09af73a9072a8c39a4f85cf741fb945a52d1
2014-12-09 20:21:32 +00:00
Jeremy Chen
31bef005d4 Bug 1110917 - Part 1 - Add test cases for selectioncaret changes. r=dburns 2014-12-31 14:40:39 +08:00
Ehsan Akhgari
e5d0719afd Bug 1121499 - Make the textarea in the test case for bug 664087 three rows tall so that we don't get a scrollbar on OSX 10.10; r=roc 2015-01-15 08:04:02 -05:00
Gregor Wagner
f22a627b9b Backout bug 1110917 for Gij red. 2015-01-14 11:25:15 -08:00
Jeremy Chen
e7e24fd4d5 Bug 1110917 - Add test cases for selectioncaret changes. r=automatedtester 2014-12-31 14:40:39 +08:00
L. David Baron
ffe839138c Bug 1110277 patch 3 - Look for the GenConPseudos() property on the first continuation/ib-split so that we can find it when looking for the ::after frame. r=bzbarsky
The change to GetAfterFrameForContent prevents the reframe that is part
of the chain of events leading to this bug, and thus fixes the bug on
its own.  The change to GetBeforeFrameForContent seems desirable for
symmetry.

Note that patch 6 also independently fixes the reported bug.

This probably needs somewhat careful review.  We should examine:

 (1) what the rules for calling nsLayoutUtils::GetBeforeFrame and
     nsLayoutUtils::GetAfterFrame are, and whether both (or neither)
     need to be patched.

 (2) What the rules are for which frame the GenConProperty() lives on,
     and whether we should adjust nsIFrame::GetGenConPseudos() to either
     do something more intelligent, or assert about callers.

(We should probably clean up some of these things in a followup bug.)

Since the symptom of this bug is (once patch 4 is in the tree) only
causing extra reframes, it can only be tested using the new API (from
bug 1115691) for observing reframes.  I confirmed that the test for this
bug fails without the patch and passes with the patch (as noted by the
removal of its todo annotation).

This patch fixes the assertion on layout/generic/crashtests/600100.xhtml,
though I haven't investigated why.
2015-01-11 15:43:11 -08:00
L. David Baron
590d7a434b Bug 1110277 patch 1 - Consider the ib-split chain when checking for ::before and ::after in order to reframe when they're missing. r=bzbarsky
This patch is not needed to fix the bug, but it seems like it's probably
desirable.  It's not needed for this bug because
MaybeReframeForBeforePseudo and MaybeReframeForAfterPseudo are already
called (by ElementRestyler::RestyleChildren) on only the first and last
continuation or ib-split sibling with the same style.  So this patch
should only actually change anything for cases like a block-in-inline
split whose initial inline part is inside of a ::first-line (where
different parts of the block-in-inline split chain have different style).

Since the symptom of this bug is (once patch 6 is in the tree) only
causing extra reframes, it can only be tested using the new API (from
bug 1115691) for observing reframes.  I confirmed that the test for this
bug fails without the patch and passes with the patch (as noted by the
removal of its todo annotation).
2015-01-11 15:43:10 -08:00
L. David Baron
5f231b4278 Bug 1110277 patch 0 - Add mochitest for patch 1 and patch 3. r=heycam
Patch 1 and patch 3 will change the todo status of the first and second
tests, respectively, since they are what fix the tests.
2015-01-11 15:43:10 -08:00
Ryan VanderMeulen
9a378a0290 Merge inbound to m-c. a=merge 2015-01-09 14:45:50 -05:00
Carsten "Tomcat" Book
3fcd5e68f5 Merge mozilla-central to b2g-inbound 2015-01-09 15:54:18 +01:00
Fernando Jimenez Moreno
c4551483eb Bug 1101029 - Overlay iframe on top of front-most app. r=roc, sicking 2015-01-09 09:55:18 +01:00
Makoto Kato
0d551ec8d9 Bug 966157 - Part 3. Ignore assertion of test_bug558663.html for Linux e10s. r=masayuki 2015-01-09 16:40:25 +09:00
Joel Maher
6ad8bb118c Bug 1114710 - test_leaf_layers_partition_browser_window.xul fails when run as a standalone directory. r=tn 2014-12-31 12:02:00 +01:00
Ryan VanderMeulen
bcd9e64d4d Bug 1112988 - Skip layout/base on Mulet due to its inability to run the tests without blowing up in some way or another. 2014-12-17 22:39:14 -05:00
Ryan VanderMeulen
1ec6eba3c1 Bug 1087611 - Disable test_bug968148.html on Mulet. 2014-12-17 20:39:08 -05:00
abdelrhman
3990efb3f1 Bug 1111276 - Replace gBrowser.selectedTab.linkedBrowser with gBrowser.selectedBrowser. r=dao
--HG--
extra : rebase_source : d7ef16a16f884458d99dff05efb370694d2ea5e3
2014-12-15 22:05:46 +01:00
Wes Kocher
e4ad7391ee Merge b2g-inbound to m-c a=merge 2014-12-12 16:43:37 -08:00
Ehsan Akhgari
09a262787c Bug 649012 - Fail mochitest-plains which use flaky timeouts (setTimeout(x) for x > 0); r=ted
We are white-listing the existing set of tests that use setTimeout
like this.  Hopefully these tests will be investigated and fixed
in the future, so that we can narrow down the white-list.

This check is only turned on for mochitest-plain for now.
2014-12-11 13:34:40 -05:00
Morris Tseng
7bb01f8155 Bug 1092888 - Part 5: Add a parameter to toggle context menu when calling long_press. r=mdas 2014-11-16 18:52:00 -05:00
Morris Tseng
15225b418a Bug 1092888 - Part 4: Flip testing function for non-editablt test at test_selectioncarets.py. r=roc 2014-11-10 19:47:00 -05:00
Simon Montagu
abb9d80805 Bug 1067796: make SelectionLanguageChange cache the language direction on mFrameSelection and return early if the language hasn't changed, r=roc 2015-01-09 11:39:38 +02:00
David Anderson
a3439cd445 Don't treat event regions as opaque for plugin geometry. (bug 1109424, r=roc) 2014-12-11 00:37:02 -08:00
Ryan VanderMeulen
9dc33bae19 Backed out 5 changesets (bug 1092888) because something in the push made Gij(2) permafail.
Backed out changeset 0ad25135a27f (bug 1092888)
Backed out changeset 7cd8260bfc16 (bug 1092888)
Backed out changeset 86385291d8c8 (bug 1092888)
Backed out changeset be16d194d5df (bug 1092888)
Backed out changeset daee46827258 (bug 1092888)
2014-12-09 12:08:59 -05:00
Morris Tseng
c563ff4503 Bug 1092888 - Part 5: Add a parameter to toggle context menu when calling long_press. r=mdas 2014-11-16 18:52:00 +01:00
Morris Tseng
31980c98d6 Bug 1092888 - Part 4: Flip testing function for non-editablt test at test_selectioncarets.py. r=roc 2014-11-10 19:47:00 +01:00
Morris Tseng
c1af02f12b Backed out 5 changesets (bug 1092888) for breaking QA smoketest on b2g.
Backout changeset 8c513f282a9e (bug 1092888)
Backout changeset db37104f6fbd (bug 1092888)
Backout changeset b1a0a7ea1a32 (bug 1092888)
Backout changeset c53a6181a4b2 (bug 1092888)
Backout changeset 54e551c1f2cd (bug 1092888)
2014-11-26 10:11:38 +08:00
Masayuki Nakano
c56c9a574f Bug 1077345 part.5 Use synthesizeComposition({"compositioncommitasis") in the tests r=smaug 2014-11-25 14:02:31 +09:00
Lebedev Maksim
74e49d7ff3 Bug 1098139 - Add attribute isPrimary detection for got/lostpointercapture events. r=smaug 2014-11-18 01:13:00 +01:00
Morris Tseng
23a9b24a2e Bug 1092888 - Part 5: Add a parameter to toggle context menu when calling long_press. r=mdas 2014-11-16 18:52:00 +01:00
Morris Tseng
00b6c7e47f Bug 1092888 - Part 4: Flip testing function for non-editablt test at test_selectioncarets.py. r=roc 2014-11-10 19:47:00 +01:00
Maksim Lebedev
a2f293b9fc Bug 1094913 - Test for detecting attribute 'pointerType' in got/lostpointercapture events. r=smaug 2014-11-10 06:22:00 +01:00
Xidorn Quan
9a699374b5 Bug 1063857 - Fix reftests for new justification algorithm.
--HG--
rename : layout/reftests/bugs/503399-ref.html => layout/base/tests/bug503399-ref.html
rename : layout/reftests/bugs/503399.html => layout/base/tests/bug503399.html
2014-11-10 12:24:51 +11:00
Kartikaya Gupta
ed7afa138f Bug 1093686 - Add a test to ensure event listeners on the body don't affect event retargeting. r=roc 2014-11-06 08:05:51 -05:00
Carsten "Tomcat" Book
c4cb4d7865 Backed out changeset f1989cb41965 (bug 1093686) for B2G Desktop Linux opt m1 test failures 2014-11-06 16:42:36 +01:00
Kartikaya Gupta
a1f6f203be Bug 1093686 - Add a test to ensure event listeners on the body don't affect event retargeting. r=roc 2014-11-06 08:05:51 -05:00
Ting-Yu Lin
a280daa9fd Bug 1029943 - Part 2 - Fix test fails on 824080-3/5/7.html, bug558663.html. r=ehsan 2014-10-31 09:14:00 +01:00
Lebedev Maksim
2a70319715 Bug 1073563 - Test for async lostpointercapture event. r=smaug 2014-10-08 01:35:00 +02:00
Ting-Yu Lin
8df0e30d32 Bug 1059165 - Part 5 - Fix existing test failures. r=ehsan
These tests all involving focusing on an empty element. Touch caret will
not show under the new touch caret UI spec. Therefore, I fix them by
disabling touch caret when running those tests.
2014-10-28 06:04:00 +01:00
Ting-Yu Lin
d19388f7ab Bug 1059165 - Part 4 - Add test_touchcaret_visibility.html. r=ehsan 2014-10-28 06:02:00 +01:00
Morris Tseng
df35a1547c Bug 1074736 - Marionette test for selection carets with multiple range support. r=mdas 2014-10-28 02:02:00 +01:00
Ryan VanderMeulen
25dcb92582 Backed out changesets 94c5f5317e4b, f43962d6b41e, and 6e0a13090cd8 (bug 1074736) for various carat-related Marionette failures.
--HG--
extra : rebase_source : e26c24158df6cc8198ca57f505028a1f82aa7264
2014-10-27 15:39:44 -04:00
Morris Tseng
2aed432649 Bug 1074736 - Marionette test for selection carets with multiple range support. r=mdas 2014-10-26 20:47:00 +01:00
Carsten "Tomcat" Book
fadec3e0cb Backed out changeset 5b1f330c9298 (bug 1074736) 2014-10-24 14:45:38 +02:00
Morris Tseng
1c2f74dde5 Bug 1074736 - Marionette test for selection carets with multiple range support. r=mdas 2014-10-23 23:30:00 +02:00