Commit graph

7434 commits

Author SHA1 Message Date
Thomas Delacour
18178fa107
ISSUE-21257: set redirectEnd on PerformanceResourceTiming 2019-07-19 21:36:24 +02:00
WPT Sync Bot
7be3e2f06b Update web-platform-tests to revision 6340a70e8df5e850ea44436b54105f59dd5aa22e 2019-07-19 14:54:30 +00:00
bors-servo
5788e8c050
Auto merge of #23804 - Manishearth:transform-tests, r=asajeffrey
Improve xrRigidTransform_constructor test

It contained an incorrect test attempting to construct a transform that throws. Added tests that check that it throws appropriately.

has r+ from https://github.com/servo/servo/pull/23803, created new PR
due to bug in WPT sync

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23804)
<!-- Reviewable:end -->
2019-07-18 21:34:03 -04:00
Alan Jeffrey
f2766cf6f3 Added wpt webxr tests for XR layer's viewports and framebuffer 2019-07-18 17:16:08 -05:00
bors-servo
2dfbbd0ca2
Auto merge of #23368 - gterzian:clean_up_navigation, r=asajeffrey
Clean-up navigation

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

1. Navigation as a result of following a hyperlink should be done in a task: https://html.spec.whatwg.org/multipage/links.html#following-hyperlinks:dom-manipulation-task-source
2. The javascript url navigation should also be done in a task: https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigating-across-documents:dom-manipulation-task-source
3. In `window.load_url`, it seems there is no need to send a message to the script-thread(the entirety of `load_url` should instead be done in a task when appropriate), so we can just do that last part "sync" by calling a method on the script, which will send a message to the constellation(for the parallel navigation steps), or queue task(for the JS navigation), as appropriate.
4. Separate the "normal" navigation flow from the handling of "navigate an iframe" message from constellation, since doing everything in one method as was previously done with `handle_navigate`, is confusing.

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

<!-- Either: -->
- [ ] 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. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23368)
<!-- Reviewable:end -->
2019-07-18 14:22:03 -04:00
Manish Goregaokar
d26b73dd3d Add description strings to xrRigidTransform_constructor 2019-07-18 09:39:23 -07:00
Manish Goregaokar
1098454bc4 Add error handling tests to xrRigidTransform_constructor 2019-07-18 09:29:16 -07:00
bors-servo
6942694e4a
Auto merge of #23791 - servo-wpt-sync:wpt_update_17-07-2019, r=servo-wpt-sync
Sync WPT with upstream (17-07-2019)

Automated downstream sync of changes from upstream as of 17-07-2019.
[no-wpt-sync]

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23791)
<!-- Reviewable:end -->
2019-07-18 02:09:47 -04:00
Gregory Terzian
571beec179 clean-up navigation
security: check target and source origin before executing JS url

implement replacement-enabled flag as a HistoryEntryReplacement enum

add source origin string on loaddata

add LoadOrigin

iframe: remove optional load-data

auxiliaries: add load-data into info

constellation: remove url from Pipeline::new

check load origin: link to whatwg issue

switch loadorigin toplevel to constellation
2019-07-18 12:03:45 +08:00
bors-servo
91d12669e4
Auto merge of #23630 - Eijebong:dedupe-epoch, r=jdm
Update rayon to dedupe crossbeam-epoch

As a bonus this also removes one version of crossbeam-utils

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23630)
<!-- Reviewable:end -->
2019-07-17 20:01:07 -04:00
WPT Sync Bot
effeb278b6 Update web-platform-tests to revision 9a4d479ed1347eb9184abc70d628a6da2297657a 2019-07-17 14:50:17 +00:00
bors-servo
25d8a6999b
Auto merge of #23726 - servo:rustup, r=emilio
Upgrade to rustc 1.38.0-nightly (4b65a86eb 2019-07-15)

<del>This uses `MaybeUninit` in Stylo. `MaybeUninit` is stable in Rust 1.36.0, which Firefox [plans](https://wiki.mozilla.org/Rust_Update_Policy_for_Firefox) to require on 2019-06-18.</del>

Update: `MaybeUninit` in Stylo removed from this PR, after https://github.com/rust-lang/rust/pull/62599.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23726)
<!-- Reviewable:end -->
2019-07-17 08:56:27 -04:00
Simon Sapin
0677704953 Update cssparser
Pick up a behavior fix https://github.com/servo/rust-cssparser/pull/251
2019-07-17 10:47:58 +02:00
Manish Goregaokar
5b960a7fdc Enable webxr wpt 2019-07-16 22:17:22 -07:00
Manish Goregaokar
37d758dae1 Use correct w value in xrFrame_getPose
Values other than 1 are supposed to throw
2019-07-16 22:17:22 -07:00
Manish Goregaokar
df1f865cb2 Update xr.requestSession() arguments 2019-07-16 22:17:05 -07:00
WPT Sync Bot
40ef4e9705 Update web-platform-tests to revision 63459a30a61cda53c8c8ab4dc645b142cd2f85ea 2019-07-16 14:33:08 +00:00
bors-servo
005320c08c
Auto merge of #23203 - iulianR:22828, r=jdm
Implement PerformanceNavigation interface

<!-- Please describe your changes on the following line: -->
This is my first attempt. Please let me know if I should change anything.

---
<!-- 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 #22828 (GitHub issue number if applicable)

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

<!-- 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. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23203)
<!-- Reviewable:end -->
2019-07-15 13:55:33 -04:00
WPT Sync Bot
1ac5a35ed6 Update web-platform-tests to revision 3b6ba59adc411f6dd433171f3f5ab71b83c01c12 2019-07-15 13:49:38 +00:00
bors-servo
95b304b786
Auto merge of #23500 - sreeise:exposed_binding_gen, r=jdm
Make bindings aware of exposed members/partial interfaces

