Commit graph

38669 commits

Author SHA1 Message Date
Josh Matthews
297c52a341 Update backtrace dependency. 2019-09-04 10:25:30 -04:00
Gregory Terzian
6d1136a37d performance: clear and disable buffer on pipeline exit
use existing buffer max size
2019-09-04 13:38:37 +08:00
bors-servo
dc3b0b7c9f
Auto merge of #24128 - asajeffrey:webgl-extensions-fallback, r=Manishearth
Fallback to old extensions API if NUM_EXTENSIONS errors

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

Fixes a panic querying extensions in WebGL 1.

---
<!-- 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 #21993
- [x] These changes do not require tests because it fixes a panic

<!-- 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/24128)
<!-- Reviewable:end -->
2019-09-03 20:50:47 -04:00
Alan Jeffrey
1c174900e9 Updated performance userscript for new perf API 2019-09-03 17:37:28 -05:00
bors-servo
618d00be18
Auto merge of #24127 - servo-wpt-sync:wpt_update_03-09-2019, r=servo-wpt-sync
Sync WPT with upstream (03-09-2019)

Automated downstream sync of changes from upstream as of 03-09-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/24127)
<!-- Reviewable:end -->
2019-09-03 13:38:47 -04:00
Alan Jeffrey
1e3b08aae8 Fallback to old extensions API if NUM_EXTENSIONS errors 2019-09-03 11:03:45 -05:00
WPT Sync Bot
33079866c1 Update web-platform-tests to revision 1ac959f3e6198767fecf67740d3e1687b184265f 2019-09-03 14:35:19 +00:00
bors-servo
4f4e219e54
Auto merge of #24044 - Eijebong:img-element-spec-update, r=jdm
Remove <img>'s historical progress events

Fixes #24011

<!-- 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/24044)
<!-- Reviewable:end -->
2019-09-02 21:29:14 -04:00
bors-servo
dd5dda676a
Auto merge of #24124 - servo-wpt-sync:wpt_update_02-09-2019, r=servo-wpt-sync
Sync WPT with upstream (02-09-2019)

Automated downstream sync of changes from upstream as of 02-09-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/24124)
<!-- Reviewable:end -->
2019-09-02 13:23:38 -04:00
bors-servo
18f59fc16f
Auto merge of #24048 - pylbrecht:raqote, r=jrmuizel
Implement raqote backend for canvas 2D rendering

<!-- Please describe your changes on the following line: -->
This is a follow-up of #23936.

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

<!-- Either: -->

<!-- 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/24048)
<!-- Reviewable:end -->
2019-09-02 12:32:23 -04:00
WPT Sync Bot
0eedd13bef Update web-platform-tests to revision 9064a51d4e4c177bf4b629031c3ac8010c910132 2019-09-02 14:07:51 +00:00
bors-servo
026dc7485f
Auto merge of #24122 - Eijebong:rayon, r=jdm
Update rayon to dedupe crossbeam-deque

<!-- 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/24122)
<!-- Reviewable:end -->
2019-09-02 00:38:51 -04:00
bors-servo
ae6d88f667
Auto merge of #24097 - saschanaz:default-tojson, r=Manishearth
Add [Default] toJSON() to performance interfaces

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

Enable `[Default] toJSON()` lines that were previously commented out.

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

<!-- 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/24097)
<!-- Reviewable:end -->
2019-09-01 21:27:01 -04:00
pylbrecht
d24568218b Don't use catch all in match 2019-09-01 19:26:04 +02:00
pylbrecht
47a6129332 Use raqote's implementation of Path::contains_point() 2019-09-01 19:22:20 +02:00
Bastien Orivel
b30a326b77 Update rayon to dedupe crossbeam-deque 2019-09-01 18:08:01 +02:00
Bastien Orivel
84898bc370 Update wpt test to match the new spec where loadend isn't anymore 2019-09-01 16:36:11 +02:00
Kagami Sascha Rosylight
5695ee94a5 Add [Default] toJSON() to performance interfaces 2019-09-01 23:23:57 +09:00
Bastien Orivel
eb9c9fbb95 Remove <img>'s historical progress events
Fixes #24011
2019-09-01 16:10:11 +02:00
George Roman
32f7254883 Implement ElementClick wd command 2019-08-31 10:14:40 +03:00
bors-servo
79e30e13fa
Auto merge of #24120 - jdm:win-promise-crash, r=asajeffrey
Work around crash on Windows when returning JS::Value by value.

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #24061
- [x] These changes do not require tests because no tests on Windows, sadly.

<!-- 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/24120)
<!-- Reviewable:end -->
2019-08-31 00:49:01 -04:00
Josh Matthews
421001ae1a Work around crash on Windows when returning JS::Value by value. 2019-08-30 17:29:10 -07:00
bors-servo
51222397b0
Auto merge of #24113 - servo-wpt-sync:wpt_update_30-08-2019, r=servo-wpt-sync
Sync WPT with upstream (30-08-2019)

