Commit graph

33517 commits

Author SHA1 Message Date
Paul Rouget
cbaf19c65c new android port: Remove Android code from /ports/servo/ 2018-07-31 22:08:54 +08:00
bors-servo
6e7f7fc8eb
Auto merge of #21284 - servo:webgl, r=emilio
Various fixes for the lifecycle of WebGL objects

<!-- 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/21284)
<!-- Reviewable:end -->
2018-07-31 05:14:24 -04:00
Anthony Ramine
34d1195af3 Reenable origin-clean-conformance.html 2018-07-31 11:12:46 +02:00
Anthony Ramine
15d1215949 Properly check for context ownership of objects passed to gl.is*() 2018-07-31 11:12:45 +02:00
Anthony Ramine
76f23f7d78 Simplify gl.getShaderParameter() (fixes #20562)
The expectation change is due to the shader now using its DOM-side compile status.
It is actually a bug for the shader to think it actually compiled successfully,
but at least it does so consistently now.
2018-07-31 11:12:45 +02:00
Anthony Ramine
a0fc4c9832 Fix program and shader lifetime cycle 2018-07-31 11:12:40 +02:00
Anthony Ramine
43463e80cb Remove an obsolete todo in gl.compileShader()
We get the uniform data etc at link-time.
2018-07-31 00:28:14 +02:00
Anthony Ramine
6af2ce79a2 Remove an obsolete todo in gl.attachShader()
Attaching the same shader twice should indeed emit an InvalidOperation error.
2018-07-31 00:28:14 +02:00
Anthony Ramine
3c0e82d106 Reenable glsl-long-variable-names.html 2018-07-31 00:28:13 +02:00
Anthony Ramine
e2425c9158 Mark many-draw-calls.html as long-running 2018-07-31 00:28:13 +02:00
bors-servo
b8b691d063
Auto merge of #21286 - servo:jdm-patch-25, r=jdm
Avoid frequent disk space errors on cross builders.

This is killing our CI throughput. Fixes #21235.

<!-- 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/21286)
<!-- Reviewable:end -->
2018-07-30 16:42:36 -04:00
Josh Matthews
f63c9d14a9 Avoid frequent disk space errors on cross builders. 2018-07-30 15:39:24 -04:00
Anthony Ramine
a7901bb8d1 Fix some patched WebGL tests where the timeout was malformed 2018-07-30 19:51:00 +02:00
Anthony Ramine
1adfc0badb Add bug links to some WebGL expectations 2018-07-30 19:50:59 +02:00
Anthony Ramine
d6673d1eaf Remove outdated WebGL expectations 2018-07-30 19:50:59 +02:00
bors-servo
1bd34e7c55
Auto merge of #21250 - paulrouget:fixkeys, r=jdm
Refactor winit key handling

This should improve keys input on Linux and Windows.
Should fix #17146 and fix #21161

Tested Mac, Windows and Linux. Basic typing works, combo work, text navigation works. I hit some strange issues where sometimes the text would be displayed late, but I believe it is unrelated to this PR.

If we land that now, we will hit a regression on Mac, we need a winit update that includes https://github.com/tomaka/winit/pull/610.

<!-- 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/21250)
<!-- Reviewable:end -->
2018-07-30 13:02:41 -04:00
bors-servo
2cb7f15e69
Auto merge of #21281 - felixrabe:patch-1, r=paulrouget
Fix copy paste typo

<!-- 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/21281)
<!-- Reviewable:end -->
2018-07-30 04:46:34 -04:00
Felix Rabe
cbae7c6131
Fix copy paste typo 2018-07-30 10:04:22 +02:00
bors-servo
de48f25d0b
Auto merge of #21272 - servo:rustup, r=avadacatavra
Use the packed_simd crate instead of std::simd

`std::simd` was removed in https://github.com/rust-lang/rust/pull/52535.
https://crates.io/crates/packed_simd is in the rust-lang-nursery org.

<!-- 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/21272)
<!-- Reviewable:end -->
2018-07-29 12:58:25 -04:00
bors-servo
076198fe80
Auto merge of #21111 - gterzian:implement_document_load_cancellation, r=jdm
Implement document load cancellation

<!-- 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 #19309 fix #21114 fix #21113 (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/21111)
<!-- Reviewable:end -->
2018-07-29 11:14:29 -04:00
Gregory Terzian
e67adfc290 use DOMTracker instead of WeakMediaQueryListVec 2018-07-29 16:42:59 +08:00
Gregory Terzian
8155cc66b0 close eventsources as part of document unloading 2018-07-29 16:42:59 +08:00
Gregory Terzian
31da37fa6c stopping tokenizer if parser is aborted 2018-07-29 16:42:59 +08:00
Gregory Terzian
e49c8e7f26 spec compliant active parser concept 2018-07-29 16:42:59 +08:00
Gregory Terzian
f2ee941da2 Introduce DOMTracker, cancel eventsource fetch when aborting document load 2018-07-29 16:42:59 +08:00
Gregory Terzian
ff62ca7c01 implement window.stop, improve aborting document load 2018-07-29 16:42:54 +08:00
bors-servo
e9bc6f43be
Auto merge of #21242 - servo:android-wpt, r=jdm
Run a couple WPT tests on Android on CI