<!-- 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 #23332

<!-- Either: -->
- [ ] 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. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23500)
<!-- Reviewable:end -->
2019-07-14 12:53:14 -04:00
WPT Sync Bot
bc8af9cf87 Update web-platform-tests to revision 719721f655102bcd24d45eba91339eb2d7dbc591 2019-07-14 14:52:54 +00:00
sreeise
871239a3e3 Change bindings generation to make Exposed annotation aware of members/partial interfaces 2019-07-14 09:24:43 -04:00
bors-servo
938a920b86
Auto merge of #23767 - servo-wpt-sync:wpt_update_12-07-2019, r=servo-wpt-sync
Sync WPT with upstream (12-07-2019)

Automated downstream sync of changes from upstream as of 12-07-2019.
[no-wpt-sync]

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23767)
<!-- Reviewable:end -->
2019-07-13 00:05:30 -04:00
Bastien Orivel
28fa0f8009 Update rayon to dedupe crossbeam-epoch
As a bonus this also removes one version of crossbeam-utils
2019-07-12 21:01:33 +02:00
WPT Sync Bot
e7fcc8e274 Update web-platform-tests to revision 9919d0f04266001686c09d47ff6e25c98b48d91f 2019-07-12 14:57:29 +00:00
bors-servo
df73c71fb1
Auto merge of #23516 - pcwalton:webrenderup, r=pcwalton,jdm
Upgrade WebRender

This is against an old Servo because I can't build current Servo due to compile errors in RNG crates. I verified that it starts up.

---
<!-- 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 #23516
- [x] There are tests for these changes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23516)
<!-- Reviewable:end -->
2019-07-12 08:10:31 -04:00
Josh Matthews
179c825e59 Fix unit test. 2019-07-12 08:10:16 -04:00
Josh Matthews
bb01d495db Mark underline rendering expected failure on linux. 2019-07-12 08:10:16 -04:00
bors-servo
5fdc7c0d2c
Auto merge of #23731 - Manishearth:webxr-script, r=asajeffrey
Use new WebXR API in script

Todo:
 - [x] Hook new `Frame` information into `XRFrame`
 - [x] Make spaces use new transform info
 - [x] Hook up session view metadata correctly
 - [x] Get mocking working again
 - [x] Get inputs working

Optional todos:
 - [x] Add support for active and animationFrame bool on XRFrame
 - [x] Correctly handle viewer and offset spaces instead of casting
 - [x] Error on zero-length quaternions

<s>Not really ready for review yet, but you can go ahead and review what I have so far. It doesn't do anything yet, aside from crash horribly. I'm opening this PR early so i have a place to track progress.</s>

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23731)
<!-- Reviewable:end -->
2019-07-11 18:31:21 -04:00
Manish Goregaokar
0d5d1a3dc4 Update test API, hook it up to webxr mocking 2019-07-11 11:12:59 -07:00
WPT Sync Bot
4499a0fbb6 Update web-platform-tests to revision 36acf7a01cb8ffbbafbd578229c5ad3fde2e47cc 2019-07-11 14:32:39 +00:00
WPT Sync Bot
b81cdc75ce Update web-platform-tests to revision 84af6c875d378944b39d895acdcfc170736b2d3d 2019-07-10 14:54:55 +00:00
Josh Matthews
20450500ed Mark test with tiny AA difference from reference as fuzzy match. 2019-07-09 10:52:44 -04:00
WPT Sync Bot
3c256580fa Update web-platform-tests to revision 8119bc10583682676a3db9806c82ed4044e88e13 2019-07-09 14:00:38 +00:00
Josh Matthews
890f8c1c9a
Remove intermittet failure. 2019-07-08 11:31:04 -04:00
WPT Sync Bot
fc8f5dd9fd Update web-platform-tests to revision 3387cf524436af6e29ad89b1b04ec94b8a76d4f9 2019-07-08 13:49:25 +00:00
WPT Sync Bot
c8e806d0ef Update web-platform-tests to revision 0b22439430b6d8d9a6d43a0908e86c0366f207c0 2019-07-06 14:49:11 +00:00
Kagami Sascha Rosylight
40dbb2c100 Implement DOMPoint.fromPoint 2019-07-06 01:15:24 +09:00
bors-servo
5f477707a1
Auto merge of #23646 - servo:layout-2020, r=jdm
Add `./mach build --features layout-2020`

