Commit graph

35259 commits

Author SHA1 Message Date
bors-servo
200cc8aa6b
Auto merge of #22084 - KiChjang:idl-default-empty-array, r=jdm
Handle default empty sequence values

Fixes #22077.

<!-- 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/22084)
<!-- Reviewable:end -->
2018-11-01 18:13:49 -04:00
Keith Yeung
99589d2f2a Handle default empty sequence values 2018-11-01 14:54:23 -07:00
bors-servo
ad32d52ba5
Auto merge of #22076 - asajeffrey:magicleap-scroll, r=jdm
Support scrolling in Magic Leap Servo

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

Add support for scrolling in Magic Leap Servo. Also adds support for mouse down and mouse up events.

---
<!-- 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 #22043
- [X] These changes do not require tests because we can't test ML

<!-- 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/22076)
<!-- Reviewable:end -->
2018-11-01 17:09:59 -04:00
bors-servo
46fdf156e4
Auto merge of #21644 - Eijebong:hyperup, r=jdm
Update hyper to 0.12

<!-- 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/21644)
<!-- Reviewable:end -->
2018-11-01 15:03:01 -04:00
Bastien Orivel
024b40b39d Update hyper to 0.12 2018-11-01 19:17:36 +01:00
Alan Jeffrey
3970c4ffbe Support scrolling in Magic Leap Servo 2018-11-01 12:16:01 -05:00
bors-servo
95bfaa0a77
Auto merge of #22067 - jdm:mesaup, r=manishearth
Update osmesa dependency.

Fixes #22063.

<!-- 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/22067)
<!-- Reviewable:end -->
2018-11-01 07:19:34 -04:00
bors-servo
8aded34bf6
Auto merge of #21914 - Eijebong:canvas-cleanup, r=jdm
Use pixels::get_rect in CanvasData::draw_image

Those functions are the same except that get_rect isn't failible, so we
have to check that the rect we want is actually in the image.

<!-- 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/21914)
<!-- Reviewable:end -->
2018-11-01 03:29:06 -04:00
bors-servo
126ed26171
Auto merge of #22060 - jdm:ml, r=asajeffrey
Add a build switch to disable the native bluetooth backend.

Fixes #22059.

<!-- 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/22060)
<!-- Reviewable:end -->
2018-11-01 02:23:53 -04:00
bors-servo
07071b42c7
Auto merge of #22061 - servo-wpt-sync:wpt_update_30-10-2018, r=jdm
Sync WPT with upstream (30-10-2018)

Automated downstream sync of changes from upstream as of 30-10-2018.
[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/22061)
<!-- Reviewable:end -->
2018-10-31 23:58:16 -04:00
bors-servo
ace6324935
Auto merge of #22066 - asajeffrey:magicleap-url-bar, r=jdm
Magic Leap URL bar

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

This PR gets the URL bar in the Servo2D magic leap app to function: it shows the current URL, and navigates Servo when edited.

---
<!-- 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 do not require tests because we can't test on ML

<!-- 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/22066)
<!-- Reviewable:end -->
2018-10-31 21:45:28 -04:00
bors-servo
eea3c5d10e
Auto merge of #22046 - servo:tc-android-x86, r=Manishearth+asajeffrey
Taskcluster: build for Android x86 and test in emulator

This adds to Taskcluster the equivalent of Buildbot’s `android-x86` job. CC https://github.com/servo/saltfs/issues/559

Like on Buildbot, the Android emulator runs on a Packet.net server. However we can compiler in a separate task, and run that task on fast AWS instances. The Packet server is provisionned and installed automatically with Terraform scripts forked from https://github.com/taskcluster/taskcluster-infrastructure/tree/master/modules/docker-worker.

Taskcluster’s “livelog” functionality seems to be broken on Packet tasks, so logs are only available after a task is completed.

<!-- 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/22046)
<!-- Reviewable:end -->
2018-10-31 18:57:19 -04:00
Simon Sapin
b1da53e47f Use apt-get update before apt-get install 2018-10-31 23:55:21 +01:00
Josh Matthews
a51276986e Update osmesa dependency. 2018-10-31 18:33:41 -04:00
bors-servo
fa8b4ea139
Auto merge of #21983 - emilio:inline-absolute, r=jdm
style: Re-enable the rule that was accidentally disabled by a typo in the CSS parser.

