Commit graph

35029 commits

Author SHA1 Message Date
est31
af0f7db909 Implement basic <source> support for HtmlMediaElement
The spec has a complicated algorithm for selecting a <source>
element among multiple <source> children of a HtmlMediaElement
where it loops over all of them, tries each and takes the first
where "everything works out".

This commit implements a much simpler and restricted approach by
just taking the first <source> child, and if that fails,
failing altogether, without looking at any further children.

This is an improvement over the current status and makes gifv
items on imgur playable, although it doesn't mean full <source>
support.
2018-10-12 15:29:57 +02:00
bors-servo
2d8cef30fa
Auto merge of #21921 - servo:jdm-patch-6-1, r=gw3583
Use a depth buffer when embedding Servo on android.

Webrender uses the z-buffer but does not check that it's present. We need to provide one for pages to render correctly.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21807
- [x] These changes do not require tests because there are no automated tests for embedding Servo in Firefox Reality.

<!-- 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/21921)
<!-- Reviewable:end -->
2018-10-12 08:15:23 -04:00
bors-servo
5f463d3c97
Auto merge of #21911 - servo:webgl, r=jdm
Simplify ctx.drawImage a bit

There is no need to swap between RGBA and BGRA twice.

<!-- 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/21911)
<!-- Reviewable:end -->
2018-10-12 04:45:11 -04:00
Bastien Orivel
a97ba4f57d Remove Origin::unicode_serialization
Fixes #20701
2018-10-12 10:25:03 +02:00
Simon Pieters
5a3e4b3749 More test expectations 2018-10-12 10:14:20 +02:00
WPT Sync Bot
4cf0a092d0 Update web-platform-tests to revision d647a1bc742a533186d8297cae2a2bee669c7780 2018-10-11 23:44:24 -04:00
bors-servo
79f0291924
Auto merge of #21912 - servo:lighter-bootstrap, r=jdm
Add `--build` and `--emulator-x86` to `./mach bootstrap-android`

This allows not downloading dependencies that are not needed for a particular task.

<!-- 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/21912)
<!-- Reviewable:end -->
2018-10-11 23:15:38 -04:00
Josh Matthews
4e5b3bcf15 Fix windows build errors. 2018-10-11 22:34:33 -04:00
bors-servo
bf192caf4b
Auto merge of #21910 - ferjm:audiobuffer.shared.fix, r=Manishearth
Allow reusing AudioBuffers

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #21887
- [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/21910)
<!-- Reviewable:end -->
2018-10-11 17:46:15 -04:00
Manish Goregaokar
b7e9aeb4ac Update servo-media to include DestinationNode fix 2018-10-11 14:38:14 -07:00
Manish Goregaokar
40641ac8a4 More accurate names for .started and .stopped 2018-10-11 14:28:05 -07:00
Bastien Orivel
5347e25d1a Add support for StorageEvent.initstorageevent()
Fixes #21874
2018-10-11 22:17:46 +02:00
Josh Matthews
03a75f418e
Use a depth buffer when embedding Servo on android. 2018-10-11 16:07:58 -04:00
bors-servo
7b464ab75d
Auto merge of #21918 - servo:cache-gradle, r=jdm
Taskcluster: cache ~/.gradle

This is where are kept files whose downloads sometimes fail, so downloading less often will reduce the impact of those failures.

```
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.1.3/gradle-3.1.3.pom'.
   > Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.1.3/gradle-3.1.3.pom'.
      > Read timed out
```

https://tools.taskcluster.net/groups/PGuIkH5QQmqghZozhVtmoQ/tasks/CBa6IbLmQJqYgoswRn-hiw/runs/0/logs/public%2Flogs%2Flive.log#L3411

<!-- 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/21918)
<!-- Reviewable:end -->
2018-10-11 14:06:04 -04:00
Fernando Jiménez Moreno
afb824e09c Regenerate WebAudio WPTs expectations 2018-10-11 19:33:17 +02:00
Fernando Jiménez Moreno
52d898df3f Add test to check that AudioBuffers can be reused between AudioBufferSourceNodes 2018-10-11 19:27:22 +02:00
Fernando Jiménez Moreno
091ad49d68 Allow reusing AudioBuffers 2018-10-11 19:27:21 +02:00
Simon Sapin
f0d8e8af49 Reduce log spam when running sdkmanager 2018-10-11 19:11:32 +02:00
Simon Sapin
60eff32c9b Taskcluster: cache ~/.gradle
This is where are kept files whose downloads sometimes fail, so downloading less often will reduce the impact of those failures.

