Commit graph

38042 commits

Author SHA1 Message Date
Lars Bergstrom
c04d32da13 Fix Python and gstreamer instructions for Windows 2019-07-20 19:44:35 -05:00
bors-servo
510ffde3f1
Auto merge of #23808 - georgeroman:fix_wdspec_setup_errors, r=jdm
Add a HOST_FILE env variable and fix the wdspec setup errors that it causes

<!-- 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/23808)
<!-- Reviewable:end -->
2019-07-20 20:35:35 -04:00
bors-servo
d34bde34f1
Auto merge of #23815 - servo-wpt-sync:wpt_update_20-07-2019, r=servo-wpt-sync
Sync WPT with upstream (20-07-2019)

Automated downstream sync of changes from upstream as of 20-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/23815)
<!-- Reviewable:end -->
2019-07-20 15:39:04 -04:00
WPT Sync Bot
dc1f7ba3ec Update web-platform-tests to revision 6fa9de7201cd41564d02c3edd62365aeb40e171b 2019-07-20 14:47:24 +00:00
George Roman
1c4a35e22b Add a HOST_FILE env variable and fix the wdspec setup errors that it causes 2019-07-20 17:06:50 +03:00
bors-servo
410c3f0260
Auto merge of #23812 - tdelacour:ISSUE-21257, r=jdm
ISSUE-21257: set redirectEnd on PerformanceResourceTiming

<!-- Please describe your changes on the following line: -->
Added the appropriate attribute and setters. Included a Timer struct with a `Drop` function to set this value to zero in error cases. Set the value to `responseEnd` on success. Eliminated tests that now pass.

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

<!-- 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/23812)
<!-- Reviewable:end -->
2019-07-20 08:49:06 -04:00
bors-servo
60f1ffc5a7
Auto merge of #23801 - paulrouget:alert, r=jdm
Expose javascript:window.alert() to libsimpleservo

<!-- 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/23801)
<!-- Reviewable:end -->
2019-07-19 21:18:42 -04:00
bors-servo
1128f40f4e
Auto merge of #23797 - asajeffrey:webxr-framebuffer, r=Manishearth
Added framebuffer and related attributes to XRWebGLLayer

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

Implement the `framebuffer` attribute of `XRWebGLLayer`.

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

<!-- 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/23797)
<!-- Reviewable:end -->
2019-07-19 18:40:44 -04:00
bors-servo
bb6265b99b
Auto merge of #23783 - angelortiz1007:winrt-servo, r=jdm
Add source module to UWP logging output

Updated  support/hololens/Servo.cpp to use url: google.com

New debug output:
```
RUST: DEBUG - html5ever::tokenizer - got characters None
RUST: DEBUG - script::script_thread - Processing event FromConstellation(ConstellationControlMsg::NavigationResponse).
RUST: DEBUG - html5ever::tokenizer - processing in state RawData(ScriptData)
```

---
<!-- 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 #23755
- [x] These changes do not require tests because we can't automatically test logging output.

<!-- 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/23783)
<!-- Reviewable:end -->
2019-07-19 16:25:48 -04:00
Thomas Delacour
18178fa107
ISSUE-21257: set redirectEnd on PerformanceResourceTiming 2019-07-19 21:36:24 +02:00
bors-servo
31a654893a
Auto merge of #23810 - servo-wpt-sync:wpt_update_19-07-2019, r=servo-wpt-sync
Sync WPT with upstream (19-07-2019)

Automated downstream sync of changes from upstream as of 19-07-2019.
[no-wpt-sync]
2019-07-19 10:54:47 -04:00
WPT Sync Bot
7be3e2f06b Update web-platform-tests to revision 6340a70e8df5e850ea44436b54105f59dd5aa22e 2019-07-19 14:54:30 +00:00
Paul Rouget
3a374b3455 Expose javascript:window.alert() to libsimpleservo 2019-07-19 16:49:26 +02:00
bors-servo
5788e8c050
Auto merge of #23804 - Manishearth:transform-tests, r=asajeffrey
Improve xrRigidTransform_constructor test

It contained an incorrect test attempting to construct a transform that throws. Added tests that check that it throws appropriately.

