Commit Graph
151 Commits
Author SHA1 Message Date
Wes Kocher 7b33f3ddcd Backed out changeset 29a6664e8f73 (bug 1319342) for wpt failures in Node-cloneNode.html a=backout
MozReview-Commit-ID: 2FoC3zDqXO2
2017-10-02 14:27:09 -07:00
John Dai 1d3112e098 Bug 1319342 - Clone a node should enqueue an upgrade reaction. r=smaug 2017-10-01 23:12:00 -04:00
Andrea Marchesini 7cddbe2280 Bug 1402317 - Remove dom.abortController.enabled and dom.abortController.fetch.enabled prefs, r=qdot 2017-09-27 03:50:46 +02:00
Sebastian Hengst 6aa0e2e5d6 Backed out changeset ff9c67df213a (bug 1319342) for failing wpt /dom/nodes/Node-cloneNode.html. r=backout 2017-09-26 22:30:07 +02:00
John Dai 2d970513a5 Bug 1319342 - Clone a node should enqueue an upgrade reaction. r=smaug 2017-09-26 06:00:00 -04:00
Andreas Farre 46e1833abb Bug 1397215 - Update wpt metadata, a=testonly
MozReview-Commit-ID: 14chwCQkvs0
2017-09-07 12:50:50 +01:00
Andrea Marchesini fbbc6b29ab Bug 1395005 - Enable Abort API for WPTs. r=qdot 2017-08-29 23:16:00 -04:00
Andrea Marchesini 1982e8b9b0 Bug 1378342 - AbortSignal/AbortController - part 5 - Some WPTs pass, r=bkelly 2017-08-29 11:31:06 +02:00
Sebastian Hengst 01aa90b3cc Backed out changeset 6cbeeec89846 (bug 1378342) 2017-08-29 09:17:04 +02:00
Andrea Marchesini 0fe8e82961 Bug 1378342 - AbortSignal/AbortController - part 5 - Some WPTs pass, r=bkelly 2017-08-29 07:30:20 +02:00
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
Aryeh Gregor aa778c0f48 Bug 1387828 - Reinstate support for initKeyboardEvent; r=smaug
https://github.com/w3c/uievents/issues/112

This is supported by all other UAs.  In the past we had compatibility
problems when trying to add support, but it seems these might be fixed
if we make all arguments optional beyond the first.

The interface chosen for the method is from the spec, which has been
updated to match Chrome.  This is also very similar to WebKit, but the
final four arguments are different from IE.

MozReview-Commit-ID: 36AeX1JwJTt
2017-08-06 16:52:39 +03:00
Aryeh Gregor 1258553ff9 Bug 1388775 - extractContents should copy nodes in tree order, not backwards; r=smaug
Per spec, Range.prototype.extractNodes() should copy the nodes in tree
order:

https://dom.spec.whatwg.org/#dom-range-extractcontents

Gecko instead copies them in reverse order.  This causes us to fail a
wpt MutationObserver test.

MozReview-Commit-ID: 8MYXGhDsJCd
2017-08-09 18:40:21 +03:00
Aryeh Gregor 01a3e64b81 Bug 1388746 - Do not split start/end text nodes in deleteContents/extractContents; r=smaug
If a range endpoint is in the middle of a text node, and you call
deleteContents() or extractContents(), the spec says to delete the data
from the node.  In the case of extractContents(), the new text node
that's inserted into the DocumentFragment is a clone with its data set
to the bit that was deleted.
<https://dom.spec.whatwg.org/#dom-range-deletecontents>
<https://dom.spec.whatwg.org/#dom-range-extractcontents>

We don't do this.  Instead, we split the text node.  Then the bit to
delete is deleted naturally at a later stage together with all the other
nodes.

The result is the same, but on the way there we do a bunch more node
mutations.  This causes extra mutation records, which cause us to fail a
WPT test.  Chrome passes.  Changing to match the spec actually reduces
our lines of code anyway.

