Commit graph

38162 commits

Author SHA1 Message Date
bors-servo
d7433c9a65
Auto merge of #23853 - ferjm:media.update, r=ceyusa
Fix HTMLMediaElement seek race condition

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

This depends on https://github.com/servo/media/pull/289 and it's blocked by the servo-media update issue mentioned [here](https://github.com/servo/servo/pull/23842#issuecomment-515007529)

<!-- 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/23853)
<!-- Reviewable:end -->
2019-08-14 02:03:52 -04:00
bors-servo
3aa55904d1
Auto merge of #23956 - nox:trim-layout, r=Manishearth
Remove more stuff from layout_2020

<!-- 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/23956)
<!-- Reviewable:end -->
2019-08-13 20:38:38 -04:00
Anthony Ramine
053e361e2f Remove more stuff from layout_2020 2019-08-13 13:45:05 +02:00
Fernando Jiménez Moreno
1fbb3b39b0 Temporarily ignore duplicated url and deps crates 2019-08-13 09:43:06 +02:00
bors-servo
9b24798390
Auto merge of #23945 - Manishearth:hl-xr-immersive, r=asajeffrey
Immersive WebXR on Hololens

This PR adds support to the OpenXR backend (https://github.com/servo/webxr/pull/37) for Hololens. We support _entering_ immersive mode, but currently do nothing in immersive mode (https://github.com/servo/webxr/issues/38, applying https://github.com/servo/webxr/tree/d3d11-draw should render some red).

This should be ready to land as-is aside from its dependency on https://github.com/servo/servo/pull/23922. It can be tested on https://manishearth.github.io/webgl-to-webxr/webxr-ar.html (make sure to click through the alerts).

This is based on https://github.com/servo/servo/pull/23922 .

This builds off of @paulrouget's work.

r? @jdm @paulrouget

<!-- 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/23945)
<!-- Reviewable:end -->
2019-08-13 00:38:57 -04:00
Manish Goregaokar
c879ce078d Use packaged OpenXR 2019-08-12 19:28:48 -07:00
Manish Goregaokar
acfe1ee0dd Add support for OpenXR hololens backend 2019-08-12 19:28:48 -07:00
Fernando Jiménez Moreno
9ad66b6866 Update servo-media 2019-08-12 16:16:30 +02:00
Fernando Jiménez Moreno
322062bb3f Fix HTMLMediaElement seek race condition 2019-08-12 15:45:13 +02:00
bors-servo
9b4b02275e
Auto merge of #23949 - servo-wpt-sync:wpt_update_11-08-2019, r=servo-wpt-sync
Sync WPT with upstream (11-08-2019)

Automated downstream sync of changes from upstream as of 11-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/23949)
<!-- Reviewable:end -->
2019-08-11 17:50:27 -04:00
bors-servo
4b4414099a
Auto merge of #23950 - Eijebong:dupes-are-bad-for-you, r=jdm
Update rand to 0.6

I changed the isaac random to always be the 32 bits one because the 64
bits version doesn't work with ReseedingRng as it requires the
generator's output to be u32 for some reasons.

The other main change is that the reseed method doesn't exist anymore
and now rand recreates a new generator when it needs to reseed so I had
to add a new method for when we don't want a generator to be reseeded.

Closes #23558

<!-- 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/23950)
<!-- Reviewable:end -->
2019-08-11 15:40:54 -04:00
Bastien Orivel
c693ef7025 Update rand to 0.6
I changed the isaac random to always be the 32 bits one because the 64
bits version doesn't work with ReseedingRng as it requires the
generator's output to be u32 for some reasons.

The other main change is that the reseed method doesn't exist anymore
and now rand recreates a new generator when it needs to reseed so I had
to add a new method for when we don't want a generator to be reseeded.

Closes #23558
2019-08-11 20:50:22 +02:00
WPT Sync Bot
add1a306e5 Update web-platform-tests to revision 2f08203a98291809cf67839232d45e68752dcb25 2019-08-11 14:55:16 +00:00
bors-servo
07627c72cf
Auto merge of #23938 - Eijebong:clear-image-path, r=jdm
Move the clear-100x50.png image to the right directory

Also removes an unused duplicate of that file.

All the references to that file are made through
`/images/clear-100x50.png`. Since it didn't exist until now, the tests
were showing an empty expected result which confused me a bit while
debugging canvas issues.

<!-- 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/23938)
<!-- Reviewable:end -->
2019-08-11 08:45:26 -04:00
Bastien Orivel
1bf9df9354 Move the clear-100x50.png image to the right directory
Also removes an unused duplicate of that file.

