Commit Graph

162 Commits

Author SHA1 Message Date
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 <brade@pearlcrescent.com>

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
Andrea Marchesini
895f406ee3 Bug 1241171 - FormData should not force 'blob' as filename, r=smaug 2016-01-26 17:15:52 +00:00
Sebastian Hengst
ffb289c91a Backed out changeset 3a4b31e5c049 (bug 1241171) for W(5) orange on Linux x64 debug. r=bustage 2016-01-26 13:44:51 +01:00
Andrea Marchesini
9712692ddb Bug 1241171 - FormData should not force 'blob' as filename, r=smaug 2016-01-26 10:34:41 +00:00
Ehsan Akhgari
05efdf788a Bug 1209081 - Part 1: Implement the "navigate" value for RequestMode; r=bkelly 2016-01-19 17:46:10 -05:00
Ehsan Akhgari
98f3e8ff8d Bug 1238213 - Make FetchEvent.request non-nullable; r=baku 2016-01-11 13:21:23 -05:00
Ehsan Akhgari
697781ab02 Bug 1236933 - Return null from FetchEvent.clientId for non-subresource network requests; r=bkelly 2016-01-08 21:53:37 -05:00
Ehsan Akhgari
50246c3862 Bug 1142768 - Return the original document URI from ServiceWorkerClient.url; r=bkelly 2016-01-08 14:16:47 -05:00
Ehsan Akhgari
2f2ec6a22a Bug 1229369 - Intercept redirected network fetches that have their request mode set to manual; r=jdm
In the non-e10s case, this is done by simply avoiding to set the
LOAD_BYPASS_SERVICE_WORKER flag when we detect a non-internal redirect
in the manual redirect mode.

The e10s solution is a bit more complicated.  Only the child process
knows whether a URI needs to be intercepted, so we piggy back on the
code written to support the |event.respondWith(Response.redirect())|
case where we know in the child that the target of the redirect needs to
be intercepted.

This means that we need to check the same condition as in the non-e10s
case, but we also need to check whether the target of the redirection
needs to be intercepted, which means we need to properly take secure
upgrades into account as well.  This is done by computing both whether
we should intercept and whether we should do a secure upgrade in
HttpChannelChild::SetupRedirect() and saving the information on the
HttpChannelChild for later usage in HttpChannelChild::AsyncOpen().
2016-01-05 21:02:00 -05:00
Ehsan Akhgari
847493fd56 Bug 1226384 - Reject the promise returned from ServiceWorkerRegistration.update() if the registration is being uninstalled; r=bkelly 2016-01-04 14:50:57 -05:00
Ehsan Akhgari
c07e0121af Bug 1233245 - Propagate the interception information in the non-e10s case for all HTTP redirects, not just the internal ones; r=jdm
Doing this work in StartRedirectChannelToURI() was causing us to not set
the bypass service worker flag properly in the case of real HTTP redirects.
This patch also fixes the incorrect test expectation value.
2016-01-04 09:39:09 -05:00
Wes Kocher
0f82daf3b4 Backed out changeset 82cd6a486698 (bug 1233245) for fetch-request-redirect.https.html failures CLOSED TREE 2015-12-17 16:18:29 -08:00