Commit graph

39514 commits

Author SHA1 Message Date
bors-servo
d8f2f2ef0e
Auto merge of #24449 - servo-wpt-sync:wpt_update_15-10-2019, r=jdm
Sync WPT with upstream (15-10-2019)

Automated downstream sync of changes from upstream as of 15-10-2019.
[no-wpt-sync]
r? @servo-wpt-sync
2019-10-17 06:39:24 -04:00
bors-servo
9b59a11b7c
Auto merge of #24408 - servo:jdm-patch-31, r=Manishearth
Synchronize WebGL layer creation with underlying GL APIs

I believe the underlying cause of #24373 is that the XR callbacks can end up executing before the XR WebGL layer setup has occurred. This was observed in the following symptom:
* a DOM exception would be thrown from inside the renderVR function, which is only called from XR's requestAnimationFrame callback
* following this, the webgl thread would panic with a GL error when executing the GL operations invoked from XRWebGLLayer::Constructor

This indicates that _somehow_ the XR rAF callback that raised an exception would have been operating on GL state that was not actually the state intended.

<!-- 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/24408)
<!-- Reviewable:end -->
2019-10-17 02:22:31 -04:00
Kagami Sascha Rosylight
e905a4606a Support USVString as default value of a union argument 2019-10-17 12:06:41 +09:00
Kagami Sascha Rosylight
6c98292a08 Throw when failing to convert sequence inner values 2019-10-17 10:38:22 +09:00
bors-servo
14240bee81
Auto merge of #24452 - Manishearth:raf-lifecycle, r=asajeffrey
Always request new XR frames

Currently we only request XR frames when there is a rAF callback queued up.

This is incorrect, see https://immersive-web.github.io/webxr/#xr-animation-frame

With this change we always request updated frame state regardless of whether or not the user has queued up callbacks.

In addition to being spec-correct, this means that we can reliably listen for events in the OpenXR backend in the rAF loop itself, instead of having to set up a second spinning loop for when the rAF is inactive. This lets us implement visibility states for openxr without having to worry about the user never receiving the wakeup call because the rAF loop isn't pumping.

See also: https://github.com/immersive-web/webxr/issues/877

r? @asajeffrey
2019-10-16 20:02:10 -04:00
bors-servo
9032207b8a
Auto merge of #24447 - servo:uninit, r=nox
Work around deprecation warnings caused by autocfg $RUSTFLAGS handling

See https://github.com/servo/servo/issues/24446
2019-10-16 17:03:13 -04:00
bors-servo
b5759e7113
Auto merge of #24444 - ferjm:downloadbuffer.android, r=jdm
Update servo-media. Temporarily disable progressive download on Android

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #24413
2019-10-16 15:48:13 -04:00
Michael Howell
b8f3e8bb2e Add simple implementation of content-security-policy on scripts / styles
This needs a lot more hooks before it'll actually be a good
implementation, but for a start it can help get some feedback on if this
is the right way to go about it.

Part of servo/servo#4577
2019-10-16 19:46:45 +00:00
Rasmus Viitanen
328809aebe fix getimagedata returns empty pixels 2019-10-16 21:20:46 +02:00
bors-servo
6d488f1be2
Auto merge of #24435 - marmeladema:issue-23607/compat, r=jdm
Issue 23607: first pass of changes for compatibility with Python3

As much as i want to migrate entirely to Python3 (see #23607), it will require some time as changes in web-platform-tests are significant and rely on upstream fixes to be merged and synced downstream.
In the meantime, lets improve compatibility with Python3 so that later, migration will be less painful.

Build system is definitely not ready yet for Python3, but its a step in the right direction.

---
<!-- 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. -->
2019-10-16 11:01:28 -04:00
Lars Bergstrom
04f9b91a2a Add PYTHON3 and Universal Windows C Runtime requirements to README 2019-10-16 09:33:54 -05:00
Josh Matthews
a13e559a0f
Remove intermittent failure. 2019-10-16 09:52:12 -04:00
bors-servo
bcd8c5e597
Auto merge of #24422 - pylbrecht:raqote, r=jdm
Use raqote for 2D canvas rendering

<!-- 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
- [X] 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/24422)
<!-- Reviewable:end -->
2019-10-16 09:12:17 -04:00
marmeladema
2b3f6a2289 Remove python/_virtualenv/ dir in clean_build_artifacts.sh 2019-10-16 08:28:30 +01:00
bors-servo
f0b708418c
Auto merge of #24451 - servo:jdm-patch-36, r=manishearth
Restore convenience UWP build flags.

