Commit graph

38234 commits

Author SHA1 Message Date
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
bors-servo
196c511d5e
Auto merge of #23896 - nox:layout-2020, r=SimonSapin
Remove most of the things in layout 2020

We keep mostly the query system. There is probably more to delete but
that's a good start I think.

<!-- 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/23896)
<!-- Reviewable:end -->
2019-08-01 08:08:19 -04:00
Anthony Ramine
f8341daf95 Fix compilation errors due to the rebase
It's too complicated to make all the commits in that branch compile properly.
2019-08-01 13:50:52 +02:00
bors-servo
633bcf839e
Auto merge of #23902 - Manishearth:webxr-pref, r=asajeffrey
Do not start up webvr services when running webxr and vice versa

Once we move everything over to the webxr crate we can relax the restriction around running both webxr and webvr

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/23902)
<!-- Reviewable:end -->
2019-08-01 05:38:52 -04:00
bors-servo
45af8a34fe
Auto merge of #23900 - paulrouget:tasks, r=jdm
Use tasks instead of events

<!-- 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/23900)
<!-- Reviewable:end -->
2019-08-01 03:46:44 -04:00
bors-servo
07a8473fa2
Auto merge of #23898 - servo-wpt-sync:wpt_update_31-07-2019, r=jdm
Sync WPT with upstream (31-07-2019)

Automated downstream sync of changes from upstream as of 31-07-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/23898)
<!-- Reviewable:end -->
2019-07-31 23:16:57 -04:00
bors-servo
c81632dd16
Auto merge of #23901 - paulrouget:fixx64, r=jdm
Missing libraries for HoloLens x64

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/23901)
<!-- Reviewable:end -->
2019-07-31 20:18:57 -04:00