All the references to that file are made through
`/images/clear-100x50.png`. Since it didn't exist until now, the tests
were showing an empty expected result which confused me a bit while
debugging canvas issues.
2019-08-11 14:38:27 +02:00
bors-servo
59f9a3d370
Auto merge of #23946 - servo-wpt-sync:wpt_update_10-08-2019, r=servo-wpt-sync
Sync WPT with upstream (10-08-2019)

Automated downstream sync of changes from upstream as of 10-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/23946)
<!-- Reviewable:end -->
2019-08-10 17:04:28 -04:00
bors-servo
2af31be4ec
Auto merge of #23944 - Manishearth:hl-scroll, r=jdm
Fix scrolling on hololens

This got inverted in https://github.com/servo/servo/pull/23900 by accident, mostly because the old code had two ordering mistakes that cancel each other out.

r? @jdm @paulrouget

<!-- 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/23944)
<!-- Reviewable:end -->
2019-08-10 14:21:07 -04:00
bors-servo
b01a4d0e29
Auto merge of #23940 - servo:fix-layout-2020, r=emilio
Always send epochs to webrender in layout 2020

<!-- 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/23940)
<!-- Reviewable:end -->
2019-08-10 12:03:34 -04:00
WPT Sync Bot
a45a4f8e2b Update web-platform-tests to revision ebeb032b23de5abb7f9fd7fffcf471eaa6e2c154 2019-08-10 14:35:44 +00:00
bors-servo
79b456d84e
Auto merge of #23725 - georgeroman:support_returning_arrays_from_execute_script, r=jdm
Support for returning array-like types from the Execute(Async)Script wd command

<!-- 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/23725)
<!-- Reviewable:end -->
2019-08-10 10:28:07 -04:00
Anthony Ramine
6876245858 Always send epochs to webrender in layout 2020 2019-08-10 13:18:10 +02:00
George Roman
58f80f4ff3 Add support for returning array-like types from the Execute(Async)Script wd command 2019-08-10 12:39:10 +03:00
bors-servo
b3c0ed295f
Auto merge of #23922 - angelortiz1007:redir, r=jdm
Redirect stdout/stderr on windows

Added function redirect_stdout_stderr() to support stdout & stderr to be redirected to OutputDebugStringA().

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `23734` 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 #23734 (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes OR
Functionality was verified by adding logic in unsafe fn init().  By building and running ServoApp, If  redirect_stdout_stderr() failed, a warn!() message would be sent to the "output" window of VS2007 with the GetLastError() value.   If the function redirect_stdout_stderr() succeeded, the println!("Capi/lib.rs: init() function called redirect_stdout_stderr() successfully.\n") output would be seen in the "output" window of VS2007.

- [ ] 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/23922)
<!-- Reviewable:end -->
2019-08-09 23:35:11 -04:00
bors-servo
18c500ecc8
Auto merge of #23942 - asajeffrey:magicleap-lreup, r=jdm
Updated Servo2D to LRE v0.22.0

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

Updated the Servo landscape app to Lumnin Runtime Editor v 0.22.0.

This is a bit of a mess, because it contains auto-generated files, hand-edited files, and best of all, files which are both.

---
<!-- 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 have a way to test on magicleap

<!-- 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/23942)
<!-- Reviewable:end -->
2019-08-09 20:43:07 -04:00
Manish Goregaokar
8686e74c25 Fix scrolling on hololens 2019-08-09 16:53:23 -07:00
bors-servo
87d3c0ec00
Auto merge of #23941 - georgeroman:update_webdriver, r=jdm
Update webdriver

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

Updating `webdriver` raises the following tidy errors, which I'm not sure how to fix:
`` ./Cargo.lock:1: duplicate versions for package `mime` ``
`` ./Cargo.lock:1: duplicate versions for package `mime_guess` ``
`` ./Cargo.lock:1: duplicate versions for package `log` ``
`` ./Cargo.lock:1: Package multipart 0.16.1 depends on blocked package rand. ``
`` ./Cargo.lock:1: Package tungstenite 0.8.1 depends on blocked package rand. ``

