Commit Graph
173 Commits
Author SHA1 Message Date
Jon Coppeard 26bf68f0a5 Bug 1395896 - Record module dependency before starting fetch so that error handling works correctly r=bkelly 2017-09-06 09:07:09 +01:00
Jon Coppeard 18e17ed334 Bug 1362098 - Add tests for module error reporting r=bkelly 2017-08-23 17:24:38 +01:00
Jon Coppeard 765072ace9 Bug 1358882 - Add a circular module import test r=smaug 2017-08-23 10:51:40 +01:00
Jon Coppeard 234a0f07a9 Bug 1388728 - Improve module loader mochitests and re-enable failing WPT tests r=bkelly 2017-08-22 10:43:27 +01:00
Masayuki Nakano cfeefbe6b1 Bug 1377752 - part1: Add automated test for checking scroll position and focused document when setting selection into a contenteditable element in an iframe element r=smaug
When an iframe doesn't have focus, moving selection into a contenteditable element in it shouldn't cause moving focus to the document, moving focus to the editable element nor scrolling to the editor but the editor should become active element.

When an iframe has focus, moving selection into a contenteditable element in it should cause moving focus to the editor and scroll it into the view.

MozReview-Commit-ID: 1ZDPj6UotLn
2017-07-05 22:21:43 +09:00
Masayuki Nakano c0a99daa97 Bug 1367460 Shouldn't make focused editing host blurred when moving selection with Selection API r=smaug
Chromium doesn't make focused editing host blurred when a Selection API method call moves selection to a non-editable node.  Let's follow same behavior for compatibility with both Chromium and Gecko 54.

MozReview-Commit-ID: HXmYX18HVA5
2017-05-30 18:07:22 +09:00
Luke Wagner 4059fd540f Bug 1366382 - Baldr: update webplatformtests with jsapi.js test changes on CLOSED TREE (r=red)
MozReview-Commit-ID: C2f2C7JvL1d
2017-05-24 11:24:34 -05:00
André Bargull e9bdc5be59 Bug 1317383 - Part 5: Update expected results for wpt typedarray and wasm tests. r=bbouvier 2017-05-02 14:21:04 -07:00
Sebastian Hengst e14ef6d63a Backed out changeset d40e448b1a33 and 195d6bc4e2ca (bug 1358882) for asserting and failing in wpt circular-module-import-with-syntax-error.html. r=backout 2017-05-02 21:18:02 +02:00
Jon Coppeard b8d51421c1 Bug 1358882 - Check for failed instantiation when starting to fetch module dependencies r=smaug 2017-05-02 18:01:51 +01:00
Olli Pettay 848e212645 Backout bug 1359780 because it causes bug 1360230, r=backout 2017-04-27 20:50:21 +03:00
Aryeh Gregor 21eeaf2a81 Bug 1359780 - Always remove duplicates/whitespace in DOMTokenList methods r=masayuki
Previously, replace() and toggle() would not always remove duplicates
and whitespace from the DOM attribute in the case where they were no-ops
(replacing a nonexistent token, force-toggling a token to its current
state).  Now they do.  This matches the behavior of add() and remove(),
and also replace() in one case (replacing an existing token with
itself).

This follows a spec change: https://github.com/whatwg/dom/pull/444

MozReview-Commit-ID: 7lDEQxOGxPV
2017-04-26 15:13:44 +03: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
Boris Zbarsky da71c6b619 Bug 1348119. Move the test for setRangeText setting the dirty value flag into upstream wpt. r=smaug
MozReview-Commit-ID: 6yF42plMkAE
2017-03-16 17:51:51 -04:00
Carsten "Tomcat" Book cefa818f0c Backed out changeset 7b89ee0ae420 (bug 1348119) for causing merge conflicts 2017-03-17 14:45:57 +01:00
Boris Zbarsky 9d4ec409df Bug 1348119. Move the test for setRangeText setting the dirty value flag into upstream wpt. r=smaug
MozReview-Commit-ID: 6yF42plMkAE
2017-03-16 17:51:51 -04:00
Masayuki Nakano 462139cd3e Bug 1318312 part.1 Add automated tests for checking focus move at using Selection API r=smaug
Adding automated tests as web platform tests (only for mozilla) for focus move at using Selection API.

