Commit graph

33517 commits

Author SHA1 Message Date
Simon Sapin
cdd64604cf Don’t reverse-forward port "None"
```
 0:27.48 pid:4157 Traceback (most recent call last):
 0:27.48 pid:4157   File "/home/simon/servo1/etc/run_in_headless_android_emulator.py", line 212, in <module>
 0:27.48 pid:4157     sys.exit(main(*sys.argv[1:]))
 0:27.48 pid:4157   File "/home/simon/servo1/etc/run_in_headless_android_emulator.py", line 72, in main
 0:27.48 pid:4157     forward_webdriver(adb, args)
 0:27.48 pid:4157   File "/home/simon/servo1/etc/run_in_headless_android_emulator.py", line 163, in forward_webdriver
 0:27.48 pid:4157     ports = [int(part) for part in split if part]
 0:27.48 pid:4157 ValueError: invalid literal for int() with base 10: 'None'
```
2018-07-19 20:50:42 +02:00
Simon Sapin
f10b47465a More Python fixes for servodriver
```
Traceback (most recent call last):
  File "/home/simon/servo1/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/testrunner.py", line 90, in run
    rv = commands[command](*args)
  File "/home/simon/servo1/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/testrunner.py", line 110, in wait
    self.executor.wait()
  File "/home/simon/servo1/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/executors/base.py", line 209, in wait
    self.protocol.base.wait()
AttributeError: 'ServoWebDriverProtocol' object has no attribute 'base'
```
2018-07-19 20:50:28 +02:00
Simon Sapin
e6eca2bce4 run_in_headless_android_emulator: add some code comments 2018-07-19 20:12:58 +02:00
Simon Sapin
94d1acbcfd run_in_headless_android_emulator: add support for reverse port forwarding 2018-07-19 19:16:07 +02:00
Simon Sapin
d7495a2297 run_in_headless_android_emulator: add support for user stylesheets 2018-07-19 19:02:34 +02:00
Simon Sapin
33234affc9 run_in_headless_android_emulator: add port forwarding for webdriver 2018-07-19 18:52:17 +02:00
Simon Sapin
f5ff709c79 Refactor run_in_headless_android_emulator.py into more functions 2018-07-19 18:44:47 +02:00
bors-servo
908a642063
Auto merge of #21209 - servo:jdm-patch-20, r=SimonSapin
Resume WPT syncing on mac builders.

This reverts https://github.com/servo/servo/pull/21148 to avoid the virtualenv problems that come with using the linux builders.

<!-- 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/21209)
<!-- Reviewable:end -->
2018-07-19 12:19:24 -04:00
Simon Sapin
48f6e168d4 Fix a webdriver timeout during server start up
When sending a webdriver load URL command soon enough after starting Servo,
that command could time out with a logged warning:

```
constellation: Webdriver load for closed browsing context (0,2).
```

When `closed` in this case really meant not opened yet.
2018-07-19 18:07:33 +02:00
Simon Sapin
4acdb81197 WebDriver timeout settings are not optional.
Not setting one of them in a SetTimeouts requests should not remove it.
This fixes a panicking `unwrap()`.
2018-07-19 18:07:33 +02:00
Simon Sapin
c05d30d116 Add --binary-arg support in ./mach test-wpt --product servodriver 2018-07-19 18:07:33 +02:00
Simon Sapin
9b80369efb Make servodriver wait until the server starts accepting TCP connections 2018-07-19 18:07:33 +02:00
Simon Sapin
780e21c970 Fix Python errors in servodriver 2018-07-19 17:38:53 +02:00
bors-servo
48db1ed65e
Auto merge of #21207 - servo:webgl, r=emilio
Some WebGL drive-by fixes

<!-- 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/21207)
<!-- Reviewable:end -->
2018-07-19 09:38:21 -04:00
Josh Matthews
80423dbfb1
Resume WPT syncing on mac builders. 2018-07-19 09:26:19 -04:00
bors-servo
e57187305f
Auto merge of #21181 - nupurbaghel:update_source_set, r=jdm
Implement update source set & select image source

<!-- 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 #11416 (github issue number if applicable).

- [x] These changes require tests but cannot be written until implementation of responsive images is complete

<!-- 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/21181)
<!-- Reviewable:end -->
2018-07-19 08:18:12 -04:00
Anthony Ramine
b64232d77b Invalidate all WebGLUniformLocation values on program relink 2018-07-19 11:34:04 +02:00
Anthony Ramine
8fabc6660a Correctly reset active uniforms on link 2018-07-19 11:34:04 +02:00
nupurbaghel
8d06da8afd implement update_source_set, select_image_source 2018-07-19 09:20:46 +05:30
bors-servo
aab335e543
Auto merge of #21204 - servo:wpt_update_18-07-2018, r=jdm
Update web-platform-tests

The automated sync process is really busted, so this is a manual run to get us back on track. Fixes #21145.

<!-- 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/21204)
<!-- Reviewable:end -->
2018-07-18 19:41:55 -04:00
bors-servo
72e8d79add
Auto merge of #21203 - servo:jdm-patch-19, r=nox
Disable tests for unsupported JS modules

There's no point to running these since the all just time out.

<!-- 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/21203)
<!-- Reviewable:end -->
2018-07-18 18:29:50 -04:00
WPT Sync Bot
775b784f79 Update web-platform-tests to revision 60220357131c65146444da1f54624d5b54d0975d 2018-07-18 22:07:44 +00:00
bors-servo
448ce0c7d4
Auto merge of #21202 - servo:webgl, r=jdm
Implement gl.getUniform()

