Commit Graph
42 Commits
Author SHA1 Message Date
James Graham 7359792c2a Bug 1391582 - Update web-platform-tests metadata to revision b039c00a086291f97df9caa6b999e9d123c91b27
MozReview-Commit-ID: L5DIN7lQPOc
2017-08-18 17:26:54 +01:00
James Graham 9550dfb43b Bug 1381842 - Update wpt expectation data, a=testonly
MozReview-Commit-ID: HoMTzDKGSZt
2017-07-20 13:05:26 +01:00
Aryeh Gregor c71f7a4cf7 Bug 1357998 - Make editing tests independent of default defaultParagraphSeparator; r=masayuki
Now that this is a pref that is different in different versions, tests
have to work no matter what the pref's value is.  For tests that
actually tested line-breaking-related behavior, I made them test all
three separator values.  For tests that tested something else and only
incidentally depend on the default paragraph separator, I set
defaultParagraphSeparator to "div".

MozReview-Commit-ID: 8m7eoFRXpEy
2017-04-20 21:10:23 +03:00
James Graham b2358183ff Bug 1356225 - Update web-platform-tests expected data to revision d519fe9011da7cfce7949f7ed826e9759dc5c532, a=testonly
MozReview-Commit-ID: GUErRlQhUzx
2017-04-20 10:49:32 +01:00
Aryeh Gregor d72a07d357 Bug 1353695 - Sometimes Enter is ignored in editor; r=masayuki
When defaultParagraphSeparator is not "br", and we hit Enter on a line
that is not contained in any block element, we first create a new <div>
(or <p>) wrapper to hold the line's contents.  If creating this wrapper
fails for some reason, we go ahead and insert a <br> instead.

In some cases, we would get confused and think we didn't create the
block element when really we did.  We would insert a <br>, and
afterwards something would get rid of the empty block element.  In a
corner case where the line only consisted of a <br> to start with, this
would result in nothing happening, because the original <br> was removed
when creating the block element, and only one <br> was inserted to
replace it.

The correct fix is to just not get confused!

MozReview-Commit-ID: 1U8KHC71bfw
2017-04-05 20:40:13 +03:00
Sebastian Hengst 74ffdef056 Backed out changeset f98b750bb850 (bug 1356225)
MozReview-Commit-ID: 2HqnW54BB7M
2017-04-14 17:18:21 +02:00
James Graham 58aadf0c19 Bug 1356225 - Update web-platform-tests expected data to revision d519fe9011da7cfce7949f7ed826e9759dc5c532, a=testonly
MozReview-Commit-ID: GUErRlQhUzx
2017-04-13 16:22:32 +01:00
Wes Kocher fa76c3b853 Merge inbound to central, a=merge 2017-04-04 11:25:13 -07:00
Aryeh Gregor 16a231c959 Bug 1297414 - Change default paragraph separator to <div>; r=masayuki
This matches Blink/WebKit, and is more similar to Edge than before, but
may cause compat problems for Gecko-only code or code paths.  Sites can
revert to old behavior with:
document.execCommand("defaultparagraphseparator", false, "br").

This regresses test_bug430392.html on one test ("adding returns") and I
don't know why.  The test involves embedded non-editable content and we
already have a lot of todos in that file, so I think it's tolerable.

MozReview-Commit-ID: Dml0bXxgu87
2017-04-04 13:49:38 +03:00
Aryeh Gregor c371e9bbf5 Bug 1297414 - Support <div> separator in ReturnIn(Header|ListItem); r=masayuki
MozReview-Commit-ID: EkvFpyTmXDc
2017-04-04 13:49:38 +03:00
Aryeh Gregor 603c4658bf Bug 1297414 - Support <div>/<p> separators in WillInsertBreak; r=masayuki
*aHandled was previously always set to true in WillMakeBasicBlock, which
was probably a bug but is not addressed in this commit.

MozReview-Commit-ID: 41JSmptVc0l
2017-04-04 13:49:38 +03:00
Aryeh Gregor 7caac9f775 Bug 1297414 - Treat <div> like <p> for break insertion; r=masayuki
I don't personally agree with this behavior (although I did spec it some
years ago), but it's the behavior of all other UAs, so we should do it
anyway.

MozReview-Commit-ID: IiIg41kMJIU
2017-04-04 13:47:28 +03:00
Aryeh Gregor 34a92fa7d1 Bug 1297414 - Support execCommand("defaultParagraphSeparator"); r=masayuki
Later commits will add the actual functionality.

