Commit graph

8563 commits

Author SHA1 Message Date
huangjiahua
c253ad8399 Handle cancelAnimationFrame() when called within a requestAnimationFrame() callback 2020-05-13 15:41:09 +08:00
bors-servo
d96accc27f
Auto merge of #26495 - servo:jdm-patch-41, r=SimonSapin
Fix reftest report regression.

Fixes #26467.
2020-05-12 18:30:27 -04:00
bors-servo
ea4ae04655
Auto merge of #26335 - jdm:wrup, r=SimonSapin
Update webrender.
2020-05-12 14:56:19 -04:00
bors-servo
e26e864c61
Auto merge of #26487 - pylbrecht:update.raqote, r=jdm
Fix radial gradients for html canvas element

<!-- Please describe your changes on the following line: -->
The latest version of raqote provides a fix for properly handling boundary conditions for TwoCircleRadialGradients.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix part of #25331

<!-- Either: -->
- [x] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2020-05-12 13:57:10 -04:00
Josh Matthews
ea6523ef62
Fix reference report regression. 2020-05-12 11:40:51 -04:00
Josh Matthews
bba2e43f97 Update 2020 results for outline-width animation. 2020-05-12 10:51:45 -04:00
Josh Matthews
9ecf7c0f51
Add outline-width parsing failure. 2020-05-12 10:44:49 -04:00
Josh Matthews
a9ac01a5de
Remove intermittent crash. 2020-05-12 10:42:01 -04:00
Josh Matthews
5261140293
Remove intermittent crash. 2020-05-12 10:41:46 -04:00
WPT Sync Bot
fb0507d174 Update web-platform-tests to revision a49081e46a18e439defbd77d18cc5e261d68b215 2020-05-12 11:19:00 +00:00
Josh Matthews
eb2f7f7f0a Convert all uses of UpdateResources api to use webrender transactions. 2020-05-11 17:41:56 -04:00
Josh Matthews
8842250033 Update webrender. 2020-05-11 17:41:56 -04:00
bors-servo
aa9f16ce45
Auto merge of #26477 - mrobinson:layout-2020-get-computed-value, r=jdm
Add support for getComputedStyle() to layout_2020

These changes add support for `getComputedStyle()` to layout_2020.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2020-05-11 15:57:25 -04:00
Martin Robinson
9c7b1ae715 layout_2020: Add initial support for getComputedStyle
This implementation is more-or-less on par with the one from layout_2013
and in some cases better. There are still some cases where we don't
return the correct "resolved value," but this is enough to test
animations and transitions.
2020-05-11 20:14:01 +02:00
pylbrecht
e64c49036e Update test expectations 2020-05-11 18:23:54 +02:00
Martin Robinson
a637810df3 layout_2020: Add support for transform-style
This requires creating a matching stacking context for every reference
frame and also properly placing those stacking contexts inside them.
2020-05-11 15:03:29 +02:00
WPT Sync Bot
354984b2bf Update web-platform-tests to revision 46b884903ba0153b2cd9d932504f6b88f57614cf 2020-05-10 11:17:26 +00:00
CYBAI
b4d1f5b309 Prefix on for function name of inline events 2020-05-10 19:53:36 +09:00
WPT Sync Bot
f05c813634 Update web-platform-tests to revision 3a7b40eb73bf5359adf0d378b71d36488885057f 2020-05-09 11:10:45 +00:00
bors-servo
536c60afe1
Auto merge of #26475 - CYBAI:fix-none-location-redirect, r=jdm
Initiate redirect fetching iff the request has a location

Without this checking, we will run into a TIMEOUT request because
http_redirect_fetch will return immediately when location doesn't exist.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes partially fix #25606
- [x] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2020-05-08 23:42:07 -04:00
CYBAI
b4089bcd07 Initiate redirect fetching iff the request has a location
Without this checking, we will run into a TIMEOUT request because
http_redirect_fetch will return immediately when location doesn't exist.
2020-05-09 11:33:52 +09:00
bors-servo
4eefaa4a2c
Auto merge of #26473 - Eijebong:cross-origin-resource-policy, r=jdm
Implement cross origin resource policy check

Also fixes an img load event bug that was making some test very racey.
2020-05-08 13:19:20 -04:00
Bastien Orivel
8249be38c9 Implement cross origin resource policy check
I removed the window getter usage from those tests as servo does not
support that yet.
2020-05-08 19:15:24 +02:00
Josh Matthews
8fcdb5657d
Remove passing test metadata for 2020. 2020-05-08 11:52:15 -04:00
WPT Sync Bot
cb40a5f9fe Update web-platform-tests to revision df7fc2ece226676b8398ece13ddfd31b4f1eca5c 2020-05-08 11:17:10 +00:00
Utsav Oza
2530028b20 Bump rust-url from 2.1.0 to 2.1.1 2020-05-07 22:38:07 +05:30
bors-servo
6aec2c8594
Auto merge of #26450 - PeterZhizhin:add_referrerpolicy_to_list_of_relevant_mutations, r=jdm
Add referrerpolicy to list of relevant mutations

<!-- Please describe your changes on the following line: -->

`img.referrerPolicy` change now mutates the image.
Not all `referrerPolicy` attribute changes result in an image update event.
Only valid changes are reflected.

All referrerpolicy tests inside `relevant-mutations.html` WPT test now pass.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #26388

<!-- Either: -->
- [x] These have tests:
```
./mach test-wpt tests/wpt/web-platform-tests/html/semantics/embedded-content/the-img-element/relevant-mutations.html
```
2020-05-07 08:45:12 -04:00
PeterZhizhin
f44c2c9bc5 Added referrerpolicy as relevant mutation for img
This fixes #26388. referrerPolicy is now calls onload for image
mutations. Not all referrerPolicy attribute changes result in an image
update event. Only valid changes are reflected.

