Commit graph

38140 commits

Author SHA1 Message Date
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
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
Alan Jeffrey
11b3d78f40 Added gstreamer support to the magicleap port 2019-08-08 16:52:50 -05:00
WPT Sync Bot
9f1d1e8b63 Update web-platform-tests to revision 0d4300c5045a5587c2eb3d1416b11ffeecf5dadc 2019-08-08 14:19:30 +00:00
CYBAI
28e64fc701 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
2019-08-08 12:39:56 +09:00
bors-servo
555fa75b2c
Auto merge of #23927 - atouchet:cmake, r=jdm
Update cmake

<!-- 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
- [ ] 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/23927)
<!-- Reviewable:end -->
2019-08-07 12:50:57 -04:00
atouchet
09d011b272 Update cmake 2019-08-07 08:14:04 -07:00
bors-servo
f224376602
Auto merge of #23926 - servo-wpt-sync:wpt_update_07-08-2019, r=servo-wpt-sync
Sync WPT with upstream (07-08-2019)

Automated downstream sync of changes from upstream as of 07-08-2019.
[no-wpt-sync]
2019-08-07 10:10:12 -04:00
WPT Sync Bot
b09e82fc9f Update web-platform-tests to revision 66b4fab488695f98d15ad75b549e302a8d29f865 2019-08-07 14:09:56 +00:00
bors-servo
371f514664
Auto merge of #23904 - paulrouget:loop2, r=gterzian
Better Hololens loop

Depends on #23900

Fix #23823

r? @gterzian

<!-- 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/23904)
<!-- Reviewable:end -->
2019-08-07 06:21:36 -04:00
bors-servo
b6cdf93198
Auto merge of #23921 - servo-wpt-sync:wpt_update_06-08-2019, r=servo-wpt-sync
Sync WPT with upstream (06-08-2019)

Automated downstream sync of changes from upstream as of 06-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/23921)
<!-- Reviewable:end -->
2019-08-06 18:25:37 -04:00
bors-servo
0368cd8de6
Auto merge of #23920 - servo:fix-style-2020, r=SimonSapin
Fix a panic when using 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/23920)
<!-- Reviewable:end -->
2019-08-06 17:01:05 -04:00
Anthony Ramine
8e6591b81b Fix a panic when using layout 2020 2019-08-06 18:07:31 +02:00
WPT Sync Bot
3a7bc18f6e Update web-platform-tests to revision bdb130748e35ceed09c82975e217e07bdabf0bda 2019-08-06 14:58:05 +00:00
bors-servo
ff3a9180a7
Auto merge of #23914 - servo-wpt-sync:wpt_update_05-08-2019, r=servo-wpt-sync
Sync WPT with upstream (05-08-2019)

Automated downstream sync of changes from upstream as of 05-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/23914)
<!-- Reviewable:end -->
2019-08-05 23:19:51 -04:00
WPT Sync Bot
217eb600af Update web-platform-tests to revision dcdebb1b8e7d3f9a4650498c1efeae78060294e5 2019-08-05 14:09:29 +00:00
bors-servo
802e16b702
Auto merge of #23912 - servo-wpt-sync:wpt_update_04-08-2019, r=servo-wpt-sync
Sync WPT with upstream (04-08-2019)

Automated downstream sync of changes from upstream as of 04-08-2019.
[no-wpt-sync]
2019-08-04 10:59:56 -04:00
WPT Sync Bot
c789859814 Update web-platform-tests to revision 2332a6bd8ab3d47986492a44d7a0455dfb4ad823 2019-08-04 14:59:41 +00:00
bors-servo
d2856ce8ae
Auto merge of #23911 - servo-wpt-sync:wpt_update_03-08-2019, r=servo-wpt-sync
Sync WPT with upstream (03-08-2019)

Automated downstream sync of changes from upstream as of 03-08-2019.
[no-wpt-sync]
2019-08-03 11:04:08 -04:00
WPT Sync Bot
b68253eac0 Update web-platform-tests to revision 097043b336e46876e281ddec3bb014fe9c480128 2019-08-03 15:03:51 +00:00
bors-servo
ecd32570c0
Auto merge of #23903 - asajeffrey:webxr-magicleap, r=Manishearth
Webxr magicleap

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

Adds the magicleap back end for webxr.

---
<!-- 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 back end stuff

<!-- 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/23903)
<!-- Reviewable:end -->
2019-08-02 17:44:55 -04:00
Alan Jeffrey
1ca495b321 Added magicleap webxr back end 2019-08-02 12:14:11 -05:00
Paul Rouget
20c7692e3e Add clang-format file 2019-08-02 00:45:42 +02:00
Paul Rouget
b7667ff362 Clarify hololens loop 2019-08-02 00:45:42 +02:00