Automated downstream sync of changes from upstream as of 30-08-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/24113)
<!-- Reviewable:end -->
2019-08-30 13:04:44 -04:00
WPT Sync Bot
eed68f662b Update web-platform-tests to revision fb898b46adaf656c9807ed0b8adb39d84162cb98 2019-08-30 14:43:51 +00:00
bors-servo
6a4e6174a7
Auto merge of #24105 - jdm:netfix, r=eijebong
Update hyper to 0.12.33.

This improves Servo's ability to connect to some pages from problematic networks like the Mozilla SF office.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #24104
- [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/24105)
<!-- Reviewable:end -->
2019-08-29 17:54:59 -04:00
Josh Matthews
0d88b04f32 Update hyper to 0.12.33. 2019-08-29 14:51:01 -07:00
bors-servo
deb9f7e540
Auto merge of #24099 - kanaka:fix-gst-top-dir, r=ferjm
Call gstreamer_root with top_dir string, not func.

Commit 72e28dffcd introduced a build regression on Linux when resolving the in-tree gstreamer libs.

The error:

```
$ ./mach build --release
...
The details of the failure are as follows:

AttributeError: 'function' object has no attribute 'endswith'

  File "/data/joelm/personal/UTA/dissertation/servo/servo-master.git/python/servo/build_commands.py", line 237, in build
    env = self.build_env(target=target, is_build=True)
  File "/data/joelm/personal/UTA/dissertation/servo/servo-master.git/python/servo/command_base.py", line 646, in build_env
    if self.needs_gstreamer_env(target or host_triple(), env):
  File "/data/joelm/personal/UTA/dissertation/servo/servo-master.git/python/servo/command_base.py", line 574, in needs_gstreamer_env
    if path.isdir(gstreamer_root(effective_target, env, self.get_top_dir)):
  File "/data/joelm/personal/UTA/dissertation/servo/servo-master.git/python/servo/command_base.py", line 257, in gstreamer_root
    return path.join(topdir, "support", "linux", "gstreamer", "gst")
  File "/usr/lib/python2.7/posixpath.py", line 70, in join
    elif path == '' or path.endswith('/'):
```

The problem is that get_top_dir is being passed as a function to
gstreamer_root in a couple of places instead of being invoked first.

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because: it is early in a build script and outside the scope of tests.

<!-- 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/24099)
<!-- Reviewable:end -->
2019-08-29 13:36:53 -04:00
Joel Martin
1291d52f3f Call gstreamer_root with top_dir string, not func.
Commit 72e28dffcd introduced a build
regression on Linux when resolving the in-tree gstreamer libs.

The error:

------------------------------------
$ ./mach build --release
...
The details of the failure are as follows:

AttributeError: 'function' object has no attribute 'endswith'

  File "/data/joelm/personal/UTA/dissertation/servo/servo-master.git/python/servo/build_commands.py", line 237, in build
    env = self.build_env(target=target, is_build=True)
  File "/data/joelm/personal/UTA/dissertation/servo/servo-master.git/python/servo/command_base.py", line 646, in build_env
    if self.needs_gstreamer_env(target or host_triple(), env):
  File "/data/joelm/personal/UTA/dissertation/servo/servo-master.git/python/servo/command_base.py", line 574, in needs_gstreamer_env
    if path.isdir(gstreamer_root(effective_target, env, self.get_top_dir)):
  File "/data/joelm/personal/UTA/dissertation/servo/servo-master.git/python/servo/command_base.py", line 257, in gstreamer_root
    return path.join(topdir, "support", "linux", "gstreamer", "gst")
  File "/usr/lib/python2.7/posixpath.py", line 70, in join
    elif path == '' or path.endswith('/'):
------------------------------------

The problem is that get_top_dir is being passed as a function to
gstreamer_root in a couple of places instead of being invoked first.
2019-08-29 09:29:55 -05:00
pylbrecht
7c81d20869 Implement create_gradient_stops() 2019-08-29 14:17:03 +02:00
bors-servo
39bd45529d
Auto merge of #24095 - paulrouget:chromeless, r=jdm
Switch to chromeless mode when app opens from a servo:// link

Fix #24077

There's an issue where, in chromeless mode, when clicking a link in Servo, Edge opens the link (as expected) but not in a new tab, in a new window.

