Commit graph

38669 commits

Author SHA1 Message Date
Paul Rouget
d339d1f30b Implement window.alert on Android 2019-08-27 08:09:03 +02:00
bors-servo
245ce017e3
Auto merge of #24051 - TheGoddessInari:fix_windows, r=jdm
build_commands: Make Visual Studio detection not assume environment

<!-- Please describe your changes on the following line: -->
Ever since 681d7b165a, servo breaks building if you're not running Visual Studio 2015 or 2017 in the default location on C:.

I rewrote the PR to not assume environment, similarly to #23098.

We need to stop meeting like this. 🦊

---
<!-- 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
- [ ] These changes do not require tests because 681d7b165a didn't. Realistically, there should be environment tests for Visual Studio 2015, 2017, and 2019, but I won't have the time for it soon.

<!-- 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/24051)
<!-- Reviewable:end -->
2019-08-27 01:28:26 -04:00
Paul Rouget
4635f81647 Download platform-tools even for non-emulator builds 2019-08-27 06:53:31 +02:00
bors-servo
dac74a1826
Auto merge of #24027 - asajeffrey:magicleap-certup, r=jdm
Updated magicleap signing cert

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

Our signing cert had expired, so I generated and uploaded a new 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
- [x] These changes do not require tests because we don't test CI infra

<!-- 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/24027)
<!-- Reviewable:end -->
2019-08-26 23:25:11 -04:00
bors-servo
b2a7fc9046
Auto merge of #23996 - georgeroman:implement_pointer_move_wd_action, r=jdm
Implement pointerMove webdriver action

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

<!-- 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/23996)
<!-- Reviewable:end -->
2019-08-26 22:17:52 -04:00
Josh Matthews
c0ff30b71f Enable GStreamer on Windows. 2019-08-26 17:41:22 -04:00
bors-servo
2d9e170157
Auto merge of #24046 - Eijebong:fix-open-for-spec, r=jdm
Update Window::open and document::open parameters to match the spec

Fixes #24012

<!-- 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/24046)
<!-- Reviewable:end -->
2019-08-26 16:19:53 -04:00
TheGoddessInari
789cc5a2e8
Don't assume Visual Studio environment in python. 2019-08-26 11:30:15 -07:00
Alan Jeffrey
7d1d58bbe1 Updated magicleap signing cert 2019-08-26 09:55:57 -05:00
bors-servo
a3e33d6388
Auto merge of #24056 - servo-wpt-sync:wpt_update_26-08-2019, r=servo-wpt-sync
Sync WPT with upstream (26-08-2019)

Automated downstream sync of changes from upstream as of 26-08-2019.
[no-wpt-sync]
2019-08-26 10:37:37 -04:00
WPT Sync Bot
0233eb3d32 Update web-platform-tests to revision 94a0b420301fc9d7da16097083ecdce927e22343 2019-08-26 14:37:21 +00:00
Mátyás Mustoha
736f6859b0 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.
2019-08-26 15:12:43 +02:00
Simon Sapin
e18846ae94 Upgrade to rustc 1.39.0-nightly (521d78407 2019-08-25) 2019-08-26 14:22:48 +02:00
bors-servo
66e5ad0cb8
Auto merge of #24049 - servo-wpt-sync:wpt_update_25-08-2019, r=servo-wpt-sync
Sync WPT with upstream (25-08-2019)

Automated downstream sync of changes from upstream as of 25-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/24049)
<!-- Reviewable:end -->
2019-08-25 23:09:41 -04:00
WPT Sync Bot
4561003c7e Update web-platform-tests to revision 6933aa6626e5dbbe66a5c2b1835b511a6438a632 2019-08-25 15:02:15 +00:00
pylbrecht
89b8bd516f Refactor Path::contains_point() using any() 2019-08-25 16:43:29 +02:00
pylbrecht
ee7f3dbc46 Implement PathBuilder::get_current_point() 2019-08-25 16:19:33 +02:00
pylbrecht
2a0be451ae Implement Path::contains_point() 2019-08-25 15:50:04 +02:00
bors-servo
b5e1b7dc48
Auto merge of #24045 - servo-wpt-sync:wpt_update_24-08-2019, r=servo-wpt-sync
Sync WPT with upstream (24-08-2019)

Automated downstream sync of changes from upstream as of 24-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/24045)
<!-- Reviewable:end -->
2019-08-24 15:18:06 -04:00
bors-servo
e6fe8c63d4
Auto merge of #24043 - servo:rustup, r=jdm
Upgrade to rustc 1.39.0-nightly (9eae1fc0e 2019-08-23)