<!-- 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/21242)
<!-- Reviewable:end -->
2018-07-28 12:10:42 -04:00
bors-servo
00c2489af0
Auto merge of #21104 - wayling:master, r=jdm
"./mach env" cause unclear message.

We did't use "LD_LIBRARY_PATH" and no need display this.

<!-- Please describe your changes on the following line: -->
Remove the print message.

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

<!-- 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/21104)
<!-- Reviewable:end -->
2018-07-28 10:07:27 -04:00
wayling
2ad37bda2c "./mach env" cause unclear message
Use the "get" instead to avoid the error.
2018-07-28 21:59:06 +08:00
bors-servo
539f382631
Auto merge of #21249 - jdm:webgl-unit-tests, r=emilio
Allow webgl tests using unit test harness to run to completion.

This is an equivalent change to https://github.com/servo/servo/pull/14962/commits/5af2603ec4f59f2bbabc8aa9d73deed29acf9492 that affects a subset of webgl tests that use a different test harness.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #13662 fix #10656
- [x] There are tests for these changes

<!-- 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/21249)
<!-- Reviewable:end -->
2018-07-27 22:39:50 -04:00
bors-servo
5f0b7156cd
Auto merge of #21275 - servo:jdm-patch-24, r=jdm
Use local android toolchain for dynamic symbol check.

Fixes https://github.com/servo/saltfs/issues/869 and unbreaks all of the android builds.

<!-- 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/21275)
<!-- Reviewable:end -->
2018-07-27 20:04:39 -04:00
Josh Matthews
2fda6bfda3
Use local android toolchain for dynamic symbol check. 2018-07-27 19:32:50 -04:00
Simon Sapin
1c0941ffc0 Use the packed_simd crate instead of std::simd
`std::simd` was removed in https://github.com/rust-lang/rust/pull/52535.
https://crates.io/crates/packed_simd is in the rust-lang-nursery org.
2018-07-27 22:44:14 +02:00
Josh Matthews
666ea2060c
Reenable test that should work now. 2018-07-26 10:23:26 -04:00
Simon Sapin
5e5b89a0dc Run a couple WPT tests on Android on CI 2018-07-26 15:36:46 +02:00
Simon Sapin
4306336a5b run_in_headless_android_emulator: add support for $HOST_FILE 2018-07-26 15:36:46 +02:00
Paul Rouget
3c7bb87e6d Refactor winit key handling 2018-07-26 14:39:52 +02:00
Josh Matthews
ad1c546973 Allow webgl tests using unit test harness to run to completion. 2018-07-25 17:36:24 -04:00
bors-servo
53382f5a0f
Auto merge of #21232 - servo:jdm-patch-22, r=asajeffrey
Enable MutationObserver by default.

All of the WebIDL APIs are implemented, so we might as well have it enabled by default now. I've filed https://github.com/servo/servo/issues/21233 for the remaining test failures.

<!-- 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/21232)
<!-- Reviewable:end -->
2018-07-25 15:32:43 -04:00
bors-servo
4c5a7eaa14
Auto merge of #21246 - servo:webgl, r=emilio
Cache which capabilities are enabled in the context (fixes #20534)

<!-- 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/21246)
<!-- Reviewable:end -->
2018-07-25 13:58:48 -04:00
Anthony Ramine
5a9ad01145 Cache which capabilities are enabled in the context (fixes #20534)
This is needed for #20555.
2018-07-25 19:58:02 +02:00
Josh Matthews
5d943c6dbd Enable MutationObserver by default. 2018-07-25 12:28:59 -04:00
bors-servo
e6768648a5
Auto merge of #21244 - servo:jdm-patch-23, r=SimonSapin
Adjust import path for WPT tests to accommodate upstream.

This should avoid the ongoing issues where new dependencies are vendored upstream and our setup throws exceptions when some code tries to import them.

<!-- 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/21244)
<!-- Reviewable:end -->
2018-07-25 09:02:59 -04:00
Josh Matthews
30f964e489
Fix pyflakes warning. 2018-07-24 18:06:30 -04:00
Josh Matthews
2dff49174c
Adjust import path for WPT tests to accommodate upstream. 2018-07-24 18:00:39 -04:00
bors-servo
65df9cb73a
Auto merge of #21240 - servo:webgl, r=jdm
Properly check for GL object ownership (fixes #21133)

<!-- 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/21240)
<!-- Reviewable:end -->
2018-07-24 11:02:57 -04:00
Anthony Ramine
3179ed59c5 Properly check for GL object ownership (fixes #21133) 2018-07-24 15:05:35 +02:00
Anthony Ramine
661e258b28 Store a reference to the WebGLRenderingContext in WebGLObject 2018-07-24 13:27:33 +02:00
bors-servo
ba6123583d
Auto merge of #21237 - emilio:gecko-sync, r=emilio
style: Sync changes from mozilla-central.

See individual commits for details.

https://bugzilla.mozilla.org/show_bug.cgi?id=1477883

<!-- 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/21237)
<!-- Reviewable:end -->
2018-07-24 07:00:31 -04:00
Emilio Cobos Álvarez
e1855b3b3b
style: Fix unit tests. 2018-07-24 12:59:55 +02:00