… with corresponding `layout` and `layout_thread` crates, which for now do nothing.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23646)
<!-- Reviewable:end -->
2019-07-04 14:24:38 -04:00
Simon Sapin
5cabcd5268 Add --layout-2020 to ./mach test-wpt and ./mach update-wpt
… with separate metadata (expected results) and include manifest.
2019-07-04 18:16:44 +02:00
Simon Sapin
2b01c26aa5 Add ./mach build --with-layout-2020
… with corresponding `layout` and `layout_thread` crates,
which for now do nothing.
2019-07-04 18:16:44 +02:00
WPT Sync Bot
120d9aa5dc Update web-platform-tests to revision 8da19eeb64e1dbcc32cabc2961a44e15635d116f 2019-07-04 14:31:33 +00:00
bors-servo
e2441b27bb
Auto merge of #23694 - saschanaz:rotate-fix, r=Manishearth
Fix DOMMatrix rotate test failure

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

Rotation functions have been working backward because of https://github.com/servo/euclid/issues/354, so this temporarily fixes it.

cc @Manishearth

PS: How can I run bors-servo myself?

---
<!-- 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 #23688

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

<!-- 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. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23694)
<!-- Reviewable:end -->
2019-07-03 22:33:22 -04:00
bors-servo
af295bcefe
Auto merge of #23654 - julientregoat:issue-23645, r=jdm
Fix panic when running test-background-fetch-permission.html

<!-- Please describe your changes on the following line: -->
* Propagate `Error::JSFailed` in `Permissions::create_descriptor`
* In `Error::to_jsval`, only check if a JS exception is not pending if `self` is not `Error::JSFailed`

---
<!-- 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 #23645 (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because it's a test runner, so by nature if the test runs the test runner is also working as expected.

<!-- 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. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23654)
<!-- Reviewable:end -->
2019-07-03 19:56:29 -04:00
bors-servo
e382266b22
Auto merge of #23564 - mmiecz:clipboard-refactoring, r=jdm
Clipboard refactoring

<!-- Please describe your changes on the following line: -->
This PR removes clipboard handling from the constellation. Instead, now embedder handles it.

---
<!-- 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 #23440 (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because it is enough to test manually in input box, if copying and pasting still works .

<!-- 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. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23564)
<!-- Reviewable:end -->
2019-07-03 15:20:15 -04:00
Julien Tregoat
28fcde9e10 Propagate JSFailed error & conditionally execute initial assertion when converting error to JS value. 2019-07-03 13:48:48 -04:00
bors-servo
fb7aa7ba7c
Auto merge of #23687 - servo-wpt-sync:wpt_update_02-07-2019, r=servo-wpt-sync
Sync WPT with upstream (02-07-2019)

Automated downstream sync of changes from upstream as of 02-07-2019.
[no-wpt-sync]

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23687)
<!-- Reviewable:end -->
2019-07-03 08:47:04 -04:00
Kagami Sascha Rosylight
168d980f9e Fix DOMMatrix rotate test failure 2019-07-03 20:23:52 +09:00
bors-servo
fee1418b43
Auto merge of #23685 - saschanaz:scalenonuniform, r=paulrouget
Add DOMMatrix.prototype.scaleNonUniform

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

Implements `scaleNonUniform()` [per the spec](https://drafts.fxtf.org/geometry/#dom-dommatrixreadonly-scalenonuniform).

---
<!-- 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 #23683

<!-- 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. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23685)
<!-- Reviewable:end -->
2019-07-03 05:20:14 -04:00
bors-servo
b4ed3b6f3c
Auto merge of #23641 - Manishearth:newtest, r=asajeffrey
Update to newest XRTest API

requires https://github.com/servo/rust-webvr/pull/88 and https://github.com/servo/servo/pull/23575

Incorporates changes from https://github.com/immersive-web/webxr-test-api/pull/10 (and various minor improvements on that, like https://github.com/immersive-web/webxr-test-api/pull/20). Test no longer relies on racy state setting functions.

We're nearing consensus on what the test API should look like, thought I'd implement the updated model so I can start poking at the tests.

Fixes https://github.com/servo/servo/issues/23634 by setting everything at initialization.

This is based on https://github.com/servo/servo/pull/23575, so we can't merge it yet.

r? @asajeffrey (only the last commit)

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23641)
<!-- Reviewable:end -->
2019-07-02 15:10:14 -04:00