<!-- 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/24043)
<!-- Reviewable:end -->
2019-08-24 12:30:16 -04:00
Bastien Orivel
ec6b478775 Update Window::open and document::open parameters to match the spec
Fixes #24012
2019-08-24 17:22:44 +02:00
WPT Sync Bot
57ea61dc86 Update web-platform-tests to revision 3bac98b37f29ec287e115fcecff566eb081131a8 2019-08-24 14:06:09 +00:00
bors-servo
dfabc33e06
Auto merge of #24040 - asajeffrey:magicleap-gstreamerup, r=jdm
Updated magicleap gtstreamer tarball

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

Updates the gstreamer library on magicleap.

---
<!-- 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 don't test on devices

<!-- 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/24040)
<!-- Reviewable:end -->
2019-08-24 08:44:03 -04:00
Simon Sapin
439ee70bd1 Run rustfmt 2019-08-24 14:11:11 +02:00
Simon Sapin
714a5b4248 Upgrade to rustc 1.39.0-nightly (9eae1fc0e 2019-08-23) 2019-08-24 13:41:58 +02:00
bors-servo
6ff2524781
Auto merge of #24041 - asajeffrey:mach-iswindows-isfunction, r=jdm
In mach, add arguments to bare uses of is_windows

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

Replace bare uses of `is_windows` by `is_windows()` in mach.

---
<!-- 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 don't test infra

<!-- 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/24041)
<!-- Reviewable:end -->
2019-08-24 02:42:54 -04:00
bors-servo
2fb324e174
Auto merge of #24039 - servo-wpt-sync:wpt_update_23-08-2019, r=servo-wpt-sync
Sync WPT with upstream (23-08-2019)

Automated downstream sync of changes from upstream as of 23-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/24039)
<!-- Reviewable:end -->
2019-08-23 19:22:15 -04:00
bors-servo
6680f8aae0
Auto merge of #24030 - paulrouget:resize, r=jdm
Resize support

Depends on #24029

<!-- 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/24030)
<!-- Reviewable:end -->
2019-08-23 17:20:55 -04:00
Alan Jeffrey
1c661be721 In mach, add arguments to bare uses of is_windows 2019-08-23 11:54:46 -05:00
Alan Jeffrey
aae32cd6d4 Updated gtstreamer tarball 2019-08-23 11:49:26 -05:00
bors-servo
f21d116069
Auto merge of #24018 - Manishearth:wherever-you-are, r=asajeffrey
Allow setting near/far clip planes

needs https://github.com/servo/webxr/pull/41

r? @asajeffrey

<!-- 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/24018)
<!-- Reviewable:end -->
2019-08-23 11:45:38 -04:00
Manish Goregaokar
0d79b2beaf Allow setting near/far clip planes 2019-08-23 08:01:21 -07:00
WPT Sync Bot
482fda3a78 Update web-platform-tests to revision 33c263fb308d1c3f6ac6d2590d7292317262819d 2019-08-23 13:55:23 +00:00
bors-servo
5623ae468c
Auto merge of #23984 - servo:rustup, r=jdm
Upgrade to rustc 1.39.0-nightly (f7af19c27 2019-08-15)

<!-- 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/23984)
<!-- Reviewable:end -->
2019-08-23 08:14:05 -04:00
Paul Rouget
b2c56940eb Resize Servo on surface resize 2019-08-23 11:10:09 +02:00
Paul Rouget
10f86935b8 Support hidpi 2019-08-23 11:08:46 +02:00
Josh Matthews
203577cc82 Update mozjs to support new UWP rustc targets. 2019-08-23 08:23:21 +02:00
Simon Sapin
2130e6966a Android glue: don’t zero-init non-null function pointers
Fixes:

```rust
error: the type `android_injected_glue::ffi::android_app` does not permit zero-initialization
   --> ports/libsimpleservo/jniapi/src/lib.rs:511:46
    |
511 |     let mut app: ffi::android_app = unsafe { std::mem::zeroed() };
    |                                              ^^^^^^^^^^^^^^^^^^
    |                                              |
    |                                              this code causes undefined behavior when executed
    |                                              help: use `MaybeUninit<T>` instead
    |
    = note: `-D invalid-value` implied by `-D warnings`
note: Function pointers must be non-null (in this struct field)
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/android_injected_glue-0.2.3/src/ffi.rs:23:5
    |
23  |     pub onAppCmd: extern fn(*mut android_app, i32),
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
```
2019-08-23 08:23:21 +02:00
Simon Sapin
98e4a53b72 Upgrade to rustc 1.39.0-nightly (f7af19c27 2019-08-15) 2019-08-23 08:23:21 +02:00
bors-servo
5bf00c07c2
Auto merge of #24013 - paulrouget:gestureCapture, r=jdm
[hololens] Gesture capture

