Commit Graph
23 Commits
Author SHA1 Message Date
Aryeh Gregor 9263a79204 Bug 718711 - Don't return selections for documents that don't have them; r=smaug
Per spec, getSelection() should return null when the document is not
associated with a browsing context.

MozReview-Commit-ID: B6QbLWVmfcF
2017-08-13 14:17:28 +03:00
Aryeh Gregor 947daa8d85 Bug 1359397 - Don't allow Selection in nodes not in the document; r=masayuki
This matches the spec and Chrome, and seems to bring us closer to Edge
and WebKit as well.  It also matches our own behavior for addRange(),
which was changed in bug 1341137.

For collapse and selectAllChildren, we match the tests and browsers, but
the spec is incorrect at the time of this writing:
https://github.com/w3c/selection-api/pull/86

The removeAllRanges test hadn't been updated for the spec change.

MozReview-Commit-ID: DTK8283k5IP
2017-08-10 15:02:08 +03:00
Aryeh Gregor dd3560d5d8 Bug 1359157 - Support Selection.type from spec; r=smaug
All other browsers already support it, more or less interoperably.

MozReview-Commit-ID: 4VoOeqBoKI0
2017-08-03 17:13:24 +03:00
James Graham 28c041d478 Bug 1363982 - Update web-platform-tests expected data to revision db6ed4bb451e44748cbb9af69d0a01c17a33571a, a=testonly
MozReview-Commit-ID: 64BfbLZKedo
2017-05-11 18:01:47 +01:00
Aryeh Gregor 1e9a824550 Bug 1359453 - Use standard exception for selection.removeRange() r=masayuki
The test change is already upstream:
https://github.com/w3c/web-platform-tests/pull/5686

The spec change has not officially been accepted yet as of this writing,
possibly delayed for IPR review:
https://github.com/w3c/selection-api/pull/87

MozReview-Commit-ID: 3auwvwP4X72
2017-04-26 15:50:36 +03:00
Aryeh Gregor 6e7be8cfcc Bug 1359387 - Support Selection.empty()/setPosition() r=masayuki,smaug
Blink, WebKit, and Edge already support these, and they're in the spec.
Tests submitted to wpt upstream.

MozReview-Commit-ID: 5NFBeClNN7y
2017-04-25 15:49:27 +03:00
Aryeh Gregor e129b8c3c7 Bug 1359371 - Update Selection.webidl to match spec r=smaug
Practical changes:

1) Some additional method arguments are nullable or optional, which
matches Chrome/WebKit.  They make more sense non-nullable and
non-optional, but Chrome is afraid of the compat impact of changing.

2) Added [CEReactions] to deleteFromDocument().

MozReview-Commit-ID: Kg9EDubnEui
2017-04-25 14:55:31 +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
Mats Palmgren a6080752fd Bug 1341137 part 4 - Update web-platform-tests expected data. 2017-02-25 11:33:34 +01:00
James Graham 1f6b7da068 Bug 1340474 - Update web-platform-tests expected data to revision eba2c70d536caaeef540966bc8ac7822417ab867, a=testonly
MozReview-Commit-ID: F1kB3H4bj01
2017-02-20 11:54:14 +00:00
Iris Hsiao 07531c930d Backed out changeset 5ae7735c28ae (bug 1340474) 2017-02-20 15:25:46 +08:00
James Graham c33afaa41c Bug 1340474 - Update web-platform-tests expected data to revision eba2c70d536caaeef540966bc8ac7822417ab867, a=testonly
MozReview-Commit-ID: F1kB3H4bj01
2017-02-16 11:18:04 +00:00
Carsten "Tomcat" Book f8bff237f8 Backed out changeset 043404978da9 (bug 1340474) 2017-02-17 13:19:40 +01:00
James Graham a5fa0ff35b Bug 1340474 - Update web-platform-tests expected data to revision eba2c70d536caaeef540966bc8ac7822417ab867, a=testonly
MozReview-Commit-ID: F1kB3H4bj01
2017-02-17 10:05:15 +00:00
James Graham 4a1eb94bcf Bug 1335397 - Update wpt metadata to d93247d5cb7d70f80da8b154a171f4e3d50969f4, a=testonly
MozReview-Commit-ID: FIOVYIlW5rP
2017-02-04 09:39:12 +00:00
Ting-Yu Lin 4a64ebfe24 Bug 1205671 - Request long timeout for selection/extend.html. r=jgraham
MozReview-Commit-ID: 35WbbRaRQca
2016-03-21 21:44:41 +08: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 7a3048bec8 Bug 1203906 - Disable some unstable wpt tests when running with e10s enabled, 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 1042a0dbcb Bug 1194251 - Fixup metadata after increasing test timeout, a=testonly 2015-08-13 16:58:14 +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