In #21946 I commented out this rule because before that patch we were
accidentally ignoring it because of a typo in the CSS parser, since that PR
didn't intend to change behavior.

This PR does though, and re-enables the rule.

<!-- 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/21983)
<!-- Reviewable:end -->
2018-10-31 14:57:44 -04:00
bors-servo
8350c5e1ff
Auto merge of #22049 - ferjm:timeranges, r=jdm
Implement TimeRanges interface

- [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

Spec: https://html.spec.whatwg.org/multipage/media.html#time-ranges

<!-- 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/22049)
<!-- Reviewable:end -->
2018-10-31 13:37:05 -04:00
Fernando Jiménez Moreno
664d5cd2fa Implement TimeRanges interface 2018-10-31 18:35:53 +01:00
Alan Jeffrey
c2f33709d1 Get the Servo2D URL bar to show the current URL, and to navigate when edited. 2018-10-31 11:11:01 -05:00
bors-servo
4c5a3c0d9f
Auto merge of #22024 - ferjm:range.request.file.urls, r=jdm
Support for byte range requests on file urls

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

This is required to allow seeking on media behind file urls

<!-- 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/22024)
<!-- Reviewable:end -->
2018-10-31 09:55:23 -04:00
Fernando Jiménez Moreno
594f17a8e1 Tests for byte range requests on file urls 2018-10-31 13:07:03 +01:00
Fernando Jiménez Moreno
0f73544297 Support for byte range requests on file urls 2018-10-31 12:50:58 +01:00
WPT Sync Bot
9f516d3717 Update web-platform-tests to revision b704e37ec97fe90b3a3d59c10f78c21907b5b576 2018-10-30 23:10:39 -04:00
Josh Matthews
83fda753a8 Add a build switch to disable the native bluetooth backend. 2018-10-30 19:26:42 -04:00
bors-servo
cc0ac89e1a
Auto merge of #22057 - asajeffrey:magicleap-fwd-back-buttons, r=jdm
Magic Leap history traversal

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

Hook up the back and forward buttons in the Magic Leap Servo2D application to history traversal.

---
<!-- 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 do not require tests because we can't test ML

<!-- 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/22057)
<!-- Reviewable:end -->
2018-10-30 14:20:28 -04:00
Alan Jeffrey
c8fa64b93a Hook up the back and forward buttons to history traversal in Magic Leap Servo2D 2018-10-30 12:05:19 -05:00
bors-servo
7a715519a0
Auto merge of #22052 - ferjm:durationchange.resize.event.once, r=ceyusa
HTMLMediaElement - fire durationchange and resize iff something changes

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

<!-- 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/22052)
<!-- Reviewable:end -->
2018-10-30 12:45:45 -04:00
bors-servo
ac41b813a0
Auto merge of #22047 - servo-wpt-sync:wpt_update_29-10-2018, r=jdm
Sync WPT with upstream (29-10-2018)

Automated downstream sync of changes from upstream as of 29-10-2018.
[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/22047)
<!-- Reviewable:end -->
2018-10-30 11:32:44 -04:00
bors-servo
4ead81717a
Auto merge of #22044 - asajeffrey:magicleap-less-egl-buffer-swapping, r=jdm
Reduce the amount of EGL buffer swapping the ML port is doing

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

At the moment, we're swapping the EGL buffers every heartbeat, which produces a lot of flickering. We should only swap the buffers when needed.

---
<!-- 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 do not require tests because we have no way to test on ML

<!-- 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/22044)
<!-- Reviewable:end -->
2018-10-30 09:57:56 -04:00
Simon Sapin
d1a18dc052 Also show created/updated dates in Packet.net server list 2018-10-30 13:30:41 +01:00
Simon Sapin
46f9312d0c Taskcluster: use a dedicated role for scopes granted to decision tasks 2018-10-30 13:25:19 +01:00
Simon Sapin
a5cce280f1 Taskcluster: move curl’ing artifacts into decisionlib 2018-10-30 13:25:18 +01:00
Simon Sapin
f357c6fe93 Taskcluster: test in Android emulator 2018-10-30 13:25:18 +01:00
Simon Sapin
556435ae01 Taskcluster: add Android x86 build 2018-10-30 13:25:18 +01:00
Simon Sapin
6fa0c6bbf7 Add Terraform config for docker-worker on Packet.net 2018-10-30 13:25:17 +01:00
bors-servo
c876592d84
Auto merge of #22048 - paulrouget:remove_prepare_for_composite_args, r=jdm
remove useless arguments from prepare_for_composite