MozReview-Commit-ID: 6Ac9V6MjZpa
2017-04-04 13:47:28 +03:00
Aryeh Gregor 8e17f858d1 Bug 1352144 - document.execCommand("inserttext", false, "") should work r=masayuki
Behavior per spec and Chrome is to just delete the selection.  We
already do this for insertHTML.

MozReview-Commit-ID: AWZhH6lIwuO
2017-03-30 21:04:09 +03:00
James Graham d52f41ce62 Bug 1345490 - Update web-platform-tests expected data, a=testonly
MozReview-Commit-ID: 6v6aK4ubvO6
2017-03-17 14:35:41 +00:00
Sebastian Hengst 68c1d2b7e6 Backed out changeset bb409914119e (bug 1345490) 2017-03-15 19:22:43 +01:00
James Graham db668def5f Bug 1345490 - Update web-platform-tests expected data, a=testonly
MozReview-Commit-ID: 6v6aK4ubvO6
2017-03-15 15:20:53 +00:00
Makoto Kato db291a8c48 Bug 833889 - Part 2. Update test result of web platform tests. r=masayuki
Update web platfrom tests's result since some tests contain this situation.

MozReview-Commit-ID: vm33zObiOW
2017-02-22 14:52:25 +09:00
Xidorn Quan 57b3c7d52d Bug 1339394 - Don't serialize transparent color to transparent keyword when not necessary. r=heycam,jaws
MozReview-Commit-ID: 59cmaCoFJMR
2017-02-16 10:26:13 +11:00
Xidorn Quan 3946819e09 Backed out changeset 107fdc32d411 (bug 1339394) for potential failures on merge 2017-02-17 10:23:26 +11:00
Xidorn Quan 2be3b33338 Bug 1339394 - Don't serialize transparent color to transparent keyword when not necessary. r=heycam,jaws
MozReview-Commit-ID: 59cmaCoFJMR
2017-02-17 10:12:34 +11:00
Kirk Steuber 1f7cc81ceb Bug 1205642 - Reenable wpt deletion tests as they are no longer failing
MozReview-Commit-ID: 90u5tIQQIzA
2017-02-15 13:47:21 -08:00
Wes Kocher d19b991fe0 Backed out changeset 4ea36a9c2dfd (bug 1339394) for browser_selectpopup.js failures a=backout
MozReview-Commit-ID: JEy6J1AFgpj
2017-02-15 18:59:15 -08:00
Xidorn Quan e57bbd0ff0 Bug 1339394 - Don't serialize transparent color to transparent keyword when not necessary. r=heycam
MozReview-Commit-ID: 59cmaCoFJMR
2017-02-16 10:27:19 +11:00
Carsten "Tomcat" Book 70b64eef00 Backed out changeset 4a964c3f1759 (bug 1339394) for suspicion of causing failures on OS X browser_selectpopup.js tests 2017-02-15 14:43:57 +01:00
Xidorn Quan 77cbec3519 Bug 1339394 - Don't serialize transparent color to transparent keyword when not necessary. r=heycam
MozReview-Commit-ID: 59cmaCoFJMR
2017-02-15 20:47:26 +11:00
Masayuki Nakano 291ca1330e Bug 1272623 part.3 HTMLEditRules::ReapplyCachedStyles() shouldn't set style to TypeInState if it's currently applied r=smaug
The target node of HTMLEditRules::ReapplyCachedStyles() may be styled with its parent.  When HTMLEditRules::ReapplyCachedStyles() is called, it shouldn't restore another style cache if it's already specified in current DOM tree.

MozReview-Commit-ID: DKCpQ8YyW7
2017-01-06 22:35:48 +09:00
James Graham 0b10505566 Bug 1309931 - Update web-platform-tests expected data to revision 1d8e28e2c762b51c06670a373b23af6bd7a8aed7, a=testonly
MozReview-Commit-ID: L8aMsSMwuXI
2016-10-25 18:10:30 +01:00
Aryeh Gregor 289f7ddcac Bug 748308 - Support insertParagraph and insertLineBreak per spec/Blink/WebKit; r=masayuki
Previously we supported insertParagraph as a synonym for formatBlock
"p", which is both useless and incompatible with all other browsers.
Edge's behavior doesn't look useful and looks redundant with insertHTML
(although it matches the name nicely, probably because they invented
the command).  Blink/WebKit treat it the same as hitting Enter, which is
useful for cross-browser testing until we get synthesizeKey() in wpt.