Although, there is no standards of relation between Selection API and focus, we should move focus when Selection API moves selections into only an editing host or outside of focused editing host.

Chrome moves focus as this rules, therefore, user can modify contenteditable editor immediately after web app moves selection.

Edge does NOT move focus at using Selection API.  However, user can modify contenteditable editor similar to Chrome.  We can guess that Edge doesn't need to move focus in its design because perhaps, Edge decides if it's editable only with primary selected range.

We cannot take the Edge behavior due to our editor design.  So, we can take only Chrome's approach for improving the compatibility.

MozReview-Commit-ID: JuLiSMgqODm
2017-03-13 22:30:28 +09:00
Boris Zbarsky 8f6ad791d2 Bug 1345606. setRangeText should mark the text control as dirty. r=ehsan
MozReview-Commit-ID: 9le2PoelGei
2017-03-09 14:44:36 -05:00
Boris Zbarsky c0cd286808 Bug 1343037 part 19. Add some tests. r=ehsan
MozReview-Commit-ID: L7LNF2Bfwgk
2017-03-09 14:44:06 -05:00
Jon Coppeard 1e46db1862 Bug 1342810 - Check for instantiation failure when a previously-loaded module is requested r=smaug 2017-02-28 10:47:19 +00:00
Benjamin Bouvier a2d91dbdbb Bug 1342956: Fix promise_test in wasm-testharness.js; r=luke
MozReview-Commit-ID: IfPkWSw05pX
2017-02-27 17:35:18 +01:00
Jon Coppeard 2e319c145e Bug 1340865 - Handle non-parser-created module scripts r=smaug 2017-02-27 15:04:21 +00:00
Benjamin Bouvier 025b0baf8c Bug 1332691: Generate wasm Web Platform test cases; r=luke
MozReview-Commit-ID: AiR4cZkUock
2017-02-17 18:09:10 +01:00
Thomas Nguyen a964250d12 Bug 1264792 - Update web platform tests of fetch and serviceworker. r=bkelly
MozReview-Commit-ID: 4btKCi5ZvZ2
2016-11-14 15:15:37 +08:00
Jonathan Kingston cbe9f85c5f Bug 1173199 - Create preference to disable MathML. r=heycam, r=huseby, r=smaug
If the mathml.disabled preference is true, treat <math> and other MathML
elements as generic XML elements.

This patch disables the rendering code of MathML however preserves the
namespace so to reduce the breakage.

Original patch by: Kathy Brade <[email protected]>

MozReview-Commit-ID: A2f2Q2b4eqR
2016-06-28 15:24:48 +01:00
Ben Kelly f37dd1b600 Bug 1262624 Move service worker wpt tests out of mozilla dir so they will be upstreamed. r=jgraham 2016-04-07 12:14:38 -07:00
Ben Kelly a492a9e8d2 Bug 1256428 P8 Fix wpt unregister-then-register-new-script.https.html to new spec expectations matching blink's tests. r=jdm 2016-04-06 13:27:22 -07:00
Ben Kelly 2efd66251d Bug 1256428 P7 Fix wpt update.https.html to expect TypeError per current spec. r=jdm 2016-04-06 13:27:22 -07:00
Ehsan Akhgari 50368dc73a Bug 1259164 - Set ServiceWorkerMessageEvent.origin correctly when calling ServiceWorkerClient.postMessage(); r=bkelly 2016-03-28 15:14:40 -04:00
Thomas Nguyen 6380865c37 Bug 1186072 - Fix web-platform-tests service worker fetch. r=fkiefer
MozReview-Commit-ID: 6iQHkXaFfy3
2016-03-17 16:05:44 +08:00
Ehsan Akhgari c404dfb7d4 Bug 1120715 - Part 4: Add tests for Request.cache; r=bkelly 2016-03-11 14:40:45 -05:00
Ryan VanderMeulen 29a0483afa Backed out 8 changesets (bug 1120715) for Android dom/u2f/tests/test_no_token.html permafail.
Backed out changeset 043770204431 (bug 1120715)
Backed out changeset e10c375353f4 (bug 1120715)
Backed out changeset c2871dbeb7cc (bug 1120715)
Backed out changeset 79158f028ad3 (bug 1120715)
Backed out changeset c74866f52320 (bug 1120715)
Backed out changeset c731944ecc64 (bug 1120715)
Backed out changeset 44f346712a3a (bug 1120715)
Backed out changeset 60d6045125e2 (bug 1120715)