Accidentally fixes #22009

---
<!-- 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 #22009 (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/22048)
<!-- Reviewable:end -->
2018-10-30 07:54:10 -04:00
Fernando Jiménez Moreno
35508c152a HTMLMediaElement - fire durationchange and resize iff something changes 2018-10-30 12:02:42 +01:00
bors-servo
b5b8550fb2
Auto merge of #22045 - asajeffrey:magicleap-follow-hyperlinks, r=paulrouget
Get the ML port to follow hyperlinks

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

This PR adds some basic mouse support to the magic leap touchpad. Moves are mapped to mouse moves (for hover style) and trigger pulls are mapped to mouse clicks (for following hyperlinks).

---
<!-- 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 do not require tests because we can't test on ML

<!-- 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/22045)
<!-- Reviewable:end -->
2018-10-30 03:41:52 -04:00
Paul Rouget
d6b41ba67d remove useless arguments from prepare_for_composite 2018-10-30 07:51:38 +01:00
bors-servo
662fd0afa4
Auto merge of #22021 - paulrouget:shutdown, r=paulrouget
Android: proper shutdown mechanism

Fix #21834

<!-- 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/22021)
<!-- Reviewable:end -->
2018-10-30 01:47:17 -04:00
WPT Sync Bot
5682eb7930 Update web-platform-tests to revision 7b078f0d6ff82157c57f343838f61b5200686e53 2018-10-29 23:47:58 -04:00
Simon Sapin
ba8b37f3bc List packet.net servers through their API 2018-10-29 22:23:00 +01:00
Alan Jeffrey
fc38c04313 Get the ML port to follow hyperlinks 2018-10-29 15:02:10 -05:00
bors-servo
2f8dc65519
Auto merge of #21976 - notriddle:iframe-target-form-race, r=jdm
Assign a name to iframes when loading the initial about:blank

Before, it would assign the name too late, causing scripts (which will not wait for another tick) to accidentally spawn pop-up windows instead of loading into the iframe.

---
<!-- 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 #21886
- [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/21976)
<!-- Reviewable:end -->
2018-10-29 15:29:31 -04:00
Michael Howell
10442ae894 Use t.step_func and expected path checking 2018-10-29 18:52:40 +00:00
bors-servo
a59a80b301
Auto merge of #22028 - asajeffrey:debug-all-the-things, r=emilio
Add lots of derived Debug impls

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

Add a bunch of derived `Debug` impls. After this, pretty much anything that implements `Deserializable` also implements `Debug`. The exception is `webrender_api::RenderApiSender`, which would need a webrender PR.

---
<!-- 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 do not require tests because it's just debugging

<!-- 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/22028)
<!-- Reviewable:end -->
2018-10-29 14:17:02 -04:00
Alan Jeffrey
0124baa82f Reduce the amount of EGL buffer swapping the ML port is doing 2018-10-29 12:13:34 -05:00
Alan Jeffrey
05391e27cd Add lots of derived Debug impls 2018-10-29 09:21:37 -05:00
bors-servo
0ec0f705b6
Auto merge of #21985 - asajeffrey:magicleap, r=jdm
Support building for Magic Leap.

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

This PR gets Servo to build for Magic Leap, and provides a dummy Servo2D app.

---
<!-- 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 do not require tests because it's a port to a new architecture

<!-- 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/21985)
<!-- Reviewable:end -->
2018-10-29 10:00:32 -04:00
Alan Jeffrey
dab8f4a97f Support building for Magic Leap. 2018-10-29 08:49:41 -05:00
bors-servo
e580250d5d
Auto merge of #21988 - CYBAI:drop-promises, r=jdm
Clear refcounted promise before dropping JSRuntime

Not sure if this is the right solution?

I also tried to `impl Drop for LiveDOMReferences` but it's still executed after dropping JSRuntime.
So, maybe we should clear it before dropping the JSRuntime?

cc @jdm @asajeffrey

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21331 .
- [x] There are tests for these changes; the status of `fetch/cross-origin-resource-policy/fetch-in-iframe.html` will be `OK`

<!-- 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/21988)
<!-- Reviewable:end -->
2018-10-29 08:31:12 -04:00