```
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.1.3/gradle-3.1.3.pom'.
   > Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.1.3/gradle-3.1.3.pom'.
      > Read timed out
```

https://tools.taskcluster.net/groups/PGuIkH5QQmqghZozhVtmoQ/tasks/CBa6IbLmQJqYgoswRn-hiw/runs/0/logs/public%2Flogs%2Flive.log#L3411
2018-10-11 18:54:31 +02:00
Simon Sapin
960cb50ffd Taskcluster: use servo-* cache names 2018-10-11 18:31:37 +02:00
Simon Pieters
806db5e47b Update test expectations 2018-10-11 18:19:06 +02:00
Manish Goregaokar
3c6e99498c Update servo-media 2018-10-11 09:01:38 -07:00
bors-servo
61fe737885
Auto merge of #21904 - Manishearth:gst-readme, r=jdm
Remove gst-plugins-ugly dep from README

We don't use it and shouldn't be using it because of the license

r? @jdm

<!-- 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/21904)
<!-- Reviewable:end -->
2018-10-11 10:18:13 -04:00
Simon Sapin
6c82c471c5 Add --accept-all-licences to ./mach bootstrap-android 2018-10-11 16:08:41 +02:00
Anthony Ramine
bb2101f540 Simplify ctx.drawImage a bit
There is no need to swap between RGBA and BGRA twice.
2018-10-11 15:46:42 +02:00
Simon Sapin
89e1878bd6 Add --build and --emulator-x86 to ./mach bootstrap-android
This allows not downloading dependencies that are not needed for a praticular task.
2018-10-11 15:24:57 +02:00
bors-servo
ddcb72f750
Auto merge of #21906 - Manishearth:minor-webaudio-fixes, r=ferjm
Minor WebAudio fixes

Stuff I discovered whilst working on https://github.com/servo/media/pull/148

r? @ferjm

<!-- 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/21906)
<!-- Reviewable:end -->
2018-10-11 08:46:18 -04:00
bors-servo
597f7c1cc6
Auto merge of #21905 - servo:log-spam, r=jdm
Reduce log spam for large downloads made from mach

Printing the same line again is a no-op in an actual terminal, but Taskcluster’s log viewer shows each such line separately.

<!-- 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/21905)
<!-- Reviewable:end -->
2018-10-11 06:54:38 -04:00
bors-servo
ae0a5a8ead
Auto merge of #21879 - chansuke:add_element_event_taskforce, r=ferjm
Add task source for media element

<!-- 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
- [x] These changes fix #21612 .
- [x] These changes do not require tests because the existing test should cover this code.

<!-- 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/21879)
<!-- Reviewable:end -->
2018-10-11 03:36:08 -04:00
bors-servo
35bf180dcb
Auto merge of #21907 - servo-wpt-sync:wpt_update_10-10-2018, r=jdm
Sync WPT with upstream (10-10-2018)

Automated downstream sync of changes from upstream as of 10-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/21907)
<!-- Reviewable:end -->
2018-10-10 23:33:10 -04:00
WPT Sync Bot
b33912a5ce Update web-platform-tests to revision 2c89bbecfab9a69190906abd7610c3bc62303dd4 2018-10-10 23:13:06 -04:00
Manish Goregaokar
600f997a51 Increase webaudio sample rate threshold to match firefox 2018-10-10 17:32:12 -07:00
Manish Goregaokar
ceb2cd2279 Handle case when OfflineAudioContext doesn't receive all the buffers 2018-10-10 16:29:43 -07:00
bors-servo
48bb94ded8
Auto merge of #21902 - ferjm:windows.installer.locate.gst, r=jdm
Windows installer: set GStreamer installation path based on registry …

…search

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #21839

<!-- 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/21902)
<!-- Reviewable:end -->
2018-10-10 19:29:22 -04:00
Simon Sapin
e49fc3994c Reduce log spam for large downloads made from mach
Printing the same line again is a no-op on an actual terminal, but Taskcluster’s log viewer shows each such line separately.
2018-10-11 00:07:36 +02:00
bors-servo
304e09732e
Auto merge of #21594 - gterzian:try_to_fix_travis, r=jdm
Try to fix travis