I can't reproduce #24010 but I think this should fix it.

Fix #24010

Depends on #24008

<!-- 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/24013)
<!-- Reviewable:end -->
2019-08-23 01:06:45 -04:00
bors-servo
8672ab5447
Auto merge of #23999 - paulrouget:missingCMethods, r=jdm
Missing C methods

Depends on #23983

Fix #23969

<!-- 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/23999)
<!-- Reviewable:end -->
2019-08-22 22:59:55 -04:00
bors-servo
cacd4ed4e2
Auto merge of #23997 - collares:audiobuffersourcenode, r=ferjm
Implement missing functionality of AudioBufferSourceNode

<!-- Please describe your changes on the following line: -->
This is a tiny PR to support [Media #293](https://github.com/servo/media/pull/293). Last time I ran WPT there was only one failing AudioBufferSourceNode test (which I will debug later this week). Once I rebased, however, I started getting unrelated servo-media build failures:

```
error[E0599]: no method named `shutdown_audio_context` found for type `std::sync::Arc<servo_media::ServoMedia>` in the current scope
   --> components/script/dom/baseaudiocontext.rs:566:14

error[E0599]: no method named `shutdown_player` found for type `std::sync::Arc<servo_media::ServoMedia>` in the current scope
    --> components/script/dom/htmlmediaelement.rs:1866:18
```

I wanted to get this PR up so https://github.com/servo/media/pull/293 can be tested. When the unrelated build failures are fixed, I will run `./mach update-wpt` and update this 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` only reports unrelated errors (broken servo/media master?)
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #22363

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

<!-- 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/23997)
<!-- Reviewable:end -->
2019-08-22 20:57:49 -04:00
bors-servo
ee9b3b3864
Auto merge of #23961 - angelortiz1007:servo-issue, r=jdm
Added support to download nuget and added python code to automate the…

… x64 and arm64 mach build -r/-d --uwp build process.

<!-- Please describe your changes on the following line: -->
Modified/added python code to:
1. Download nuget which is required for building support\HoloLens
2. added python code to perform a nuget install/restore ServoApp.sln which causes the Angle libraries to be installed so that mach build will succeed.
3. added python code to perform a MsBuild of the support\HoloLens\ServoApp.sln solution so that mach build will build ServoApp and create a ServoApp .appx install file.

Note: The Msbuild path must be present otherwise the msbuild command will fail.

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

<!-- Either: -->
- [x] There are tests for these changes OR
- [x] These changes do not require tests because by performing python mach build -r/-d --uwp ---win-arm64 or mach build -r/-d --uwp

<!-- 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/23961)
<!-- Reviewable:end -->
2019-08-22 16:54:13 -04:00
bors-servo
52b63b7088
Auto merge of #23998 - paulrouget:rmForget, r=jdm
Do not leak the CAPI strings

Depends on #23983

I haven't remove the mem::forget here: 6528c0d9b7/ports/libsimpleservo/capi/src/lib.rs (L228)

What would be the right approach in that specific case?

<!-- 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/23998)
<!-- Reviewable:end -->
2019-08-22 07:51:22 -04:00
George Roman
f064883e07 Implement pointerMove webdriver action 2019-08-22 10:11:13 +03:00
Josh Matthews
57adaaaf18 Remove explicit nuget setup in CI. 2019-08-21 22:55:18 -07:00
bors-servo
d8a1c1e02e
Auto merge of #23936 - Eijebong:raqote, r=jdm
Implement the raqote backend

Rebased version of #23601 with some more stuff implemented. This passes some (not many) wpt tests.

<!-- 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/23936)
<!-- Reviewable:end -->
2019-08-22 01:45:40 -04:00
Paul Rouget
b642ff2057 Implement missing C callbacks 2019-08-22 07:43:12 +02:00
bors-servo
2a9b2fe027
Auto merge of #23947 - georgeroman:finish_json_clone_functionality, r=jdm
Finish the JSON clone algorithm for WebDriver

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

<!-- 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/23947)
<!-- Reviewable:end -->
2019-08-21 20:56:24 -04:00
Josh Matthews
c98878f833 Downgrade UWP app target platform. 2019-08-21 20:28:46 -04:00