has r+ from https://github.com/servo/servo/pull/23803, created new PR
due to bug in 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/23804)
<!-- Reviewable:end -->
2019-07-18 21:34:03 -04:00
Alan Jeffrey
23f15c94ef Decoupled DOMErrorName from legacy error codes 2019-07-18 17:16:10 -05:00
Alan Jeffrey
c08ef4cb23 Dead code elimination 2019-07-18 17:16:09 -05:00
Alan Jeffrey
f2766cf6f3 Added wpt webxr tests for XR layer's viewports and framebuffer 2019-07-18 17:16:08 -05:00
Alan Jeffrey
aa0a72df0f Added framebuffer and related attributes to XRWebGLLayer 2019-07-18 14:24:50 -05:00
bors-servo
2dfbbd0ca2
Auto merge of #23368 - gterzian:clean_up_navigation, r=asajeffrey
Clean-up navigation

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

1. Navigation as a result of following a hyperlink should be done in a task: https://html.spec.whatwg.org/multipage/links.html#following-hyperlinks:dom-manipulation-task-source
2. The javascript url navigation should also be done in a task: https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigating-across-documents:dom-manipulation-task-source
3. In `window.load_url`, it seems there is no need to send a message to the script-thread(the entirety of `load_url` should instead be done in a task when appropriate), so we can just do that last part "sync" by calling a method on the script, which will send a message to the constellation(for the parallel navigation steps), or queue task(for the JS navigation), as appropriate.
4. Separate the "normal" navigation flow from the handling of "navigate an iframe" message from constellation, since doing everything in one method as was previously done with `handle_navigate`, is confusing.

---
<!-- 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/23368)
<!-- Reviewable:end -->
2019-07-18 14:22:03 -04:00
Manish Goregaokar
d26b73dd3d Add description strings to xrRigidTransform_constructor 2019-07-18 09:39:23 -07:00
Manish Goregaokar
1098454bc4 Add error handling tests to xrRigidTransform_constructor 2019-07-18 09:29:16 -07:00
Josh Matthews
c5d76fdf51 Update raqote. 2019-07-18 09:25:58 -04:00
Josh Matthews
9182e0131b Update bindgen. 2019-07-18 09:25:58 -04:00
Josh Matthews
32ed2c7bf3 Update tokio-timer. 2019-07-18 09:25:57 -04:00
bors-servo
dc1da02aa4
Auto merge of #23792 - hikerpig:master, r=Manishearth
Update README about local gstreamer copy path

Fix readme error about local gst path

---
- [x] These changes do not require tests because it's just doc

<!-- 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/23792)
<!-- Reviewable:end -->
2019-07-18 08:55:42 -04:00
bors-servo
d9ea7ae178
Auto merge of #23784 - asajeffrey:webxr-glwindow-share-contexts, r=Manishearth
Get the glwindow test XR device to share a GL context with WebGL

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

Get glutin windows able to open new windows which share GL textures. This is used by the webxr glwindow test device.

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

<!-- 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/23784)
<!-- Reviewable:end -->
2019-07-18 03:56:45 -04:00
bors-servo
6942694e4a
Auto merge of #23791 - servo-wpt-sync:wpt_update_17-07-2019, r=servo-wpt-sync
Sync WPT with upstream (17-07-2019)

Automated downstream sync of changes from upstream as of 17-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/23791)
<!-- Reviewable:end -->
2019-07-18 02:09:47 -04:00
Gregory Terzian
571beec179 clean-up navigation
security: check target and source origin before executing JS url

implement replacement-enabled flag as a HistoryEntryReplacement enum

add source origin string on loaddata

add LoadOrigin

iframe: remove optional load-data

auxiliaries: add load-data into info

constellation: remove url from Pipeline::new

check load origin: link to whatwg issue

switch loadorigin toplevel to constellation
2019-07-18 12:03:45 +08:00
bors-servo
91d12669e4
Auto merge of #23630 - Eijebong:dedupe-epoch, r=jdm
Update rayon to dedupe crossbeam-epoch

As a bonus this also removes one version of crossbeam-utils