Restores the build flags removed in 5367da98f8 to avoid mistakes when specifying the new target.
2019-10-16 02:57:25 -04:00
marmeladema
bf66a08c02 Fix StringIO module import to be compatible with Python3 2019-10-16 00:22:08 +01:00
marmeladema
5bd0fca140 Use iteritems from six module for Python3 compatibility 2019-10-16 00:22:08 +01:00
marmeladema
6c813d073c Use octal literal syntax compatible with Python3 2019-10-16 00:22:07 +01:00
marmeladema
02cfb4f49e Fix except statement in order to be compatible with Python3 2019-10-16 00:22:07 +01:00
marmeladema
f1d42fe787 Use urllib from six module in order to be compatible with Python3 2019-10-16 00:22:07 +01:00
marmeladema
f063ea64a5 Add six module to python requirements.txt for Python3 compatibility 2019-10-16 00:22:06 +01:00
marmeladema
4e1ee07a79 Improve print statement compatibility with Python3 2019-10-16 00:22:06 +01:00
bors-servo
b96b08a3d9
Auto merge of #24443 - ferjm:gst.debug.android, r=jdm
Allow setting GST_DEBUG on Android through mach

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
2019-10-15 18:26:46 -04:00
bors-servo
eda6d3e0c5
Auto merge of #24436 - paulrouget:uwp-tap, r=jdm
Use Tapped event instead of PointerReleased

Fix #24032
2019-10-15 17:18:48 -04:00
Josh Matthews
35dc07ab9e Upgrade OpenXR loader package to 1.0.3. 2019-10-15 15:49:35 -04:00
Josh Matthews
40b473ad03 Remove unnecessary DLLs from UWP project. 2019-10-15 15:49:22 -04:00
Manish Goregaokar
24bfca9b71 Always request new XR frames 2019-10-15 11:21:17 -07:00
Manish Goregaokar
5e098e3a2a Unconditionally set up rAF loop on initialization 2019-10-15 11:21:17 -07:00
bors-servo
aa916ad20e
Auto merge of #24429 - saschanaz:getpropertykeys, r=jdm
Return false when GetPropertyKeys fails

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

As stated in https://github.com/servo/servo/pull/24377#discussion_r333844560.

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

<!-- 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. -->
2019-10-15 11:59:09 -04:00
Josh Matthews
98bcb4bb57
Fix syntax error. 2019-10-15 10:45:19 -04:00
Josh Matthews
6ec5314911
Restore convenience UWP build flags. 2019-10-15 10:44:14 -04:00
Simon Sapin
e0e1d9de64 Fix #24446 2019-10-15 15:34:36 +02:00
WPT Sync Bot
4bc7277be1 Update web-platform-tests to revision 9f31d497bf87bdf5ebc3ba70b5cb9f87786f4071 2019-10-15 13:26:56 +00:00
bors-servo
c5d6bb604d
Auto merge of #24377 - saschanaz:record-support, r=nox
Support WebIDL `record<>`

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

Rebased @taki-zaro's work (#20318).

---
<!-- 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 #15012 and closes #20318. Possibly also closes #21463.

<!-- 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/24377)
<!-- Reviewable:end -->
2019-10-15 08:33:46 -04:00
Simon Sapin
6ef9d34132 Work around deprecation warnings caused by autocfg $RUSTFLAGS handling
See https://github.com/servo/servo/issues/24446
2019-10-15 11:25:36 +02:00
Kagami Sascha Rosylight
b697621b05 Support WebIDL record<> 2019-10-15 17:14:00 +09:00
bors-servo
1f64024655
Auto merge of #24445 - atouchet:malloc, r=Manishearth
Update malloc_size_of_derive

<!-- 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. -->
2019-10-14 20:32:42 -04:00
atouchet
ef8804f91c Update malloc_size_of_derive 2019-10-14 17:19:33 -07:00
Fernando Jiménez Moreno
9d7d4102cd Update servo-media. Temporarily disable progressive download on Android 2019-10-14 18:08:03 +02:00
Fernando Jiménez Moreno
11993bb8f5 Allow setting GST_DEBUG on Android through mach 2019-10-14 17:27:29 +02:00
Paul Rouget
010bc0036d Use Tapped event instead of PointerReleased 2019-10-14 09:22:55 +02:00
bors-servo
eee2c895f4
Auto merge of #24198 - jdm:xargo-uwp3, r=SimonSapin
Build UWP with native UWP rustc target

<!-- 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/24198)
<!-- Reviewable:end -->
2019-10-12 16:08:48 -04:00
Josh Matthews
9812305942 Use winapi fork that supports UWP arm64 target. 2019-10-12 10:19:27 -04:00
Josh Matthews
0d705676db Update winapi. 2019-10-12 10:19:26 -04:00
Josh Matthews
0a4d380a84 Use autocfg fork with rustflags fix. 2019-10-12 10:19:26 -04:00
Josh Matthews
fa32d5d115 Update autocfg. 2019-10-12 10:19:26 -04:00
Josh Matthews
5367da98f8 Support building UWP with native UWP rustc target. 2019-10-12 10:19:26 -04:00
bors-servo
228b34aed8
Auto merge of #24431 - servo-wpt-sync:wpt_update_12-10-2019, r=servo-wpt-sync
Sync WPT with upstream (12-10-2019)

Automated downstream sync of changes from upstream as of 12-10-2019.
[no-wpt-sync]
r? @servo-wpt-sync
2019-10-12 09:42:22 -04:00
WPT Sync Bot
6edbabc2c6 Update web-platform-tests to revision e4c65276b686cd788b2c4f8c395025df371e84a1 2019-10-12 13:42:08 +00:00
Kagami Sascha Rosylight
764f1a3724 Return false when GetPropertyKeys fails 2019-10-12 18:57:05 +09:00