Referrerpolicy tests now pass.
2020-05-07 10:12:53 +03:00
bors-servo
856f03ae75
Auto merge of #26437 - servo:reftest-report, r=jdm
Generalize the 2020 regression report to show local unexpected failures

Example usage:

```
./mach test-wpt --release --layout-2020 --log-raw /tmp/servo.log
./tests/wpt/reftests-report/gen.py /tmp/servo.log
firefox ./tests/wpt/reftests-report/report.html
```

Produces a report similar https://community-tc.services.mozilla.com/api/index/v1/task/project.servo.layout-2020-regressions-report/artifacts/public/regressions.html, but showing unexpected reftest failures. The CI-generated one shows Layout 2020 failures (expected or not) that succeed in Layout 2013.
2020-05-07 01:05:44 -04:00
bors-servo
5ee1a48d82
Auto merge of #26455 - Eijebong:more-redirects, r=jdm
Properly set the url on the Response object when the response is an opaqueredirect
2020-05-06 17:41:30 -04:00
bors-servo
9c88bfb345
Auto merge of #26451 - servo-wpt-sync:wpt_update_06-05-2020, r=jdm
Sync WPT with upstream (06-05-2020)

Automated downstream sync of changes from upstream as of 06-05-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-05-06 14:12:56 -04:00
Bastien Orivel
ec665d9dce Properly set the url on the Response object when the response is an opaqueredirect 2020-05-06 20:08:26 +02:00
WPT Sync Bot
c5ddf8e76a Update web-platform-tests to revision 07b698ef4ea02ebeb65c3214ed7141ad32678a8c 2020-05-06 13:09:52 +00:00
bors-servo
b290ad95c1
Auto merge of #26407 - mrobinson:animation-restyle-model, r=jdm
Have animations more closely match the HTML spec

These two commits do two major things:

**Have animations ticks trigger a restyle**: This corrects synchronization issues with animations,
where the values used in layout are out of sync with what is returned by `getComputedStyle`.

**Tick the animation timer in script according to spec**: This greatly reduces the flakiness of
animation and transitions tests.

Fixes #13865.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #13865

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2020-05-06 04:12:31 -04:00
Bastien Orivel
e18a3ad841 Separate values in Headers with ", ", not ","
Tests expect header values to be separated by that so this fixes a few
of them.
2020-05-06 00:11:34 +02:00
Bastien Orivel
d86a429bd5 Update test expectations 2020-05-05 21:22:51 +02:00
Bastien Orivel
2b28042446 Fix a mistake in the redirect fetch code
The spec says to ignore both HEAD and GET in step 11
2020-05-05 20:43:56 +02:00
Bastien Orivel
aa43ce8cf3 Fix the redirected attribute for Response 2020-05-05 20:43:56 +02:00
Martin Robinson
3a74013abc Start having animations conform to the HTML spec
This is a small step toward fixing #19242. The main idea is that the
clock for animations should advance as the event loop ticks. We
accomplish this by moving the clock from layout and naming it the
"animation timeline" which is the spec language. This should fix
flakiness with animations and transitions tests where a reflow could
move animations forward while script was running.

This change also starts to break out transition and animation events
into their own data structure, because it's quite likely that the next
step in fixing #19242 is to no longer send these events through a
channel.
2020-05-05 20:08:44 +02:00
bors-servo
a237e41b89
Auto merge of #26427 - servo-wpt-sync:wpt_update_05-05-2020, r=jdm
Sync WPT with upstream (05-05-2020)

Automated downstream sync of changes from upstream as of 05-05-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-05-05 11:05:22 -04:00
Josh Matthews
fc11b0830e
Remove interfaces.worker.js failure. 2020-05-05 11:04:46 -04:00
Josh Matthews
e0386543f5
Remove interfaces.html failure. 2020-05-05 11:04:22 -04:00
Josh Matthews
3cf9565a1a Add OptionalFeatureUnsupportedError to expected interfaces. 2020-05-05 09:59:49 -04:00
Martin Robinson
b585ce5b1f Use a restyle for animation ticks
This change corrects synchronization issues with animations, by
reworking the animation processing model to do a quick restyle and
incremental layout when ticking animations.

While this change adds overhead to animation ticks, the idea is that
this will be the fallback when synchronous behavior is required to
fulfill specification requirements. In the optimistic case, many
animations could be updated and applied off-the-main-thread and then
resynchronized when style information is queried by script.

Fixes #13865.
2020-05-05 15:13:35 +02:00
WPT Sync Bot
f3e7a5cac0 Update web-platform-tests to revision 3adb0f89d80bb92ea1a458b3fbe461f7803549a9 2020-05-05 10:56:33 +00:00
bors-servo
5e44327325
Auto merge of #26410 - utsavoza:ugo/issue-26287/04-05-2020, r=ferjm
Update window.open() to return fallible result

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes partially fix #26287
- [x] There are tests for these changes
2020-05-05 04:40:51 -04:00
Simon Sapin
494e28bbcd Generalize the 2020 regression report to show local unexpected failures 2020-05-04 18:18:48 +02:00
Utsav Oza
86a5cf75aa Update window.open() to return fallible result 2020-05-04 19:02:38 +05:30
WPT Sync Bot
f71dd608db Update web-platform-tests to revision 7ef67f2d8c667d7f5a828fa0f6878ed45d1432d8 2020-05-04 13:10:47 +00:00
WPT Sync Bot
3f44ddc852 Update web-platform-tests to revision c19e2b60b554e64ad07f25675f659ce76cee9e82 2020-05-03 11:19:37 +00:00