MozReview-Commit-ID: FTTV5yNSj71
2017-08-09 17:39:06 +03:00
J. Ryan Stinnett e066dda46e Bug 1385027 - Update Stylo test annotations for Windows. r=manishearth
MozReview-Commit-ID: 7FPPAga0jgW
2017-08-01 16:32:48 -05:00
Aryeh Gregor 428fdb587b Bug 1388069 - Support createEvent("FocusEvent"); r=smaug
This is the one event we don't support in createEvent() that Blink
doesn't want to drop support for because they see nontrivial usage:

https://www.chromestatus.com/metrics/feature/timeline/popularity/1171

Supporting it shouldn't hurt us and might make us work better on
whatever the sites are that Blink is hitting.

MozReview-Commit-ID: FbfTd6AYnDg
2017-08-07 20:52:41 +03:00
Aryeh Gregor 94394a4544 Bug 1388119 - Drop support for createEvent("ErrorEvent"/"PopStateEvent"); r=smaug
They were just dropped from the spec:

https://github.com/whatwg/dom/issues/362
https://github.com/whatwg/dom/pull/489

ErrorEvent we never supported anyway until it was added recently to
match the spec.  PopStateEvent is not supported by WebKit, Blink is
planning to try dropping support, our telemetry shows usage is
basically zero, and we never supported any way to initialize it anyway.

The changes to Document-createEvent.html and Document-createEvent.js are
taken from upstream.  The other wpt changes are new in this commit.

MozReview-Commit-ID: A6GzhLwL08l
2017-08-07 21:19:59 +03:00
Phil Ringnalda b97dad4d61 Bug 1303802 - reenable rootNode test chunk now that we don't have a rootNode implementation so the rootNode test which failed when we had one now passes when we don't have one
MozReview-Commit-ID: 45C8gxzo8p3
2017-08-06 18:41:50 -07:00
James Graham 322dd86909 Bug 1386604 - Update wpt metadata, a=testonly
MozReview-Commit-ID: 7Tm0NrmzbnZ
2017-08-03 11:31:55 +01:00
Kyle Machulis ecd34ff2a2 Bug 1279218 - Remove Applet tag; r=bz
Removes applet tag interfaces, and changes HTML5 parser to output
HTMLUnknownElement when tag is found. Removes tag process from various
places in the browser.

MozReview-Commit-ID: 2zHhK2U2esX
2017-07-10 16:00:30 -07:00
J. Ryan Stinnett 9ae55b9023 Bug 1382322 - Stylo WPT annotations for all OSes. r=manishearth
MozReview-Commit-ID: GTTMyi3TdaA
2017-07-19 13:32:05 -05:00
James Graham 8e961a35b4 Bug 1370461 - Update expected data for stylo, r=manishearth
MozReview-Commit-ID: D7V0OIdF13p
2017-06-07 16:26:33 +01:00
Henri Sivonen 7af0452b6b Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor.
MozReview-Commit-ID: 15Y5GTX98bv
2017-06-13 13:23:23 +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 594c362b60 Bug 1251198 - Remove various obsolete events from document.createEvent r=smaug
Other browsers do not support any of these (IIRC), telemetry reports
essentially zero usage, and supporting them is contrary to the DOM spec.

Notes on specific events:

CommandEvent and SimpleGestureEvent: These are not supposed to be
web-exposed APIs, so I hid the interfaces from web content too
(necessary to avoid test_all_synthetic_events.html failures).

DataContainerEvent: This was a non-standard substitute for CustomEvent
that seemed to have only one user, so I removed it entirely and switched
the user (MozillaFileLogger.js) to CustomEvent.

ScrollAreaEvent: This is entirely non-standard, but we apparently expose
it deliberately to web content, so I didn't see any reason to remove it
from createEvent.

SimpleGestureEvent and XULCommandEvent: Can still be created from
createEvent(), but not by content.

TimeEvent: This is still in because it has no constructor, so there's no
other way to create it.  Ideally we'd update the SMIL spec to add a
constructor.  I did remove TimeEvents.

MozReview-Commit-ID: 7Yi2oCl9SM2
2017-04-20 15:45:37 +03:00
Aryeh Gregor 6218cacf33 Bug 869788 - Normalize DOMTokenList for whitespace/dupes; r=smaug
Some bits taken from a patch by Cameron McCormack.  This follows a
change to the DOM spec that has already been implemented by WebKit.