<!-- 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/23630)
<!-- Reviewable:end -->
2019-07-17 20:01:07 -04:00
Angel
1547620469 Include source module in UWP logging output. 2019-07-17 12:12:49 -05:00
hikerpig
fb40760c19 Update README about local gstreamer copy path 2019-07-17 22:56:57 +08:00
WPT Sync Bot
effeb278b6 Update web-platform-tests to revision 9a4d479ed1347eb9184abc70d628a6da2297657a 2019-07-17 14:50:17 +00:00
Alan Jeffrey
b19e7d1cbf Get the glwindow test XR device to share a GL context with WebGL 2019-07-17 09:49:49 -05:00
bors-servo
25d8a6999b
Auto merge of #23726 - servo:rustup, r=emilio
Upgrade to rustc 1.38.0-nightly (4b65a86eb 2019-07-15)

<del>This uses `MaybeUninit` in Stylo. `MaybeUninit` is stable in Rust 1.36.0, which Firefox [plans](https://wiki.mozilla.org/Rust_Update_Policy_for_Firefox) to require on 2019-06-18.</del>

Update: `MaybeUninit` in Stylo removed from this PR, after https://github.com/rust-lang/rust/pull/62599.

<!-- 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/23726)
<!-- Reviewable:end -->
2019-07-17 08:56:27 -04:00
Simon Sapin
0f5bc8b20d Remove rustdoc work-around from 43a75011be 2019-07-17 10:48:54 +02:00
Simon Sapin
d3718823ba Upgrade to rustc 1.38.0-nightly (4b65a86eb 2019-07-15) 2019-07-17 10:48:54 +02:00
Simon Sapin
b6bd2d7302 Remove uses of mem::uninitialized 2019-07-17 10:48:54 +02:00
Simon Sapin
0677704953 Update cssparser
Pick up a behavior fix https://github.com/servo/rust-cssparser/pull/251
2019-07-17 10:47:58 +02:00
bors-servo
b6cc0f60a9
Auto merge of #23786 - Manishearth:xr-wpt, r=asajeffrey
Enable XR WPT tests

This enables the tests. Most still fail, I plan to go through the
failures more soon.

xrFrame_getPose's failure seems to indicate we have broken matrix math.
I'm not sure what, the bug seems to not come from a simple matrix
inversion/ordering mishap.

This does add empty stubs for session ending since the test infra relies on these existing for almost every test (https://github.com/servo/servo/issues/23788). We will need to add support for this from the webxr repo side. We also need to add support for user activation (https://github.com/servo/servo/issues/23787).

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/23786)
<!-- Reviewable:end -->
2019-07-17 01:18:51 -04:00
Manish Goregaokar
5b960a7fdc Enable webxr wpt 2019-07-16 22:17:22 -07:00
Manish Goregaokar
4e7a59e872 Unset active bool on XRFrame 2019-07-16 22:17:22 -07:00
Manish Goregaokar
37d758dae1 Use correct w value in xrFrame_getPose
Values other than 1 are supposed to throw
2019-07-16 22:17:22 -07:00
Manish Goregaokar
7ccc7b3b49 add XREye.none 2019-07-16 22:17:22 -07:00
Manish Goregaokar
ffc943fec7 Add stubs for session start/end 2019-07-16 22:17:22 -07:00
Manish Goregaokar
df1f865cb2 Update xr.requestSession() arguments 2019-07-16 22:17:05 -07:00
Manish Goregaokar
73f1bdac06 Add simulateUserActivation 2019-07-16 22:17:05 -07:00
bors-servo
cef98d2e51
Auto merge of #23785 - asajeffrey:script-webxr-dirty-canvas, r=Manishearth
Dirty the canvas when WebXR draws to its GL context

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

When webxr draws to a WebGL rendering context backed by a canvas that's attached to the DOM, we should repaint the DOM. (At least that's my reading of the spec!)

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

<!-- 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/23785)
<!-- Reviewable:end -->
2019-07-16 19:10:47 -04:00
Alan Jeffrey
10f3c2230b Dirty the canvas when WebXR draws to its GL context 2019-07-16 17:52:49 -05:00
bors-servo
bd730e7c16
Auto merge of #23781 - servo-wpt-sync:wpt_update_16-07-2019, r=servo-wpt-sync
Sync WPT with upstream (16-07-2019)

Automated downstream sync of changes from upstream as of 16-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/23781)
<!-- Reviewable:end -->
2019-07-16 13:00:45 -04:00
WPT Sync Bot
40ef4e9705 Update web-platform-tests to revision 63459a30a61cda53c8c8ab4dc645b142cd2f85ea 2019-07-16 14:33:08 +00:00