At the same time, I added insertLineBreak, which Blink/WebKit support
with the same functionality as pressing Shift-Enter.

The new event.html failures are spurious -- we used to pass by mistake
because we didn't support insertlinebreak at all.  insertlinebreak.html
has only new passes, no new failures, although it's not clear on the
diff.

MozReview-Commit-ID: 16oPcxXwGcj
2016-08-23 14:13:17 +03:00
Aryeh Gregor e72920d035 Bug 1265800 part 3 - Move cursor into all adjacent nodes after delete; r=masayuki
When deleting, we previously would only move the cursor back into the
previous block if the last leaf node was a text node, for some reason.
We should move into the previous block in other cases as well, like if
the leaf node is a collapsed <br>.  (Probably it's not correct to move
backward into tables, but that already was happening if the table had
text at the end.  There may be other cases where this is wrong.)

MozReview-Commit-ID: 8e0dTU3lNYO
2016-08-22 14:27:17 +03:00
Aryeh Gregor 0100c719ba Bug 1265800 part 2 - Don't place cursor after invisible break; r=masayuki
If the user tries to insert text without moving the cursor, the
invisible break will become visible, which from the user's perspective
means an extra line break was inserted for no reason.

The IsVisBreak change here is a bit scary, because it may result in
unexpected behavior changes, but it seems to improve correctness.  If it
turns out to cause problems, it can be added as a special case to
GetGoodSelPointForNode instead.

MozReview-Commit-ID: 7SRQYHYtJvF
2016-08-22 14:27:08 +03:00
Sebastian Hengst d862598a02 Backed out changeset bba587e03e0b (bug 1265800) 2016-08-21 23:42:45 +02:00
Sebastian Hengst 17aeff770e Backed out changeset da1cdd000993 (bug 1265800) 2016-08-21 23:42:41 +02:00
Aryeh Gregor 49560110af Bug 1265800 part 3 - Move cursor into all adjacent nodes after delete; r=masayuki
When deleting, we previously would only move the cursor back into the
previous block if the last leaf node was a text node, for some reason.
We should move into the previous block in other cases as well, like if
the leaf node is a collapsed <br>.  (Probably it's not correct to move
backward into tables, but that already was happening if the table had
text at the end.  There may be other cases where this is wrong.)

MozReview-Commit-ID: 8e0dTU3lNYO
2016-08-21 18:13:49 +03:00
Aryeh Gregor 576e1e42df Bug 1265800 part 2 - Don't place cursor after invisible break; r=masayuki
If the user tries to insert text without moving the cursor, the
invisible break will become visible, which from the user's perspective
means an extra line break was inserted for no reason.

The IsVisBreak change here is a bit scary, because it may result in
unexpected behavior changes, but it seems to improve correctness.  If it
turns out to cause problems, it can be added as a special case to
GetGoodSelPointForNode instead.

MozReview-Commit-ID: 7SRQYHYtJvF
2016-08-21 18:13:49 +03:00
Ryan VanderMeulen aeba45b398 Bug 1205642 - Skip delete.html and forwarddelete.html on Linux e10s as they're still flaky there. 2016-04-07 21:58:55 -04:00
Ryan VanderMeulen b501b93476 Bug 1205642 - Re-enable the delete.html and forwarddelete.html web-platform-tests on e10s. 2016-04-07 09:08:22 -04:00
James Graham c75018136d Bug 1209297 - Update web-platform-tests expected data to revision 2869a58fd81da41f9f904441ff39f9398fba53bc, a=testonly 2015-09-28 23:03:12 +01:00
James Graham 4242740fb2 Bug 1197365 - Update metadata for web-platform-tests-e10s a=testonly 2015-09-18 10:04:43 +01:00
James Graham 7c3b5f1a36 Bug 1204461 - Update web-platform-tests expected data to revision 3f82dd41c8e3697bfe5fa5c57321c842b65ba2aa, a=testonly 2015-09-14 12:19:09 +01:00
James Graham 1b1fb7387f Bug 1199127 - Update web-platform-tests expected data to revision 4600b7dbae996754fe52f48bc9c225834f11a686, a=testonly 2015-08-27 09:41:22 +01:00
James Graham 7188ccafd8 Bug 1194131 - Update web-platform-tests expected data to revision b54dddfdcc4761d2f8a892fd783d60353949992d, a=testonly 2015-08-13 10:26:45 +01:00