<!-- 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/21202)
<!-- Reviewable:end -->
2018-07-18 16:51:32 -04:00
Anthony Ramine
3e8c2d659a Implement gl.getUniform() 2018-07-18 21:37:41 +02:00
Josh Matthews
047fd485ac
Disable tests for unsupported JS modules 2018-07-18 13:04:32 -04:00
bors-servo
cc2fe91041
Auto merge of #21200 - servo:run_in_headless_android, r=nox
Refactor run_in_headless_android_emulator.py out of mach test-android-startup

… and make it more careful about not leaving zombie processes behind.

<!-- 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/21200)
<!-- Reviewable:end -->
2018-07-18 12:33:14 -04:00
Anthony Ramine
20714bd08c Update to gleam 0.6 2018-07-18 18:31:51 +02:00
Anthony Ramine
6c7609c6f0 Update some obsolete expectation 2018-07-18 18:31:50 +02:00
Simon Sapin
5d416e6600 Refactor run_in_headless_android_emulator.py out of mach test-androi-startup
… and make it more careful about not leaving zombie processes behind.
2018-07-18 18:23:50 +02:00
bors-servo
d25bd95d6f
Auto merge of #21185 - servo:bootstrapped-android, r=paulrouget
Stop using Salt-installed Android SDK 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/21185)
<!-- Reviewable:end -->
2018-07-18 08:38:37 -04:00
bors-servo
c45192614c
Auto merge of #21195 - servo:rustup, r=nox
Upgrade to rustc 1.29.0-nightly (1ecf6929d 2018-07-16)

<!-- 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/21195)
<!-- Reviewable:end -->
2018-07-18 05:37:08 -04:00
Simon Sapin
3509bcb531 Upgrade to rustc 1.29.0-nightly (1ecf6929d 2018-07-16) 2018-07-18 11:25:30 +02:00
Simon Sapin
e397ca06d8 Avoid use of deprecated (and buggy) std::env::home_dir 2018-07-18 11:25:30 +02:00
bors-servo
a4c93bcc8c
Auto merge of #21196 - Eijebong:euclid, r=nox
Update euclid to 0.18

<!-- 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/21196)
<!-- Reviewable:end -->
2018-07-18 03:34:56 -04:00
Bastien Orivel
9e446971a8 Update euclid to 0.18 2018-07-18 09:27:24 +02:00
bors-servo
88664912ed
Auto merge of #21193 - servo:jdm-patch-17, r=asajeffrey
Recreate virtualenv from scratch when syncing WPT

This fixes #21180 and attempts to work around #21145.

<!-- 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/21193)
<!-- Reviewable:end -->
2018-07-17 13:07:16 -04:00
Josh Matthews
8084cf882d
Revert f37699d682 to fix perf test. 2018-07-17 12:03:13 -04:00
Josh Matthews
e1f4604e66
Recreate virtualenv from scratch when syncing WPT 2018-07-17 11:58:36 -04:00
bors-servo
a55cbc6687
Auto merge of #21190 - jdm:lets-get-physical, r=gw3583
Fix hittesting on HiDPI screens

This fixes some regressions introduced in #21087 due to treating logical coordinates as physical ones without converting between them correctly.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21168
- [x] These changes do not require tests because we do not have the ability to test embedding input yet.

<!-- 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/21190)
<!-- Reviewable:end -->
2018-07-17 08:56:18 -04:00
Josh Matthews
b260052753 Convert logical glutin coordinates to physical coordinates for input events. 2018-07-16 22:55:45 -04:00
bors-servo
a69c117da2
Auto merge of #21187 - tigercosmos:fetch, r=jdm
Make fetch() API use same-origin credentials by default

<!-- 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 #21146 (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/21187)
<!-- Reviewable:end -->
2018-07-16 22:46:30 -04:00
tigercosmos
af3741ab26 Make fetch() API use same-origin credentials by default 2018-07-17 10:28:24 +08:00
bors-servo
3003e6f897
Auto merge of #21184 - servo:webgl, r=jdm
Use active uniforms data to implement gl.uniform* checks

<!-- 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/21184)
<!-- Reviewable:end -->
2018-07-16 19:46:05 -04:00
Anthony Ramine
476640c3ab Use active uniforms data to implement gl.uniform* checks 2018-07-17 01:26:44 +02:00
bors-servo
1fabd10f7e
Auto merge of #21183 - servo:build-package, r=paulrouget
Android: run ./mach package implicitly after ./mach build

The result of `./mach build` for Android is a `.so` file that cannot be used on its own, so running build without package is presumably never useful.

<!-- 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/21183)
<!-- Reviewable:end -->
2018-07-16 16:37:12 -04:00
bors-servo
bd6f3cb5ee
Auto merge of #21188 - emilio:gecko-sync, r=emilio
style: Sync changes from mozilla-central.

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

See each individual commit for details. I skipped the import of bug 1467277, which can't be done until euclid is updated everywhere.
2018-07-16 14:01:41 -04:00
Emilio Cobos Álvarez
5227c7572e
style: Gecko build fix for Servo PR #21156.
MozReview-Commit-ID: FbN0hiUGzYa
2018-07-16 19:44:31 +02:00
Emilio Cobos Álvarez
bad4f7d729
style: Gecko build fix for Servo PR #21139.
MozReview-Commit-ID: 3ocJrRB3jeO
2018-07-16 19:44:23 +02:00
Emilio Cobos Álvarez
fde93a60fe
style: Fix build and unit tests. 2018-07-16 19:44:19 +02:00
Dan Glastonbury
96e812e732
style: Correct background/foreground ratio mixing.
Bug: 1467622
Reviewed-by: xidorn
MozReview-Commit-ID: InAZVcH2Vkt
2018-07-16 19:44:04 +02:00