We do no checks for duplicates on initial attribute parsing, only when
the DOMTokenList is accessed.  We re-check for duplicates on every
DOMTokenList access, but optimized with a bloom filter, so it should be
fast.  It would be possible to add a flag to check if we've already
removed duplicates from the atom list, but it would require the
nsAttrValue to talk to the nsDOMTokenList somehow, and a spare bit would
be needed in nsAttrValue, and it would only help cases where
DOMTokenList is repeatedly accessed without the content attribute being
modified in between (e.g., .length) where the token list is extremely
long.

This patch assumes that no one other than nsDOMTokenList cares if
duplicates are removed from the nsAttrValue's atom array.  If anything
does, they will see inconsistent behavior depending on whether
nsDOMTokenList has removed duplicates yet.  Since we don't want to
check for duplicates on parse for performance reasons, the correct fix
is to update the code elsewhere to also remove duplicates.

MozReview-Commit-ID: 97KRVhPGwm8
2016-04-11 18:01:14 +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 02fa9057ca Bug 1354066 - Expand classList testing and port to wpt; r=mystor
Because it tests some Gecko-specific things as well, I'm making two
copies, as advised by bz and jgraham.  One is to be submitted upstream,
and a second one has local changes.  This means most of the test is run
twice.

This overwrites the preexisting Element-classlist.html test upstream.  I
think I took the useful bits out of it (particularly replace() testing),
but there are some things that it had that I didn't think were
necessary, including: things that belong in idlharness; .className
testing; testing .contains() and stringification and hasAttribute() and
such after add/remove/etc. (instead of just testing getAttribute()); CSS
class selector matching.

MozReview-Commit-ID: JxPK7OyVLXa
2017-04-18 21:25:14 +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
Joel Maher 6325845d13 Bug 1351409 - Intermittent /dom/events/EventListener-invoke-legacy.html. disable test. r=gbrown
MozReview-Commit-ID: J35Ac5mG0nY
2017-04-10 12:37:53 -04:00
Olli Pettay bbadc88c35 Bug 1345044 - Make init*Event() arguments optional except the first; r=stone
Test updates by Aryeh Gregor <[email protected]>, reviewed by smaug.

MozReview-Commit-ID: 8GJq3Kx44S
2017-04-04 20:28:36 +03:00
Aryeh Gregor 7e4aa34e9d Bug 1314388 - Remove SVGZoomEvent; r=longsonr,smaug
Some code in SVGSVGElement.cpp might be unnecessary now, but Robert said
to leave it for a followup.

MozReview-Commit-ID: 8PpRGeGrREJ
2017-04-04 15:36:22 +03:00
Xidorn Quan 0afa060bf4 Bug 1340504 - Enable EventListener-invoke-legacy. r=jgraham
MozReview-Commit-ID: NplnNx6rf8
2017-03-21 17:35:23 +11: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
Ms2ger 11f1be7263 Bug 1308969 - Disable EventListener-invoke-legacy.html 2017-02-20 11:54:48 +00: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
Iris Hsiao 3f24729af1 Backed out changeset 72bc1a760ddd (bug 1308969) for Win7 opt and pgo W(1) perma failures in idbdatabase_deleteObjectStore.htm. a=backout 2017-02-20 15:25:11 +08:00
Ms2ger 1256168663 Bug 1308969 - Disable EventListener-invoke-legacy.html 2017-02-17 13:28:01 +01: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
Olli Pettay c3f9307dbc Bug 1333901 , fix unexpected passes, r=me
CLOSED TREE
2017-01-26 13:52:50 +02:00
Carsten "Tomcat" Book 141d44760f Backed out changeset 0fb98449c43b (bug 1333901) need also backed out to due to inital patch-backout 2017-01-26 14:56:49 +01:00
Olli Pettay 9d3f634e32 Bug 1333901 , fix unexpected passes, r=me 2017-01-26 13:52:50 +02:00
James Graham cd25462c3c Bug 1331899 - Update web-platform-tests expected data to revision da8dc80ce9c2155e003f20816c0cb6f120c17db6, a=testonly
MozReview-Commit-ID: 2nHAXUTrhL4
2017-01-19 14:24:13 +00:00