CLOSED TREE
2016-03-10 20:20:05 -05:00
Ehsan Akhgari f3f76bd6e6 Bug 1120715 - Part 4: Add tests for Request.cache; r=bkelly 2016-03-10 17:29:11 -05:00
Wes Kocher 59b783e560 Backed out 6 changesets (bug 1120715) for wpt bustage in request-cache.html
Backed out changeset 2ee4b18f6b3a (bug 1120715)
Backed out changeset f87a25ade31e (bug 1120715)
Backed out changeset 9391f22c08c2 (bug 1120715)
Backed out changeset c5bf9f7bb86e (bug 1120715)
Backed out changeset 7e003fb64d41 (bug 1120715)
Backed out changeset ef66b64e9f8a (bug 1120715)

MozReview-Commit-ID: AI47IhtGWea
2016-03-09 15:57:43 -08:00
Ehsan Akhgari fc8965058c Bug 1120715 - Part 4: Add tests for Request.cache; r=bkelly 2016-03-09 16:44:50 -05:00
Ben Kelly 9ea5e01065 Bug 1252055 P2 Update tests to verify ServiceWorker object equality. r=ehsan 2016-03-03 19:37:59 -05:00
Ehsan Akhgari 48717d6102 Bug 1251872 - Part 1: Implement Request.referrerPolicy; r=jdm 2016-03-03 16:43:55 -05:00
Christoph Kerschbaumer 86ccc02ba5 Bug 1195172 - Update web platform tests (r=ethan) 2016-03-01 13:06:40 -08:00
Ben Kelly 87bff87e35 Bug 1251229 P2 Add wpt test verifying FetchEvent.request.url does not include fragments. r=ehsan 2016-02-29 13:21:19 -05:00
Ehsan Akhgari a8ed43be87 Bug 1251792 - Add fetch-request-css-images.https.html to the web-platform-test manifest 2016-02-29 11:48:23 -05:00
dimi 48a1b4de79 Bug 1237992 - service worker activate should be executed after install onstatechange events are fired. r=bkelly 2016-02-25 09:03:28 +08:00
Ben Kelly 352d390d01 Bug 1206346 P2 Back out Date.now() comparison to Performance.now() measurements. r=jdm 2016-02-20 06:57:00 +01:00
Ben Kelly ac53a37575 Bug 1206346 Widen the fuzzy timer duration check in performance-timeline.https.html. r=jdm 2016-02-19 12:51:31 -08:00
Andrea Marchesini e26dd2b304 Bug 1246375 - Restore the previous spec version of FormData, r=smaug 2016-02-17 14:56:19 +00:00
Ben Kelly 4c7d970c19 Bug 1227344 Try to ensure script content is always different in update tests by using .clock(). r=jdm 2016-02-10 08:51:07 -08:00
Phil Ringnalda dcef73dd6f Back out edf118eb93d2 (bug 1227344) for multiple-update.https.html bustage 2016-02-09 21:22:54 -08:00
Ben Kelly 5ef24470fd Bug 1227344 Try to ensure script content is always different in update tests by using .clock(). r=jdm 2016-02-09 19:55:23 -08:00
Christoph Kerschbaumer 1897a29adb Bug 1195173 - Test asyncopen2 security checks for stylesheets (r=bz,ehsan) 2016-02-02 20:35:42 -08:00
Ehsan Akhgari 1562744602 Bug 1243942 - Bypass service workers for WebSocket handshake channels; r=bkelly
Without this patch, the presence of a service worker that doesn't
respond to the FetchEvent that we dispatch for the handshake request
causes an internal redirect, which is unacceptable to the handshake
channel, therefore all WebSocket channels break on such pages.

Moreover, the integration of Web Sockets and Service Workers is unclear
yet, so these channels should bypass service workers completely.
2016-01-29 09:31:24 -05:00
dimi 9cfaff30f3 Bug 1188822 - Make service-workers/service-worker/fetch-request-resources.https.html pass. r=bkelly 2016-01-25 14:18:29 +08:00