<!-- 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/24095)
<!-- Reviewable:end -->
2019-08-29 03:01:02 -04:00
Paul Rouget
5fe9a6223d Switch to chromeless mode when app opens from a servo:// link 2019-08-29 06:53:53 +02:00
Alan Jeffrey
a0cb841d2a Create depth and stencil attachments for XRWebGLLayer 2019-08-28 19:20:15 -05:00
Alan Jeffrey
b6cf6c0450 Better error detection when creating an XRWebGLLayer 2019-08-28 19:19:31 -05:00
bors-servo
6297fa582a
Auto merge of #24081 - jdm:update-webxr, r=jdm
Update webxr for immersive-vr support.

<!-- 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/24081)
<!-- Reviewable:end -->
2019-08-28 15:49:07 -04:00
Josh Matthews
69df0c38e9 Update webxr for immersive-vr support. 2019-08-28 09:57:09 -07:00
bors-servo
2a8cd0f006
Auto merge of #24078 - servo-wpt-sync:wpt_update_28-08-2019, r=servo-wpt-sync
Sync WPT with upstream (28-08-2019)

Automated downstream sync of changes from upstream as of 28-08-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/24078)
<!-- Reviewable:end -->
2019-08-28 12:38:43 -04:00
WPT Sync Bot
d18b651358 Update web-platform-tests to revision d75cd4df6722acef7224eb6edcdc52b125680dad 2019-08-28 15:09:15 +00:00
bors-servo
0636f51c14
Auto merge of #24076 - jdm:update-mozjs, r=jdm
Update mozjs for VS 2017 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/24076)
<!-- Reviewable:end -->
2019-08-28 10:43:27 -04:00
Josh Matthews
9c6c7f0fa6 Update mozjs for VS 2017 changes. 2019-08-28 07:41:24 -07:00
bors-servo
3ade7b680d
Auto merge of #24072 - gterzian:ensure_docs_drop, r=asajeffrey
Ensure documents drop when a pipeline exits

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

minimalist companion/alternative to https://github.com/servo/servo/pull/24047
---
<!-- 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/24072)
<!-- Reviewable:end -->
2019-08-28 08:55:17 -04:00
bors-servo
1af15054e7
Auto merge of #24067 - servo-wpt-sync:wpt_update_27-08-2019, r=servo-wpt-sync
Sync WPT with upstream (27-08-2019)

Automated downstream sync of changes from upstream as of 27-08-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/24067)
<!-- Reviewable:end -->
2019-08-28 02:21:16 -04:00
bors-servo
ab95925327
Auto merge of #24065 - paulrouget:androidAlert, r=jdm
Implement window.alert on Android

Makes it easier to debug our webxr demos.

<!-- 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/24065)
<!-- Reviewable:end -->
2019-08-27 23:36:23 -04:00
bors-servo
87f328a9a2
Auto merge of #24063 - paulrouget:missingAdb, r=jdm
Download platform-tools even for non-emulator builds

`mach install --android` fails because adb is missing.

<!-- 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/24063)
<!-- Reviewable:end -->
2019-08-27 21:36:35 -04:00
bors-servo
9a4f90bf0c
Auto merge of #24058 - Eijebong:ipc-channel, r=jdm
Update ipc-channel and related dependencies

<!-- 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/24058)
<!-- Reviewable:end -->
2019-08-27 18:40:40 -04:00
Gregory Terzian
344684a2f2 ensure documents drop when a pipeline exits 2019-08-28 00:16:22 +02:00
Bastien Orivel
92161ecfbc Update ipc-channel and related dependencies 2019-08-27 23:44:04 +02:00
bors-servo
1fbadc6cc7
Auto merge of #24055 - mmatyas:fix_webgl2_exts, r=jdm
Fix extension querying when using WebGL2

This patch fixes a crash caused by using a deprecated GL call. Starting with OpenGL 3 (used by WebGL2), the glGetString(GL_EXTENSIONS) call is deprecated, and some drivers produce GL_INVALID_ENUM error. Querying can be done by checking the number of extensions first, then getting the extensions one by one.

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests (I think) because it depends on the video driver

<!-- 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/24055)
<!-- Reviewable:end -->
2019-08-27 17:16:04 -04:00
WPT Sync Bot
3a48586f85 Update web-platform-tests to revision f283c90ff58ce6b758525ba9ef8f7885d466730f 2019-08-27 14:28:42 +00:00
bors-servo
9fe3c4fc0f
Auto merge of #24004 - servo:win-gstreamer, r=ferjm
Enable GStreamer on Windows.

I have verified that desktop and emulator UWP builds work with this set of DLLs.

---
- [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 no tests for UWP

<!-- 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/24004)
<!-- Reviewable:end -->
2019-08-27 10:11:37 -04:00
bors-servo
f79ec15d17
Auto merge of #24054 - servo:rustup, r=jdm
Upgrade to rustc 1.39.0-nightly (521d78407 2019-08-25)

<!-- 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/24054)
<!-- Reviewable:end -->
2019-08-27 07:26:57 -04:00