<!-- 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: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #21592 (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/21594)
<!-- Reviewable:end -->
2018-10-10 17:42:37 -04:00
Manish Goregaokar
75d94c2a06 Remove gst-plugins-ugly dep from README
We don't use it and shouldn't be using it because of the license
2018-10-10 12:14:30 -07:00
bors-servo
900a81d380
Auto merge of #21799 - codehag:bug_1172897_rename_tab_actor, r=jdm
Bug 1172897 - Rename Tab Actor to BrowsingContextActor

As part of [Bug 1172987](https://bugzilla.mozilla.org/show_bug.cgi?id=1172897) we renamed TabActor, as the actor does not represent tabs (as in a browser tab), it instead represents a browsing context as defined by the the [HTML standard](https://html.spec.whatwg.org/multipage/browsers.html#windows). In a later PR I will mirror the structure we have on devtools to have a targets folder, which contains all target types. At the moment it looks like servo only represents workers and browsing contexts.

<!-- 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: -->
- [ ] `./mach build -d` does not report any errors
Unfortunately, I am unable to build due to #21792 -- I will try to find a linux machine to build on
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix Bugzilla [Bug 1172987](https://bugzilla.mozilla.org/show_bug.cgi?id=1172897).

<!-- Either: -->
- [x] These changes do not require tests because this is a renaming and shouldn't impact tests as far as I can tell

<!-- 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/21799)
<!-- Reviewable:end -->
2018-10-10 15:08:21 -04:00
Fernando Jimenez Moreno
593f69c348 Windows installer: set GStreamer installation path based on registry search 2018-10-10 15:35:06 +02:00
chansuke
7b3cf27c69 Add task source for media element 2018-10-10 22:15:37 +09:00
bors-servo
78327fcba5
Auto merge of #21863 - servo:tc-windows, r=Manishearth
Build on and for Windows on Taskcluster CI

I’ve configured a `servo-win2016` Taskcluster worker type and built an AMI for it. The docs and scripts for this are in `etc/taskcluster/windows` in this PR. They don’t strictly need to be in this repository, but it’s as good a place as any.

This PR also adds a new Windows task similar to Buildbot’s `windows-msvc-dev` job. Like the other tasks triggered on `github-push` events (in particular pushes by Homu to the `auto`), it needs to succeed for a PR to be merged.

CC https://github.com/servo/saltfs/issues/559

<!-- 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/21863)
<!-- Reviewable:end -->
2018-10-10 04:31:42 -04:00
bors-servo
7ca426fa14
Auto merge of #21901 - servo-wpt-sync:wpt_update_09-10-2018, r=jdm
Sync WPT with upstream (09-10-2018)

Automated downstream sync of changes from upstream as of 09-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/21901)
<!-- Reviewable:end -->
2018-10-09 23:19:47 -04:00
WPT Sync Bot
3eaee747ed Update web-platform-tests to revision e15b5ebba7465e09bcda2962f6758cddcdcfa248 2018-10-09 22:45:22 -04:00
bors-servo
78e0c0e155
Auto merge of #21895 - Manishearth:gst-mac, r=jdm
Revert "Disable event_timeupdate_noautoplay test on mac"

Hopefully the builders now have the right gstreamer things.

From https://github.com/servo/servo/pull/21543 , needs https://github.com/servo/saltfs/pull/898

<!-- 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/21895)
<!-- Reviewable:end -->
2018-10-09 21:27:56 -04:00
bors-servo
7a88a2e28a
Auto merge of #21877 - servo:webgl, r=jdm
Improve some byte-swap and premultiply operations

<!-- 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/21877)
<!-- Reviewable:end -->
2018-10-09 20:15:40 -04:00
Josh Matthews
8a2eec2714 Use upstream font weight values for windows. 2018-10-09 18:23:20 -04:00
Josh Matthews
171469c27c Update webrender to 923ee495bd9b0fda8a4a94c5a6cf42e2f0548731. 2018-10-09 18:23:19 -04:00
Pyfisch
d13172845c Update Webrender
New version is
9156a4465f6ad715a0206cdd9a7e9a6f0385fbd6
2018-10-09 18:23:18 -04:00
bors-servo
68e55ead42
Auto merge of #21897 - emilio:gecko-sync, r=emilio
style: Sync changes from mozilla-central.

See each individual commit for details.

<!-- 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/21897)
<!-- Reviewable:end -->
2018-10-09 18:07:26 -04:00
Emilio Cobos Álvarez
f287691f2e
style: fix tidy issues and update test expectations. 2018-10-09 22:01:38 +02:00