---
<!-- 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/23941)
<!-- Reviewable:end -->
2019-08-09 18:32:28 -04:00
Alan Jeffrey
deb06ffcec Updated Servo2D to LRE v0.22.0 2019-08-09 15:02:53 -05:00
George Roman
8d0a7d61b4 Update webdriver 2019-08-09 22:40:14 +03:00
angelortiz1007
2bd2281853 Added support for stdout/stderr (ref issue# 23734) to be redirected to OutputDebugStringA(). 2019-08-09 14:09:19 -05:00
bors-servo
6775c69da1
Auto merge of #23935 - servo-wpt-sync:wpt_update_08-08-2019, r=servo-wpt-sync
Sync WPT with upstream (08-08-2019)

Automated downstream sync of changes from upstream as of 08-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/23935)
<!-- Reviewable:end -->
2019-08-09 07:34:23 -04:00
bors-servo
90fb4c3589
Auto merge of #23930 - CYBAI:incumbent-global-assertion, r=jdm
Assert incumbent global is always some in get_incumbent_global hook

While working on module script, I'd like to use Promise with a custom
callback with type `Box<dyn TaskBox>` which means we didn't use web API
callbacks as native handlers. However, we'll get a panic from
`enqueue_promise_job` and the panic says we have a `null` incumbent
global. The main problem here is, the Promise API is strongly tied to JS
engine and it always assumes there's a meaningful answer for "what
specific global is this promise associated with". So, when I don't use
the Promise for a specific web API, our engine cannot find a proper
incumbent global for us so that we get the `null` incumbent global
panic.

To make us catch this case easier in the future, we should add the
assertion inside `get_incumbent_global` hook so that we can know this
quickly next time.

Ref: https://mozilla.logbot.info/servo/20190807#c16525481

---
- [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 should just add assertion inside the hook

<!-- 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/23930)
<!-- Reviewable:end -->
2019-08-09 02:54:33 -04:00
bors-servo
da559d47b9
Auto merge of #23872 - marmeladema:issue-20377, r=jdm
Make DOM bindings methods not take raw JSContext pointers. Part 2.

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

<!-- 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/23872)
<!-- Reviewable:end -->
2019-08-08 22:21:19 -04:00
bors-servo
337703e03f
Auto merge of #23929 - asajeffrey:magicleap-gstreamer, r=jdm
Added gstreamer support to the magicleap port

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

With this PR we can watch videos in magicleap servo.

---
<!-- 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 I'm not sure how we'd test it

<!-- 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/23929)
<!-- Reviewable:end -->
2019-08-08 21:40:50 -04:00
marmeladema
357b6c54ff Use safe JSContext in callbacks 2019-08-09 00:43:29 +01:00
marmeladema
0703a1ad6d Use safe JSContext as first argument for throw_dom_exception 2019-08-09 00:43:28 +01:00
marmeladema
6c26518f61 Remove usage of various unsafe keyword 2019-08-09 00:43:28 +01:00
marmeladema
78034a90d0 Use safe JSContext when possible in interface.rs 2019-08-09 00:43:24 +01:00
marmeladema
8b070fef52 Use safe JSContext in get_constructor_object_from_local_name 2019-08-09 00:02:10 +01:00
marmeladema
6d444afd9e Use safe JSContext in MicrotaskQueue 2019-08-09 00:02:10 +01:00
marmeladema
b18fa8b8a7 Use safe JSContext in compartments 2019-08-09 00:02:10 +01:00
marmeladema
ce3778afcc Remove some usage of unsafe code in iterator.rs 2019-08-09 00:02:09 +01:00
marmeladema
b08a3e6217 Remove some usage of unsafe code in AudioBuffer 2019-08-09 00:02:09 +01:00
marmeladema
4a5f51e079 Remove some usage of unsafe code in Permissions 2019-08-09 00:02:09 +01:00
marmeladema
8968286aa1 Don't mark new methods as unsafe in code generation 2019-08-09 00:02:09 +01:00
marmeladema
914bda9cd4 Remove some usage of unsafe code in CustomElementRegistry 2019-08-09 00:02:08 +01:00
marmeladema
0ecab7bbe0 Remove some usage of unsafe code in FileReader 2019-08-09 00:02:08 +01:00
marmeladema
5ca3dd9d05 Remove some usage of unsafe code in XMLHttpRequest 2019-08-09 00:02:08 +01:00
marmeladema
1d92796b03 Remove some usage of unsafe code in HTMLCanvasElement 2019-08-09 00:02:08 +01:00
marmeladema
d1282dc8cc Remove some usage of unsafe code in History 2019-08-09 00:02:07 +01:00
marmeladema
51e22fbc26 Remove some usage of unsafe code in Promise 2019-08-09 00:02:07 +01:00