Граф коммитов

556 Коммитов

Автор SHA1 Сообщение Дата
Manish Goregaokar 6e1c287d74 servo: Merge #12409 - Update clippy, improve clippy integration (from Manishearth:clippy); r=nox
This makes it much easier to run rustfix on servo

(rustfix is still pretty buggy though)

Source-Repo: https://github.com/servo/servo
Source-Revision: 74925460952ac070ff5e365b6fe6b886fd81861b
2016-07-12 07:29:25 -07:00
Xidorn Quan e7a3b37eba servo: Merge #12377 - Build geckolib with MozillaBuild on Windows (from upsuper:build-with-mozillabuild); r=metajack
<!-- Please describe your changes on the following line: -->

Given #12319 removes the direct dependency of geckolib to gcc, geckolib is now compilable without gcc, and thus builds within MozillaBuild.

This changeset also changes the triple to use the MSVC backend rather than GNU for Windows . I'm not sure whether this change is necessary, but given we use MSVC to compile Gecko on Windows, I think we would eventually need this anyway. Triples for MinGW64 and Cygwin are unchanged, so that existing build targets should not be broken.

Servo itself is still not buildable with MozillaBuild. To make that work, some changes to mozjs are necessary as well.

It is probably worth some infra coverage to avoid regression.

---
<!-- 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 (on MinGW)
- [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
- [x] These changes do not require tests because it only changes build system

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

r? @bholley

Source-Repo: https://github.com/servo/servo
Source-Revision: 184b1ba91b5e73d4bbeacc9093f31f4c8570c0f4
2016-07-11 10:37:16 -07:00
Owen Coutts 6795286f7c servo: Merge #12318 - [tidy] prevent duplicate json keys (from tallowen:tidy-features); r=frewsxcv
Throws a tidy error when duplicated keys are present.
![screenshot from 2016-07-07 16-54-17](https://cloud.githubusercontent.com/assets/557689/16658260/fd19cece-4465-11e6-89b1-a79296ba6a72.png)

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

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 638eb80110cf07ec2f07e43fd64a48042fe2925b
2016-07-10 19:15:35 -07:00
Simon Sapin ce39d5cda4 servo: Merge #12319 - Use a stable compiler for build-geckolib (from servo:stable-geckolib); r=larsbergstrom+SimonSapin
<!-- 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 #11815 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because CI already runs `./mach build-geckolib`

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: e50e4f99bf4668d183226251d8ea55fa36f72fe0
2016-07-08 16:20:14 -07:00
Xidorn Quan dfc5204fe3 servo: Merge #12338 - Fix geckolib build for Windows (from upsuper:win-geckolib-fix); r=bholley
It contains several fixes to make `./mach build-geckolib` work on Windows.

Source-Repo: https://github.com/servo/servo
Source-Revision: 35a23bfef394fe451879f09979167b048a7bdc88
2016-07-08 11:14:48 -07:00
Owen Coutts d4264389b9 servo: Merge #12317 - [tidy] Test json parsing functionality (from tallowen:add-tidy-test); r=jdm
We didn't have a test for json parsing so lets start with that

---
<!-- 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 OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 34e53b1dca2202b1644e44258d67e52334e15bc4
2016-07-07 20:12:38 -07:00
Nikhil Shagrithaya 3a6c4f6d6d servo: Merge #12313 - test-tidy command now ignores files in subdirectories of ignored dirs (from cynicaldevil:tidy-test); r=Wafflespeanut
<!-- 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 #12225 .

I did not add a test for this, instead I added a directory with an empty file inside the ignored directory, and checked whether this file was being ignored or not.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 9c00331634c2c753637a873f600b9804e6145e62

--HG--
rename : servo/python/tidy/servo_tidy_tests/test_ignored/whee/test.rs => servo/python/tidy/servo_tidy_tests/test_ignored/whee/foo/bar.rs
2016-07-07 19:16:31 -07:00
Matt Brubeck 963bd5a370 servo: Merge #12271 - Fix installation location for downloaded std packages (from mbrubeck:host_triple); r=emilio
Fixes a "can't find crate for `std`" error in mach build. Regression from #11945. r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: beff8ee68f9116971e8d14b182a574ef9f42a994
2016-07-06 07:31:08 -07:00
Emilio Cobos Álvarez ee9d35391e servo: Merge #12212 - stylo: Move all binding-generator logic code to a python script (from emilio:stylo-regen-script); r=bholley
<!-- 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] These changes do not require tests because tooling

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

---

This not only makes us more consistent with the rest of the codebase but also:

 * Makes us repeat less code like common flags and all that stuff.
 * Reduces the noise of the build: You only get the output of the commands on
   failure or when you pass the -v flag.
 * Makes you able to select a single kind of build or multiple in the same
   place.

I've basically kept the regen.sh script because of the LIBCLANG_PATH checks, but
at least from Linux I don't need them anymore. Also, that logic could be moved
to the new script.

The whole point of this isn't only making it prettier and easier to use, but
also allowing me to write more complex logic in the binding generator scripts,
that I will probably need to integrate the DOM enum types we need for animations
and such easily (can't be just an include, because that pulls in another header
with the same name bringing a lot of DOM and IDL churn).

For reference, here's a successful regen round with the script:

```
./regen.py --target all /home/emilio/projects/moz/stylo/gecko/obj-x86_64-pc-linux-gnu/
[BINDGEN] structs::release in "/home/emilio/projects/moz/stylo/gecko/obj-x86_64-pc-linux-gnu/"... OK
[RUSTC]... OK
[RUSTC_TEST]... OK
test result: ok. 168 passed; 0 failed; 0 ignored; 0 measured
[BINDGEN] structs::debug in "/home/emilio/projects/moz/stylo/gecko/obj-x86_64-pc-linux-gnu/"... OK
[RUSTC]... OK
[RUSTC_TEST]... OK
test result: ok. 169 passed; 0 failed; 0 ignored; 0 measured
[BINDGEN] bindings::None in "/home/emilio/projects/moz/stylo/gecko/obj-x86_64-pc-linux-gnu/"... OK
```

---

r? @bholley

Maybe @jgraham and/or @Wafflespeanut want to take a look to criticize my (lack of) pythonism ;-)

Source-Repo: https://github.com/servo/servo
Source-Revision: e78459e6670b218970dfebb189a0c8ef7614951f
2016-07-06 00:12:58 -07:00
Gabriel Poesia 2ef28aab03 servo: Merge #11945 - Add mach build-stable to build with stable rustc (from gpoesia:master); r=SimonSapin
<!-- Please describe your changes on the following line: -->

Added mach subcommand (build-stable) to build servo and its dependencies using a stable version of rustc.

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

<!-- Either: -->
- [X] These changes do not require tests because they're in the build process. I've manually tested both build and build-stable several times and in different orders and it seems to work. If the mach subcommands are tested automatically somewhere, I'll be happy to add a test, but I couldn't find it.

This is an example of output I get, which is what I'd expect:

```plain
[gpoesia@gabriel-notebook servo]$ ./mach build
looking for rustc at /home/gpoesia/dev/servo/.servo/rust/2016-06-24/rustc-nightly-x86_64-unknown-linux-gnu/rustc/bin/rustc
Downloading Rust compiler...
Downloading Rust compiler: 100.0%
Extracting Rust compiler...
Rust compiler ready.
Downloading Host rust library for target x86_64-unknown-linux-gnu...
Downloading Host rust library for target x86_64-unknown-linux-gnu: 100.0%
Extracting Rust stdlib for target x86_64-unknown-linux-gnu...
Rust x86_64-unknown-linux-gnu libs ready.
Build completed in 0:00:01
[gpoesia@gabriel-notebook servo]$ ./mach build
Build completed in 0:00:02
[gpoesia@gabriel-notebook servo]$ ./mach build-stable
looking for rustc at /home/gpoesia/dev/servo/.servo/rust/rustc-1.9.0-x86_64-unknown-linux-gnu/rustc/bin/rustc
Rust compiler already downloaded. Use |bootstrap-rust --force| to download again.
Rust lib for target x86_64-unknown-linux-gnu already downloaded. Use |bootstrap-rust --force| to download again.
   Compiling log v0.3.6
   Compiling tenacious v0.2.1
   Compiling traitobject v0.0.1
   Compiling azure v0.4.6 (https://github.com/servo/rust-azure#4d72934a)
   Compiling crossbeam v0.2.9
/home/gpoesia/dev/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/tenacious-0.2.1/src/lib.rs:1:1: 1:42 error: #[feature] may not be used on the stable release channel
/home/gpoesia/dev/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/tenacious-0.2.1/src/lib.rs:1 #![feature(plugin_registrar, box_syntax)]
                                                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gpoesia/dev/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/tenacious-0.2.1/src/lib.rs:3:1: 3:27 error: #[feature] may not be used on the stable release channel
/home/gpoesia/dev/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/tenacious-0.2.1/src/lib.rs:3 #![feature(rustc_private)]
                                                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to 2 previous errors
Build failed, waiting for other jobs to finish...
error: Could not compile `tenacious`.

To learn more, run the command again with --verbose.
Build completed in 0:00:03
[gpoesia@gabriel-notebook servo]$ ./mach build-stable
looking for rustc at /home/gpoesia/dev/servo/.servo/rust/rustc-1.9.0-x86_64-unknown-linux-gnu/rustc/bin/rustc
Rust compiler already downloaded. Use |bootstrap-rust --force| to download again.
Rust lib for target x86_64-unknown-linux-gnu already downloaded. Use |bootstrap-rust --force| to download again.
   Compiling js v0.1.3 (https://github.com/servo/rust-mozjs#707bfb4f)
   Compiling serde_item v0.2.0
   Compiling encoding-index-tradchinese v1.20141219.5
   Compiling angle v0.1.0 (https://github.com/servo/angle?branch=servo#d0a2db05)
/home/gpoesia/dev/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_item-0.2.0/src/lib.rs:3:43: 3:74 error: #[feature] may not be used on the stable release channel
/home/gpoesia/dev/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_item-0.2.0/src/lib.rs:3 #![cfg_attr(not(feature = "with-syntex"), feature(rustc_private, plugin))]
                                                                                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
Build failed, waiting for other jobs to finish...
error: Could not compile `serde_item`.

To learn more, run the command again with --verbose.
Build completed in 0:00:37
[gpoesia@gabriel-notebook servo]$
```

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Github issue: #11806
Building with current stable rust (1.9.0) still fails because of
feature pragmas in some dependencies (e.g. serde_item).

Source-Repo: https://github.com/servo/servo
Source-Revision: 1e1db061c039d6e7635310c0c728cfb959322249

--HG--
rename : servo/resources/shaders/debug_color.fs.glsl => servo/ports/stable-rust/src/lib.rs
2016-07-05 07:17:48 -07:00
Travis Dean 60ed5d9499 servo: Merge #12243 - Add style check and test for else braces (from TravisDean:else-brace-check); r=ConnorGBrewster
<!-- Please describe your changes on the following line: -->
Added a regex check to enforce project style guidelines. Added unit check. Catches:
```
}
else {
```
when it should be
`} else {`

---
<!-- 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 (no core files changed)
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #12234 (github issue number if applicable).

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: e21b47c2cc14897380a8c4ef2dfa650b1dd48ab5
2016-07-04 16:52:19 -07:00
Jacob Thomas 8acac208e5 servo: Merge #12088 - Change colons to dashes in package name (from this-jacob:colon_to_dash); r=ConnorGBrewster
<!-- Please describe your changes on the following line: -->

Updating packaging so that packages use '-' instead of a ':'

r? @ConnorGBrewster

---
<!-- 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] These changes fix #11984  (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] `./mach test-tidy` does not report any errors
- [X] These changes do not require tests because they are updating packaging

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: bb18e99597554b104b071adc96521895f550286d
2016-07-03 05:42:41 -07:00
Marco Neumann 0c80613385 servo: Merge #12020 - Add shebang to Linux runservo.sh (from crepererum:fix/shebang); r=aneeshusa
<!-- Please describe your changes on the following line: -->
Shebang is missing and therefore `./runservo.sh` does not work under some environments.

I've chosen to use `/usr/bin/env sh` instead of `/bin/sh` or `/usr/bin/sh` to auto-select the right `sh` executable depending on the environment.

---
<!-- 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] These changes do not require tests because it does not affect servo itself but rather the resulting package under some environments.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 1ed06777ee1e69c8b56715c897a5bd66ad9e235e
2016-07-01 17:33:22 -07:00
Connor Brewster 8524af0ca3 servo: Merge #11982 - Copy resources on linux package (from ConnorGBrewster:resources_linux_package)
r=glennw, connorgbrewster

Source-Repo: https://github.com/servo/servo
Source-Revision: 50dca21a9775961a02469e684fcf6e908d2c4fe2
2016-06-30 23:38:06 -05:00
Lars Bergstrom 53a7f8591b servo: Merge #11977 - Rollup of 2 pull requests (from larsbergstrom:rollup); r=larsbergstrom
- Successful merges: #11975, #11976
- Failed merges:

Source-Repo: https://github.com/servo/servo
Source-Revision: 63d99c188cbc37a907e887a61e762300f60960d6
2016-06-30 21:26:47 -05:00
Cameron Paul e4f50cdbe4 servo: Merge #11262 - Add `--version` flag (from campaul:add_version_flag); r=Manishearth
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy --faster` does not report any errors
- [X] These changes fix #11241 (github issue number if applicable).

Either:
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

Not 100% sure of a good way to test this, so I'm submitting as is for feedback. Manually testing it appears to work fine.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5478e605aef93cc384b709688cc68e3ed854a68b
2016-06-29 09:05:35 -05:00
Connor Brewster b75d41f744 servo: Merge #11911 - Fix dylib relinking issue (from cbrewster:app_packaging); r=larsbergstrom
<!-- Please describe your changes on the following line: -->
I had to run `install_name_tool` on some dylibs for their deps and not just on the servo binary itself. I have checked and Servo.app runs on machines without extra things installed (ex. harfbuzz).

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because fixing mac packaging.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: f6db3518ca9d81ea8fd938586252e690755d7445
2016-06-28 20:05:12 -05:00
Connor Brewster 8718b7ffd6 servo: Merge #11899 - Create Servo.app and dmg on mac package (from cbrewster:app_packaging); r=larsbergstrom
<!-- Please describe your changes on the following line: -->
This creates Servo.app and puts it in a dmg along with a symlink to `/Applications`.

---
<!-- 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
- [X] These changes do not require tests because creating packager

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 7b2080c5b7c933f74c0d92249a66f8602340ebbe

--HG--
rename : servo/resources/prefs.json => servo/resources/package-prefs.json
2016-06-28 14:58:06 -05:00
Per Lundberg 70682c2306 servo: Merge #11740 - Added detection for case-sensitive file systems (from perlun:detect-case-sensitive-file-system); r=metajack
- [X] `./mach test-tidy` does not report any errors
- [X] These changes do not require tests because they only change Mach code

This is needed for the moment because of a bug in virtualenv (reported upstream).

r? @metajack (you were the one who suggested that we check this. I did it in a slightly simpler way since I realized we over-complicated things a bit when talking about it the other day.)

Source-Repo: https://github.com/servo/servo
Source-Revision: 887376b225d1969b04b8893afffaa4d65ea6ba1a
2016-06-27 12:13:45 -05:00
Paul Rouget 3b9b52dfa2 servo: Merge #11849 - Fix preference name (from paulrouget:prefNameUpdate); r=jdm
<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because not testable

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Follow up of https://github.com/servo/servo/pull/11735. `.enabled` is missing in the python scripts.

Source-Repo: https://github.com/servo/servo
Source-Revision: 86d65b60647c185e656e3ae607a3762e667974ad
2016-06-24 06:48:53 -05:00
Ms2ger 9b6ed29b4b servo: Merge #11848 - Update web-platform-tests to revision 346d5b51a122f7bb1c7747064499ef281a0200f7 (from servo:wpt-20160624); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 235a6a6380f50985dcbce9fa3901551cc111c954
2016-06-24 04:36:53 -05:00
mrmiywj f80f6f7953 servo: Merge #11735 - add reload keyboard shortcut (from mrmiywj:reload-page-shortcut); r=jdm
<!-- 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 #11686  (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because this cannot be automated tested.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: eeed5b6ec26f7d78a938abb2d4b6a1cce8bf2472
2016-06-23 10:58:54 -05:00
Simon Sapin 7649cc9cad servo: Merge #11835 - Use our copy of RefCell for style data (from servo:diy-as-unsafe-cell); r=nox
<!-- Please describe your changes on the following line: -->

This allows removing `#![feature(as_unsafe_cell)]` in geckolib and make progress towards #11815.

---
<!-- 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 part of #11815.

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require new tests because they don’t introduce no functional changes.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 3de14d9ca0cf54e6a2ae4eac5ff47e38e724b77b
2016-06-23 09:19:28 -05:00
Simon Martin 472946daaa servo: Merge #11780 - Issue #11388: --debug and --browserhtml are not exclusive in 'mach run' (from simartin:issue_11388); r=metajack
<!-- Please describe your changes on the following line: -->
Fix ./mach run --debug --browserhtml
---
<!-- 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 #11388

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because they concern dev tooling and there's no testing infrastructure for "./mach run --debug"

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: ca26e95e440371c5a378f65b2d4e980a2f2b807f
2016-06-17 18:36:07 -05:00
Josh Matthews 2bb08dd5b3 servo: Merge #11771 - Pass Ctr+C to underlying process when invoking commands through mach (from jdm:osx_gdb); r=Wafflespeanut
This is based on the patch in https://bugzilla.mozilla.org/show_bug.cgi?id=996823 and the [suprocess.check_call documentation](https://docs.python.org/2/library/subprocess.html#subprocess.check_call).

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #11770 (github issue number if applicable).
- [X] These changes do not require tests because we can't test the mach subprocess invocation

Source-Repo: https://github.com/servo/servo
Source-Revision: f029e1a5cdd7c1d6466397b54edb69d92a0b1133
2016-06-17 08:13:07 -05:00
Ravi Shankar 5bd20e784d servo: Merge #11761 - Tidy test for ignoring attributes (from Wafflespeanut:tidy_test); r=emilio
This should've been done in #11755

Source-Repo: https://github.com/servo/servo
Source-Revision: 17b63706c227ae4e6bfa260f357f34261f5e5dd2
2016-06-16 14:36:42 -05:00
Ravi Shankar 9dd46f9018 servo: Merge #11755 - Removed an unused function and minor cleanup (from Wafflespeanut:tidy_fixes); r=nox
fixes #11679

Source-Repo: https://github.com/servo/servo
Source-Revision: ff67f80f36106cba4a89c48d8c8d59c9880856c7
2016-06-16 07:14:54 -05:00
Saurabh Badhwar acee66a283 servo: Merge #11621 - Make mach test-tidy consider ignored dirs (from h4xr:mach_fix); r=Wafflespeanut
Made changes so that mach test-tidy considers the ignored directories

Fixes #11386

Source-Repo: https://github.com/servo/servo
Source-Revision: bc2f4c3450787654c955c7b4ce08d98f1f168e70
2016-06-14 23:33:52 -05:00
Florian Duraffourg d7d897e9bd servo: Merge #11513 - Add mach command to update public domain list and use a HashSet for matching (from fduraffourg:pr11216); r=jdm
<!-- Please describe your changes on the following line: -->
Add a `mach update-pub-domains` command that update the public domain list used by servo.
Replace the Vec matching with a HashSet which is way quicker.

---
<!-- 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 #11216

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 4dbba2dcabbde11b01a95078ba75742aff3fc44d
2016-06-09 12:54:42 -05:00
Adam Casey a80b2ef4d0 servo: Merge #11543 - Fix ./mach --browserhtml (from UK992:browserhtml); r=metajack
Rebased https://github.com/servo/servo/pull/10943 and simplified by https://github.com/servo/servo/pull/10943#issuecomment-221643014.
Fixes path related issue with browser.html on Windows and enable borderless window only on OSX.

r? @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: 28c0b869cab72020edbc54e5ccd761dc2dbb92b2
2016-06-08 19:01:42 -05:00
Patrick Walton 28bd024169 servo: Merge #11646 - servo: Add an `Info.plist` on the Mac and opt into integrated graphics (from pcwalton:real-info-plist); r=metajack
Discrete GPUs cause power use problems and tend to perform badly
with WebRender.

See:

* https://developer.apple.com/library/mac/qa/qa1734/_index.html

* https://reverse.put.as/2013/05/28/gimmedebugah-how-to-embedded-a-info-plist-into-arbitrary-binaries/

r? @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: e51ce5d1bac31afdadc9a4c86175fac00677b31a
2016-06-08 15:33:38 -05:00
Daniel 366c4ddf00 servo: Merge #11516 - add update-manifest command (from DDEFISHER:master); r=metajack
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #11369

Source-Repo: https://github.com/servo/servo
Source-Revision: 1e968b0d3f72199d69f35831bcc9e8ed7d4bbc33
2016-06-06 22:54:13 -05:00
edunham dc88975755 servo: Merge #11210 - Start on Mach package (from edunham:mach-package); r=larsbergstrom
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
  - these changes don't touch anything that mach build touches>
- [ ] `./mach test-tidy --faster` does not report any errors
  - Tidy errors on some dependencies that I think we'll need for real `package` but aren't using for android
- [X] These changes address #9918 (github issue number if applicable).

Either:
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because I don't think Mach has tests yet?

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

Source-Repo: https://github.com/servo/servo
Source-Revision: bc52617d3351d64cfd1479c5088b591370529f59
2016-06-06 15:19:55 -05:00
Daniel Robertson 2765a979e9 servo: Merge #11626 - Add FreeBSD to `host_triple` (from danlrobertson:freebsd-host-triple); r=larsbergstrom
Add freebsd to `host_triple` so that the correct nightly compiler will be downloaded. There are still other crates that need patching to compile, but this is a start.
---
- [ ] `./mach build -d` does not report any errors
  - Other crates need patches
- [X] `./mach test-tidy` does not report any errors
- [X] These changes do not require tests because: the correct compiler is not downloaded without this commit

Part of: #11625

Source-Repo: https://github.com/servo/servo
Source-Revision: fada22ab53a532a9adbad0bfc0d5b5d7d4b8cd26
2016-06-05 16:07:36 -05:00
mrmiywj 368fab86d1 servo: Merge #11190 - add &Root<T> checker (from mrmiywj:Root-tidy-checker); r=jdm
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 #11137  (github issue number if applicable).

Either:
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

Source-Repo: https://github.com/servo/servo
Source-Revision: 93f137f06d36059105d62ffc6829d65f7efe0d9d
2016-06-05 08:48:58 -05:00
Cameron McCormack 8de01da586 servo: Merge #11549 - Generate debug and release Gecko bindings (from heycam:release-bindings); r=heycam
<!-- Please describe your changes on the following line: -->

This makes `generate_style_structs.py` generate bindings for both `DEBUG` and non-`DEBUG` Gecko configurations.  The corresponding generated bindings are used in geckolib based on `cfg(debug-assertions)`.

I regenerated bindings on top of Gecko master plus https://bugzilla.mozilla.org/show_bug.cgi?id=1277154 (landing soon), which tripped up the bindgen due to bitfield layout issues.

r? @emilio

---
<!-- 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
- [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
- [X] These changes do not require tests because they are geckolib only

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 71db2705edbf2381849af0e2edf7743c286881ec

--HG--
rename : servo/ports/geckolib/gecko_bindings/structs.rs => servo/ports/geckolib/gecko_bindings/structs_debug.rs
rename : servo/ports/geckolib/gecko_bindings/structs.rs => servo/ports/geckolib/gecko_bindings/structs_release.rs
2016-06-03 01:55:33 -05:00
Andrew Shu c07ac3d758 servo: Merge #11570 - mach: Introduce --all flag to run all test suites (from talklittle:mach_test_9544); r=Manishearth
<!-- Please describe your changes on the following line: -->
Add `--all` argument to get `./mach test --all` for running all test suites. Remove broken `faster` argument passed to `test_tidy()` when running `./mach test`.

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because fixing `mach test`

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: fd03e02291623bea34d94fb4f12671d9735ed04e
2016-06-03 01:07:00 -05:00
Rahul Sharma d38a9a1c80 servo: Merge #11114 - implement related service worker interface and register method (from creativcoder:nav-sw); r=jdm
Fixes  #11091

Source-Repo: https://github.com/servo/servo
Source-Revision: cc017fc0b8619726f0c82649f41fdcf5595b19e4
2016-06-02 06:18:59 -05:00
Per Lundberg e9dcd1910d servo: Merge #11525 - Provide a better error message when downloading rustc fails (from perlun:better-error-when-rustc-download-fails); r=jdm
I was running into the error below locally. The previous version of the code hid away important details that helps when debugging; hence, this suggested change.

> Error downloading Rust compiler: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590). URL: https://static-rust-lang-org.s3.amazonaws.com/dist/2016-05-17/rustc-nightly-x86_64-pc-windows-gnu.tar.gz

Source-Repo: https://github.com/servo/servo
Source-Revision: 8d7ceae1515057afc21c5c2e15d8e8d3683a16ce
2016-06-01 08:24:56 -05:00
Ms2ger e62a768075 servo: Merge #11504 - Update web-platform-tests to revision bda2059150dca8ab47f088b4cc619fcdc1f262fa (from servo:wpt-20160530); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: ef265b1c0bd0ad42ef6ea8588a9c3b3782308129
2016-05-30 07:43:00 -05:00
Lars Bergstrom 94c38d54c6 servo: Merge #11474 - Remove the gonk port (from larsbergstrom:remove_gonk); r=metajack
<!-- Please describe your changes on the following line: -->
This removes the code and support infrastructure for the gonk port.

r? @metajack
---
<!-- 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
- [ x] These changes do not require tests because there are no tests

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: e3b2d6aef0bbf96cc55f1235461d757cf685f0e0
2016-05-27 19:34:55 -05:00
Josh Matthews 7f10c47c0a servo: Merge #11472 - Report blank lines that follow an open brace (from jdm:wip); r=mbrubeck
This automates something that I find myself frequently commenting on in PRs.

---
<!-- 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] There are tests for these changes OR

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 3ec20d9cf517c67f4d280e8958cc58c4c2b4fbb2
2016-05-27 18:14:25 -05:00
Matt Brubeck fb7884bf46 servo: Merge #11378 - Default to the same Cargo features in all build commands (from mbrubeck:debug-mozjs); r=larsbergstrom
Fixes #8308 and #7327. r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 2d4941660bd3a4a91f82145a3a468fbf165eaf94
2016-05-27 17:15:24 -05:00
Cullen Rhodes 2bd22f97ce servo: Merge #11329 - Report use statements that use {} with only one entry (from c-rhodes:11320); r=jdm
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 --faster` does not report any errors
- [X ] These changes fix #11320  (github issue number if applicable).

Either:
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2f9796fa696e9514280777398467696dd4f004b3
2016-05-27 07:11:17 -05:00
Rebecca e65d7f0b7a servo: Merge #11429 - Partially enable referrer-policy tests with some modifications (from nox:unlimited-referrer-works); r=jdm
This is a part of @rebstar6's work on #11422, with only her test fixes and the enabling of them, to ease review on the actual implementation.

Source-Repo: https://github.com/servo/servo
Source-Revision: c432e9ac540add7a7224cb20af98519544ae0189
2016-05-26 18:21:04 -05:00
Simon Sapin 73404ec327 servo: Merge #11374 - Don’t include microsecons when reporting build times (from servo:no-microseconds); r=Ms2ger
"0:03:40.817715" is harder to read and no more informative than "0:03:40"

Source-Repo: https://github.com/servo/servo
Source-Revision: 345b8b9c00b146259b2b665775c3a5aa7ded6056
2016-05-25 21:31:48 -05:00
Mitchell Hentges 22e66c3da8 servo: Merge #11409 - Remove --faster flag from test-tidy, go fast by default. Fixes 11217 (from mitchhentges:test-tidy-faster-default); r=aneeshusa
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 #11217 (github issue number if applicable).

Either:
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because they just change command-line options, which aren't tested

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

This finishes #11267

Source-Repo: https://github.com/servo/servo
Source-Revision: ebb690d28c3c36ffba7059b64361fed3847861c7
2016-05-25 17:16:15 -05:00
Per Lundberg 5bc2b16822 servo: Merge #11393 - Fixed the build tools to handle cargo being named cargo.exe (from perlun:fix/find-cargo-exe-on-windows); r=metajack
It's actually quite weird that I had to do this, but I got errors without it (on Windows). I noted the `BIN_SUFFIX` existed elsewhere so it felt logical to use it here also.

Source-Repo: https://github.com/servo/servo
Source-Revision: 40b2d424c08ce089dba8800fa310097276b3607e
2016-05-25 12:41:30 -05:00
Mitchell Hentges a2eb9bbc8a servo: Merge #11267 - Add --all option to `mach test-tidy`, with compatibility with --faster (from mitchhentges:test-tidy-sanic-by-default); r=aneeshusa
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 --faster` does not report any errors
- [X] These changes partially fix #11217

Either:
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because it just affects `mach` script parameters

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

Source-Repo: https://github.com/servo/servo
Source-Revision: b6e06bd83740ea5dc3385f88daf88677fc676f11
2016-05-24 16:54:12 -07:00
Mitchell Hentges fd9af4a433 servo: Merge #11278 - Reduce 'android-18' duplication by putting it in $ANDROID_TARGET env variable (from mitchhentges:8348-reduce-duplication); r=aneeshusa
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 --faster` does not report any errors
- [x] These changes fix #8348

Either:
- [X] These changes do not require tests because ~~I'm lazy~~ it's a configuration change, and asserting default values is usually tedious and not very helpful

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

---

Allegedly, this broke the build [back in the day](https://github.com/servo/servo/pull/8519).
Going to see if it's a piece of cake to land now

Source-Repo: https://github.com/servo/servo
Source-Revision: ea38ccfdfe12c64d41ff460f358e21cafead8414
2016-05-24 13:08:05 -07:00
Paul Rouget 39c45544a4 servo: Merge #11332 - browserhtml update (from paulrouget:bhtmlUpdate); r=Manishearth
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy --faster` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

Either:
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because it's a package update

Source-Repo: https://github.com/servo/servo
Source-Revision: aa9fc4e0549c54fafef358a50f32f520c9014ba6
2016-05-22 21:28:17 -07:00
Jack Moffitt 7477ed85bc servo: Merge #11314 - Make Servo DPI aware on Windows (from metajack:window-hi-dpi); r=mbrubeck
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 --faster` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

Either:
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because testing would be overly difficult

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

This implements system level DPI awareness for Windows. It has three
parts:

1. Add a application manifest which is copied alongside servo.exe during
build that declares our DPI awareness level. This is needed otherwise
DPI queries will return 96dpi and our application will be upscaled on
high DPI displays.

2. Rename hidpi_factor to avoid confusion with Glutin's hidpi_factor
which does something else.

3. Correctly convert windows sizes on window creation for
Windows. Unlike OS X, Windows uses device pixels for window creation.

Source-Repo: https://github.com/servo/servo
Source-Revision: 63bbc13fffeaa14f15ff9270f7d6355fab4d3d56
2016-05-20 22:41:07 -07:00
Bobby Holley 7d70cec87c servo: Merge #11242 - Add basic support for Gecko atoms (from bholley:gecko_atoms); r=emilio
This is a rough initial implementation of gecko atoms. This allows us to get rid of the custom rust-selectors branch we use to build stylo.

The gecko changes are at https://bugzilla.mozilla.org/show_bug.cgi?id=1273771

Source-Repo: https://github.com/servo/servo
Source-Revision: e3be7184fb79d9d0b7b2a491769a58c59a990460
2016-05-18 11:35:28 -07:00
Ms2ger ec0e4ebb3f servo: Merge #11243 - Move constellation into its own crate (from Ms2ger:constellation); r=nox
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 --faster` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

Either:
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because refactoring

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

Source-Repo: https://github.com/servo/servo
Source-Revision: 872565bb4bd2883c6fe926da74e3b3e2b74e6d34

--HG--
rename : servo/components/compositing/constellation.rs => servo/components/constellation/constellation.rs
rename : servo/components/compositing/timer_scheduler.rs => servo/components/constellation/timer_scheduler.rs
2016-05-18 02:11:46 -07:00
Florian Duraffourg f0de867f29 servo: Merge #11196 - Add unit tests for cookies handling (from fduraffourg:master); r=jdm
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 #9965

Either:
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

Add unit tests for the `net` component about cookies. The tests are generated
with a new `mach update-net-cookies` command from this repo: https://github.com/abarth/http-state.

This PR also includes two trivial bug fixes about cookie handling.

From all the tests included, the following ones are currently failing:

- cookie_http_state::test_0003
- cookie_http_state::test_0006
- cookie_http_state::test_attribute0004
- cookie_http_state::test_attribute0005
- cookie_http_state::test_attribute0007
- cookie_http_state::test_attribute0008
- cookie_http_state::test_domain0017
- cookie_http_state::test_mozilla0001
- cookie_http_state::test_mozilla0002
- cookie_http_state::test_mozilla0003
- cookie_http_state::test_mozilla0005
- cookie_http_state::test_mozilla0007
- cookie_http_state::test_mozilla0009
- cookie_http_state::test_mozilla0010
- cookie_http_state::test_mozilla0013

`test_000[36]` and `test_mozilla*` are failing because there is currently no
method to clean a `net::cookie_storage` from expired cookies.

`test_attribute000[4578]` are failing because hyper does not parse the `Secure`
attribute correctly. I will open an issue on the upstream project.

`test_domain0017` fails because the TLD .org is not on the PUB_DOMAINS list.

Source-Repo: https://github.com/servo/servo
Source-Revision: c519739b7bcf408f2f671a89729aa30f39dd67a1
2016-05-17 16:34:16 -07:00
Anthony Ramine 61bd80a453 servo: Merge #11191 - Update bitflags to 0.7 (from servo:bitflags); r=pcwalton
- [x] https://github.com/servo/cocoa-rs/pull/126 https://github.com/servo/cocoa-rs/pull/127 https://github.com/servo/cocoa-rs/pull/128 https://github.com/servo/glutin/pull/91
- [x] https://github.com/cyderize/rust-websocket/pull/78
- [x] https://github.com/sfackler/rust-openssl/pull/393
- [x] https://github.com/PistonDevelopers/image-png/pull/36
- [x] https://github.com/servo/rust-selectors/pull/87
- [x] https://github.com/vberger/wayland-kbd/pull/12
- [x] https://github.com/vberger/wayland-client-rs/pull/50
- [x] https://github.com/netvl/xml-rs/pull/122 https://github.com/netvl/xml-rs/pull/123

Source-Repo: https://github.com/servo/servo
Source-Revision: 6c08ad857ea4139bb266c481eebe4315bdd460d5
2016-05-17 15:43:14 -07:00
Anthony Ramine 89660bce3f servo: Merge #11211 - Implement --pref in test-wpt (from nox:test-wpt-pref); r=jgraham
Needed to test GC zeal.

Source-Repo: https://github.com/servo/servo
Source-Revision: 02399d90c175239f7ed9fafa1470dc8e0e9820eb
2016-05-17 12:35:45 -07:00
aeischeid 0ca1c50fb0 servo: Merge #10713 - add tidy test for space after ":" in stucts (from aeischeid:master); r=jdm
Addresses issue #10702

the tidy self-test doesn't seem to catch the `member_name:"Foo"` line like it should. the regex follows similar pattern in the file and works in my regex tester tool, so not really sure what is going on there.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8c2c0bd964bfbf1a2d7494bd8fbbdd263173ef7d
2016-05-11 16:27:37 -07:00
Bobby Holley dad21c2a95 servo: Merge #11121 - Hoist gecko bindings into their own crate (from bholley:hoist_bindings); r=mbrubeck
This will be helpful for leveraging the bindings with our nsIAtom-backed
string_cache replacement.

Source-Repo: https://github.com/servo/servo
Source-Revision: 49fd06089de8357c0d139f6aa623cde55ccd9ef0

--HG--
rename : servo/ports/geckolib/bindings.rs => servo/ports/geckolib/gecko_bindings/bindings.rs
rename : servo/ports/geckolib/gecko_style_structs.rs => servo/ports/geckolib/gecko_bindings/structs.rs
rename : servo/ports/geckolib/tools/.gitignore => servo/ports/geckolib/gecko_bindings/tools/.gitignore
rename : servo/ports/geckolib/tools/README.md => servo/ports/geckolib/gecko_bindings/tools/README.md
rename : servo/ports/geckolib/tools/regen_style_structs.sh => servo/ports/geckolib/gecko_bindings/tools/regen_style_structs.sh
rename : servo/ports/geckolib/tools/setup_bindgen.sh => servo/ports/geckolib/gecko_bindings/tools/setup_bindgen.sh
2016-05-11 14:59:04 -07:00
Matt Brubeck ae38180d6b servo: Merge #11122 - Use the same build environment and features for CEF, Servo, Gonk, Geckolib (from mbrubeck:unify-builds); r=larsbergstrom
* Remove unnecessary dependencies and features from top-level Cargo.tomls.  The features for each crate will be computed based on the union of features specified in the dependency graph.  Specifying the same ones again just adds more ways for them to get out of sync.
* Move all cargo build environment variables into CommandBase

Fixes #11112. r? @metajack

(Not included: CI test to make sure #11112 doesn't regress again.)

Source-Repo: https://github.com/servo/servo
Source-Revision: 7f76e3ba74a11f1f4bb46f12e17c06270175908f
2016-05-11 12:35:32 -07:00
Matt Brubeck 1edc0e5780 servo: Merge #11135 - Override $CARGO_HOME only if cargo-home-dir is in .servobuild (from mbrubeck:cargo-home); r=larsbergstrom
This preserves the fix from #11097 in the situation where `$CARGO_HOME` and `cargo-home-dir` in `.servobuild` are both present: `.servobuild` should win.

But it changes the behavior when `$CARGO_HOME` is present and `.servobuild` is not:  Then `$CARGO_HOME` should be used.

We now check the following values in order of priority and use the first one that is found:

1. `cargo-home-dir` in `.servobuild`
2. `CARGO_HOME` in the environment
3. default value (`<servo-repo>/.cargo`)

r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: fcebfcc1130b7b3e74f14c8375f825f148e0f152
2016-05-11 11:37:05 -07:00
Tetsuharu OHZEKI b9d8671144 servo: Merge #11097 - Override always 'CARGO_HOME' env variable (from saneyuki:cargo_home); r=larsbergstrom
This use always `cargo-home-dir` in `/.servobuild` even if you set `CARGO_HOME` in your shell.

If you use [racer][racer] with [rustup (multirust.rs)][rustup], you may set `CARGO_HOME` env variable to your shell. Then the previous code would be a problem which does not use `cargo-home-dir` in `/.servobuild`.

[racer]: https://github.com/phildawes/racer
[rustup]: https://github.com/rust-lang-nursery/rustup.rs

Source-Repo: https://github.com/servo/servo
Source-Revision: 0617727f5b58d1c4ebb10cf081f5952b7961fbf4
2016-05-10 08:20:47 -07:00
Adrian Utrilla dab36bd33c servo: Merge #11073 - Added tox.ini (from autrilla:tox); r=Ms2ger
The default maximum line length Python linters use is 79, so a bunch of editor plugins complain about line lengths, unless you have a tox.ini telling the linter to ignore line lengths (E501) explicitly.

Source-Repo: https://github.com/servo/servo
Source-Revision: c3323f3c70ab53e5fe2f9aae7ba26b1a21cd622a
2016-05-09 01:37:09 -07:00
Adrian Utrilla 4833c5ded6 servo: Merge #11067 - Mach now shows stderr when a virtualenv or pip call fails (fixes #11055) (from autrilla:mach-errors); r=mbrubeck
Source-Repo: https://github.com/servo/servo
Source-Revision: c226bf85a9476a7a701a69974dfa0893c0e6bcb5
2016-05-07 13:15:40 -07:00
Matt Brubeck ec3d2c19c3 servo: Merge #11054 - Update hyper, openssl, wayland, threadpool, offscreen_gl_context (from mbrubeck:always-be-updating); r=Ms2ger
Gets rid of duplicate versions of bitflags and xml-rs!

Source-Repo: https://github.com/servo/servo
Source-Revision: e94f489e55e0fafed1c88b4d8f833f23545fc48b
2016-05-07 03:19:24 -07:00
Olaf Buddenhagen 43797c2d3d servo: Merge #11013 - mach run --debug: Use nicer syntax in rust-gdb/rust-lldb check (from antrik:rust-gdb-cleanup); r=Ms2ger
After actually reading a Python tutorial, I realised this can be handled
in a more elegant fashion :-)

Source-Repo: https://github.com/servo/servo
Source-Revision: 283eb4129664593f050e95c092e672a18f4658fc
2016-05-06 05:43:58 -07:00
Mátyás Mustoha 37825c1d2a servo: Merge #10916 - Use NEON build flag on ARM and AArch64 (from mmatyas:useneon); r=aneeshusa
The NEON flag is already used when building for Android, this patch enables it on other ARM devices too.

Note that this patch just adds the build flag to the compilation, for actually enabling the SIMD code in Servo, we'll also need #10900 (but it's not a dependency).

Source-Repo: https://github.com/servo/servo
Source-Revision: a233d1e39b9549f7b24937ca4de9de0719bb890c
2016-05-05 14:44:03 -07:00
Fabrice Desré ad8cb99e4e servo: Merge #11011 - Make build time display more human friendly (from fabricedesre:friendly-time); r=jdm
I mean, I like to convert seconds in my head, only almost every day ;)

Source-Repo: https://github.com/servo/servo
Source-Revision: fb5e00c2944533a4b365d26aadc41ca5b10cfefb
2016-05-05 03:27:31 -07:00
Matt Brubeck c6fe506242 servo: Merge #10997 - Upgrade to OpenSSL 1.0.1t on Android (from mbrubeck:openssl-1.0.1t); r=aneeshusa
Source-Repo: https://github.com/servo/servo
Source-Revision: 7a439e62371189a986f3339b80b70e76642dc060
2016-05-04 06:18:28 -07:00
Corey Farwell 5e3da56855 servo: Merge #10984 - Minor python/README fixes (from frewsxcv:python-cleanup); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 7533013c169ecda0733c3eefc3578e3e05c6cf03
2016-05-03 03:20:19 -07:00
Corey Farwell 5ba2811008 servo: Merge #10976 - Upgrade mach to 0.6; stop vendoring mach (from frewsxcv:novendor-mach); r=mbrubeck
When I originally rewrote Servo's mach bootstrapping (using virtualenv
w/ requirements.txt in #7103), I didn't specify mach as a requirement
because a new version hadn't been published in a while. Now that 0.6
is out, I asked the mach maintainers to publish a new version on PyPI,
so now we can fetch it like the other Python dependencies.

Fixes https://github.com/servo/servo/issues/10728.

Source-Repo: https://github.com/servo/servo
Source-Revision: e39ed932cb8c67eac98d44d00ed5bf642c026846
2016-05-02 18:07:25 -07:00
Matt Brubeck ffeadc8422 servo: Merge #10975 - Update even more dependencies (from mbrubeck:more-deps); r=KiChjang
Adds a temporary exception to allow multiple versions of lazy_static. PRs have already been filed on the packages that are still using the old version.

Source-Repo: https://github.com/servo/servo
Source-Revision: 361b2b900eeea821a9a79d8566f8cd31dfb1b1ea
2016-05-02 16:48:45 -07:00
askeing 7833eac81c servo: Merge #10923 - Remove dir by shutil.rmtree, remove file by os.remove (from askeing:fix_10922); r=jdm
fix #10922

Source-Repo: https://github.com/servo/servo
Source-Revision: 491b5ff47e392f37cb636bbbdeecf5cd6254b401
2016-04-30 03:42:18 -07:00
askeing 9d3b92895f servo: Merge #10901 - Handle HTTP specific errors then other errors when downloading rustc (from askeing:fix_10882); r=jdm
fix #10882

Source-Repo: https://github.com/servo/servo
Source-Revision: a98a53925f09a1b1d65c4680ca7990f9ac3ee1bc
2016-04-30 01:54:44 -07:00
CorcovadoMing 1e505b370b servo: Merge #10892 - Pass --no-patch by default to update_css (from CorcovadoMing:patch-1); r=Wafflespeanut
fix #10884 according to #9666

Source-Repo: https://github.com/servo/servo
Source-Revision: f932db34c85dcd65a46ddde3ce0d8f6c92c28b7b
2016-04-28 16:19:35 -07:00
Simon Sapin 294083b11e servo: Merge #10855 - Make css-properties.json checking a proper unit test (from servo:unit); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 55d14ffe001189a648c79512753fb9260a4b4c5d
2016-04-28 07:16:57 -07:00
askeing cdc6e6ecd3 servo: Merge #10835 - Adding parameter to tidy for skipping print text when running tests (from askeing:fix_10832); r=Wafflespeanut
fix #10832

Source-Repo: https://github.com/servo/servo
Source-Revision: b853383afc6760286018933b400925e1dbd6a48a
2016-04-25 12:48:49 -07:00
Maciej Skrzypkowski 56f2deedc3 servo: Merge #10775 - Test for tidy.check_lock function #9152 (from mskrzypkows:tidy_tests); r=Wafflespeanut
Source-Repo: https://github.com/servo/servo
Source-Revision: edb58040c82c9c333e0c0a04051e17ed6fb17bd7
2016-04-25 00:19:33 -07:00
Zbynek Winkler 30fc93bdf2 servo: Merge #10786 - tidy check for vim and emacs modelines (from zwn:tidy-modelines); r=Manishearth
See #10719.

It skips *.webidl files for now since I am not sure where they come from and if they should be edited in tree or not.

Source-Repo: https://github.com/servo/servo
Source-Revision: 04f8ae56db0ba9df798b39a5b2f1bb1e23d6dcf3
2016-04-22 21:46:30 -07:00
Zbynek Winkler 170606fd25 servo: Merge #10706 - Turn on unused-extern-crates warning (from zwn:unused-extern-crates); r=nox
As discussed in #9256. It should solve second half of the issue.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0a3a50a1293e4e8f3e04161014d03802765140c7
2016-04-22 13:40:38 -07:00
Zbynek Winkler c70e781908 servo: Merge #10751 - Report lines starting with && in tidy (from zwn:tidy-start-operator); r=Wafflespeanut
Partial implementation of the issue #10692 (the easy part).

Source-Repo: https://github.com/servo/servo
Source-Revision: d926b5d3762a101d5280266f806f2b979f73b695
2016-04-22 10:40:06 -07:00
Josh Matthews e52f0bb30b servo: Merge #10758 - Ensure that we aren't missing any errors in the tidy self-test (from jdm:tidy_check_completeness); r=Wafflespeanut
r? @Wafflespeanut

Source-Repo: https://github.com/servo/servo
Source-Revision: 6f801e3f3f806f55fd955a469ed175915f24d6cb
2016-04-22 02:40:29 -07:00
Per Lundberg 4887f0639b servo: Merge #10774 - Improve properties.mako.rs file structure, take 2 (from perlun:improve-mako-file-structure-v2); r=SimonSapin
This is a new attempt of #10586, after Simon Sapin's great cleanups in #10749 has landed. I have adjusted the changes to the new structure that was introduced, and also only done a few of the longhand ones. Will certainly continue on this as soon as we have a basic agreement that this style is reasonable.

Source-Repo: https://github.com/servo/servo
Source-Revision: 69acd8e1ccba8ff01e8f7fde4305956ba5ab866d
2016-04-22 01:50:28 +05:01
Ms2ger 4a10bd0f0e servo: Merge #10631 - Update wptrunner (from servo:wptrunner-20160415); r=KiChjang
Fixes #10540.
Fixes #10392.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9c172f49d08fe9019b0ba193ea4d75c6ddb95cda
2016-04-21 13:25:19 +05:01
Simon Sapin b45aa4fc4d servo: Merge #10749 - Prepare related files to make it easier to split up the Mako template (from servo:split-mako); r=nox
https://github.com/servo/servo/pull/10586#issuecomment-211490049

r? @nox

Source-Repo: https://github.com/servo/servo
Source-Revision: 3bfa4cc7414fea760ce5c503bfbcf25262acb9d7

--HG--
rename : servo/components/style/Mako-0.9.1.zip => servo/components/style/properties/Mako-0.9.1.zip
rename : servo/components/style/properties.html.mako => servo/components/style/properties/properties.html.mako
rename : servo/components/style/properties.mako.rs => servo/components/style/properties/properties.mako.rs
2016-04-21 10:09:09 +05:01
edunham 8391ee712f servo: Merge #10715 - Allow another wording of apache2/MIT (used by gaol) (from edunham:tidy-licenses); r=larsbergstrom
r? @larsbergstrom

need this for https://github.com/servo/servo/issues/10636

Source-Repo: https://github.com/servo/servo
Source-Revision: a129ce1bccf313db85547a5c32ecf8cd7aac489b
2016-04-20 01:31:16 +05:01
rwa acceb114f9 servo: Merge #10689 - Handle URLError in download() #10679 (from rwakulszowa:bootstrap-disconnected-message); r=Wafflespeanut
Print a human-friendly message if there is no internet connection.

Source-Repo: https://github.com/servo/servo
Source-Revision: f73c6143d5375db80fd2e0b7de96a99c78b5866b
2016-04-19 07:54:36 +05:01
askeing 74c4289c9f servo: Merge #10653 - Cleanup tidy for external deps (from askeing:cleanup_tidy_for_external_deps); r=edunham
fix #10639

Source-Repo: https://github.com/servo/servo
Source-Revision: 4d80e0634ed58580a7d30fc7f57e6bdf4aa4e19d
2016-04-19 01:52:01 +05:01
Adrian Utrilla 7d4e1d95db servo: Merge #10620 - Improved readability of ensure_bootstrapped (from autrilla:mach-command-improvements); r=Wafflespeanut
Source-Repo: https://github.com/servo/servo
Source-Revision: a87fa103b89213b9306be35dd26980aed22207e0
2016-04-17 10:52:41 +05:01
edunham cbb91b0763 servo: Merge #10635 - Docs and cleanup after moving tidy (from edunham:tidy-cleanup); r=larsbergstrom
Missed a couple things in https://github.com/servo/servo/pull/10590

`licenseck.py` was moved into `tidy/servo_tidy/licenseck.py` by the prior PR

r? @larsbergstrom (sorry for PR spamming today)

Source-Repo: https://github.com/servo/servo
Source-Revision: 9d23d7c0d98e24995243487b55abbf2acd1ec354
2016-04-16 05:36:09 +05:01
Adrian Utrilla 3dae856f68 servo: Merge #10616 - #10614: Mach install now builds servo if it hasn't been built before (from autrilla:10614); r=edunham
Source-Repo: https://github.com/servo/servo
Source-Revision: 7c615233d88967f79efbf78618eda3f3a8479e88
2016-04-16 00:13:04 +05:01
askeing 653eddd3d8 servo: Merge #10590 - Package tidy (from edunham:package-tidy); r=larsbergstrom
This fixes https://github.com/servo/servo/issues/861.

@askeing, I've copied your work from https://github.com/askeing/servo_tidy and attributed the commit to you. My commit in this PR is Git housekeeping to preserve `tidy`'s history. If you'd like to make additional changes, I've given you and @shinglyu push access to my fork of Servo. Apologies if this is already familiar, but the workflow for pushing to my branch is:

```
$ git remote add edunham git@github.com:edunham/servo.git
$ git checkout -b package-tidy
$ git pull edunham package-tidy
$ git push edunham package-tidy
```

Once this lands, I'll look at how to publish it to PyPI and automate that process.

Please don't merge this yet; we still need to discuss how the change should work around https://github.com/servo/servo/blob/master/python/servo/testing_commands.py#L33 , as I've yet to figure out how to get the egg to actually expose its tests.

Source-Repo: https://github.com/servo/servo
Source-Revision: bfe54539d290cb287e59e8ba106a54a3fab6201a

--HG--
rename : servo/python/tidy_self_test/__init__.py => servo/python/tidy/servo_tidy/__init__.py
rename : servo/python/licenseck.py => servo/python/tidy/servo_tidy/licenseck.py
rename : servo/python/tidy.py => servo/python/tidy/servo_tidy/tidy.py
rename : servo/python/servo/__init__.py => servo/python/tidy/servo_tidy_tests/__init__.py
rename : servo/python/tidy_self_test/incorrect_license.rs => servo/python/tidy/servo_tidy_tests/incorrect_license.rs
rename : servo/python/tidy_self_test/long_line.rs => servo/python/tidy/servo_tidy_tests/long_line.rs
rename : servo/python/tidy_self_test/rust_tidy.rs => servo/python/tidy/servo_tidy_tests/rust_tidy.rs
rename : servo/python/tidy_self_test/spec.webidl => servo/python/tidy/servo_tidy_tests/spec.webidl
rename : servo/python/tidy_self_test/speclink.rs => servo/python/tidy/servo_tidy_tests/speclink.rs
rename : servo/python/tidy_self_test/test.toml => servo/python/tidy/servo_tidy_tests/test.toml
rename : servo/python/tidy_self_test/tidy_self_test.py => servo/python/tidy/servo_tidy_tests/test_tidy.py
rename : servo/python/tidy_self_test/tidy_self_test.py => servo/python/tidy/servo_tidy_tests/tidy_self_test.py
rename : servo/python/tidy_self_test/whatwg_link.rs => servo/python/tidy/servo_tidy_tests/whatwg_link.rs
rename : servo/python/tidy_self_test/wrong_space.rs => servo/python/tidy/servo_tidy_tests/wrong_space.rs
2016-04-15 22:51:16 +05:01
Per Lundberg 2502211932 servo: Merge #10619 - mach: Added warning for update-cargo -a (from perlun:add-update-cargo-all-packages-warning); r=Wafflespeanut
To quote Lars Bergstrom:

> yeah, that's a giant footgun :-)

Source-Repo: https://github.com/servo/servo
Source-Revision: db4481b4509db4be83e0f77a66884feccd1878e0
2016-04-15 02:36:48 +05:01
Maciej Skrzypkowski 32e74de6e4 servo: Merge #10563 - Test for check_spec function, for tidy.py #9152 (from mskrzypkows:tidy_tests); r=mbrubeck
Additional test for tidy.py

Source-Repo: https://github.com/servo/servo
Source-Revision: efd672344274758b4cc670fe170a812a29a3c736
2016-04-13 22:59:41 +05:01
Saurav Sachidanand 77c1ecb4a7 servo: Merge #10565 - Update to byteorder 0.5 (from saurvs:master); r=Ms2ger
Finishes https://github.com/servo/servo/issues/10437.

Source-Repo: https://github.com/servo/servo
Source-Revision: d566f1c143e051b3c3d4ff9e9d8087af8b45dbd6
2016-04-13 19:58:50 +05:01
Maciej Skrzypkowski aa49e021e6 servo: Merge #9835 - Initial tests for tidy.py #9152 (from mskrzypkows:tidy_tests); r=Wafflespeanut
I've created tests for spaces check and license. Tell me if it's good direction so I'll add more tests.

Source-Repo: https://github.com/servo/servo
Source-Revision: 72eae396795d61c0f68d5f09dd84f0835bf10c79

--HG--
rename : servo/python/servo/__init__.py => servo/python/tidy_self_test/__init__.py
2016-04-07 19:16:11 +05:01
Ms2ger 540ad4129b servo: Merge #10453 - Update uuid (from Ms2ger:uuid); r=KiChjang
Source-Repo: https://github.com/servo/servo
Source-Revision: 5cf89fea48fb1fc58fd665384cbaa2060decff31
2016-04-07 15:49:20 +05:01
Adrian Utrilla a47a03917d servo: Merge #10442 - Issue #10441: Added caching support to mach bootstrap (from autrilla:mach-caching); r=Wafflespeanut
As suggested on the issue, files are stored as `.part` and moved to the original name when done.

Source-Repo: https://github.com/servo/servo
Source-Revision: e431bda9ea6c8a79c98d98668dd934fafd4f7092
2016-04-07 13:37:54 +05:01
Josh Matthews 2793074b6a servo: Merge #10435 - Fix warnings from old dependencies (from jdm:glgenbump); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: dc3f199043d4cf74b83f33c94960e199c0cfa7b3
2016-04-07 08:31:23 +05:01
Olaf Buddenhagen db5a22e721 servo: Merge #10447 - Update ipc-channel for two important bug fixes (from antrik:update-ipc_channel-5); r=jdm
This fixes https://github.com/servo/servo/issues/10260 by pulling in
https://github.com/servo/ipc-channel/pull/61 (fix receive for messages
close to packet size) and https://github.com/servo/ipc-channel/pull/62
(properly handle ENOBUFS); where the latter is not critical per se, as
there was a workaround already -- but that workaround aggrevated the
first bug, resulting in the urgent issue...

This bump requires a tidy override for `uuid`: `ipc-channel` was updated
to `uuid 0.2` in https://github.com/servo/ipc-channel/pull/63 (don't
know why...), while other crates are still with `0.1`. That was blocking
this urgent bug fix; and according to a discussion with @mbrubeck on
IRC, the override should be OK in this case.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0b951f65b969ccc3445079a70686cf2146e365d7
2016-04-07 04:49:03 +05:01
Saurav Sachidanand a69ed64e97 servo: Merge #10433 - Implement WebGLRenderingContext.getActiveUniform() (from saurvs:pr3); r=emilio
Fixes https://github.com/servo/servo/issues/10397

Source-Repo: https://github.com/servo/servo
Source-Revision: 4cc241c858ce8ee7894495d082a3bfc6233d80e8
2016-04-07 03:30:01 +05:01
Paul Rouget e3fd7bc0f2 servo: Merge #9811 - forcetouch events (from paulrouget:forceTouch); r=mbrubeck
https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptual/SafariJSProgTopics/RespondingtoForceTouchEventsfromJavaScript.html

Not sure how we want to land that yet. Maybe reproduce the webkit events (as in this PR), or as touch/mousemouse events.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0ff8adb09778402e88fe0d0ad92f4b399ca8ca01
2016-04-05 20:38:05 +05:01
zakorgyula a6ec44c9e0 servo: Merge #10074 - Fix ./mach test-tidy --faster issue (from zakorgy:tidyfix); r=Wafflespeanut
issue #9778

Source-Repo: https://github.com/servo/servo
Source-Revision: a8ed5c3fc66ab9ea57b6b78311485040dae27328
2016-04-05 19:35:54 +05:01
Adrian Utrilla 3b0f97c6a2 servo: Merge #10363 - Issue #10357: mach run -b now passes additional params to servo (from autrilla:issue#10357); r=emilio
Previously `./mach run` with the `-b` flag set ignored everything passed after the `--`, so for example when running `./mach run -d -b -- --help`, `--help` was not passed to servo - it is now.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5e73e1015b588da6b641a7a4175e51430d9b7019
2016-04-02 17:32:13 +05:01
Mohamed Albashir 8446a0072d servo: Merge #10292 - Initial steps for CSSOM (from jdm:cssom); r=jdm
Squashed and rebased #10133.

Source-Repo: https://github.com/servo/servo
Source-Revision: f335586ff538004c708d836876b359704ebed86a
2016-04-01 04:00:08 +05:01
Emilio Cobos Álvarez 60604e63ea servo: Merge #10302 - Update webrender to master (from emilio:webrender-up); r=nox
I'll rebase #10224 against it.

Sorry for the blocking of #10224, I expected it to be reviewed way sooner, my fault for landing breaking changes.

r? @nox or @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 84a3dee67ea7a45d6ec505f59c7a55162621f11e
2016-03-31 21:22:06 +05:01
Josh Matthews f355df791e servo: Merge #10238 - Run unit tests on appveyor (from jdm:winunit); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: e1485718128bff632eff5445583e925ff796bdba
2016-03-30 19:29:30 +05:01
Ms2ger fbf1c2ac45 servo: Merge #10265 - Remove dead code that used to support the legacy reftest framework (from Ms2ger:reftest); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: e19d9c45965c05397172daae96f92133139d0d11
2016-03-29 21:23:48 +05:01
Jussi Räsänen 38a13b3488 servo: Merge #10208 - Generate html and json of supported css properties (from jrasanen:jr/issue10196); r=SimonSapin
Fixes #10196. Outputs html and json of supported css properties to `target/doc/` directory when deploying github-pages.

Source-Repo: https://github.com/servo/servo
Source-Revision: df73a18a61e57f62e2e17541d45dcd3818b35b7c
2016-03-29 13:05:08 +05:01
Michael Howell f47e88f413 servo: Merge #8641 - No more headless compositor. Just the normal one (from notriddle:no_headless); r=glennw
Fixes #8573

Source-Repo: https://github.com/servo/servo
Source-Revision: aac2da75f40f4c55a4b450b6d9d134429fcf741e
2016-03-29 12:13:01 +05:01
UK992 7cb1ae94ae servo: Merge #10223 - Fix ./mach run and ./mach test-unit on Windows (from UK992:win32); r=larsbergstrom
This small hack fix conflict with mingw and rustc ``libstdc++-6.dll``.
This fixes https://github.com/servo/servo/issues/9465 and https://github.com/servo/servo/issues/10048

CC @larsbergstrom @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: d22a7a1912c7cf513931463e7081d2d345e11ff0
2016-03-27 19:52:37 +05:01
Lars Bergstrom 5c1f5109b8 servo: Merge #10193 - Use rustflags (from larsbergstrom:use_rustflags); r=Ms2ger
r? @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: a211bd1a12254a6a08987bb61f30c8b0e5ce2830
2016-03-25 22:13:17 +05:01
Bobby Holley 6e1def963d servo: Merge #10155 - Generalize the style structs (from bholley:generalize_style_structs); r=SimonSapin
This allows geckolib to pass gecko style structs and have the style system write to them directly, provided we implement all the traits.

Source-Repo: https://github.com/servo/servo
Source-Revision: 605842f193aedc1151ab38a99c49f693c76e5cf3
2016-03-25 02:58:33 +05:01
malayaleecoder fa447780ce servo: Merge #10148 - Remove test-ref command from testing_commands.py. Fixes #10125 (from malayaleecoder:master); r=Manishearth
Tries to fix #10125

Source-Repo: https://github.com/servo/servo
Source-Revision: 5886493fb056daa326bf7ea88fc32cc4225cbc7a
2016-03-24 03:41:20 +05:01
edunham 38a52325ef servo: Merge #10127 - Read `rustc-with-gold` setting from env var when no `.servobuild` (from edunham:gold-env-var); r=larsbergstrom
The build system needs to disable gold on arm64 slaves. Other configuration is
done through environment variables, and buildbot hosts currently don't use a
.servobuild file at all.

This change adds the `get_env_bool` function to cast an environment variable's
string contents into a Python boolean, and uses it to retrieve the optional
`SERVO_RUSTC_WITH_GOLD` setting.

I figured it's worth throwing the helper function in now in case we later want to read booleans from other env vars, but there's currently no need to make up a name for and read from an env var for every single setting.

r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 003fdd41769652188a5954e6499f3cb44eef6b10
2016-03-23 01:23:21 +05:01
Ms2ger 4f3f5ce0e7 servo: Merge #10123 - Remove unused use_nightly_rust function (from Ms2ger:use_nightly_rust); r=KiChjang
Source-Repo: https://github.com/servo/servo
Source-Revision: 805aa3a3ab6506cd7178cebf7886c306802137a5
2016-03-22 21:09:50 +05:01
Ms2ger 41fe5c1c3e servo: Merge #10076 - Update to Rust 2016-03-18 (from servo:rustup); r=larsbergstrom,manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: aa35d7721b0e1e7893e48af1eb91bf8ad2495d46
2016-03-20 14:07:17 +05:01
Petr Klíma 907e9fec6f servo: Merge #10003 - Patch handles exception with errormessage on topdir with Unicode characters (from qaxi:master); r=metajack
https://github.com/servo/servo/issues/10002
./mach does not support paths with Unicode characters for now

it fail on original line 154 with exception UnicodeDecodeError
This patch handles the exception

Source-Repo: https://github.com/servo/servo
Source-Revision: 42c7472f336e687200507dafdf1087d8f0ea4d55
2016-03-17 00:16:22 +05:01
Attila Dusnoki a8c186678e servo: Merge #9838 - WebBluetooth API classes (from szeged:webbluetooth); r=jdm
Basic implementation of WebBluetooth API
API spec.: https://webbluetoothcg.github.io/web-bluetooth/

Source-Repo: https://github.com/servo/servo
Source-Revision: 37574065e0a1a22493bdbf1ce8dd0480aa88c758
2016-03-16 20:32:18 +05:01
Ms2ger 497ea3c57e servo: Merge #10033 - Make the jquery test runner work again (from Ms2ger:jquery); r=jdm
CC #10032.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6c5bfca53e6f61e4a7d60c8b5d65478e479c9bf5
2016-03-16 18:52:31 +05:01
malayaleecoder d03d3c020c servo: Merge #10013 - Remove submodule update from mach bootstrap. Fixes #10010 (from malayaleecoder:master); r=Wafflespeanut
Tries to fix #10010 . Please have a look.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1a60e07ee8ce3f8bd55348e6ff26639bf4c1822b
2016-03-15 23:50:04 +05:01
malayaleecoder 36b4f2a602 servo: Merge #9995 - test_ref() got an unexpected keyword argument 'kind'.Fixes #9986 (from malayaleecoder:master); r=Manishearth
Tries to fix #9986. Please have a look.

Source-Repo: https://github.com/servo/servo
Source-Revision: 075ce980a24d1e31ad704915681ef3f7edd03ccb
2016-03-15 11:25:58 +05:01
Martin Robinson 04c79b6712 servo: Merge #9966 - Do not run WPT tidy on pyc files (from mrobinson:tidy-pyc); r=jdm
Generalize the mechanism for skipping file patterns and use it for
generating the list of WPT files to lint. Add *.pyc to the list of
file patterns to skip.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8eb4fb801b00ff9cacdfe13476bf1ac562d47ec6
2016-03-11 11:47:03 +05:01
Mike Fairhurst 26a5ee1bcc servo: Merge #9889 - Handle escaped strings in rust linting, tidy.py (from MichaelRFairhurst:github-bug-9806-tidy-linting-string-contents); r=ecoal95
A little annoying to read since we have to escape for python (\\) and
then escape for re (\\\\) and then even at times escape for single
quotes immediately after, (\\\\\), but tidy.py now strips strings even
if they have escapes before linting.

Fixes #9806 -- basically the problem is that the PR which first revealed this had an escape in one of its strings which included an = sign. The escape meant the string wasn't escaped before it looked for spaces around spaces.

Source-Repo: https://github.com/servo/servo
Source-Revision: f1bb0b0fa3eacac718a825c103cbdd1a0365fbf9
2016-03-11 04:38:43 +05:01
Ms2ger c8db736877 servo: Merge #9941 - Update the list of files tidy ignores (from Ms2ger:tidy-ignore); r=jdm
The deque file was removed in favour of an external crate.

The sync and sync_css directories are automatically created when updating the
in-tree copies of the wpt and css tests.

Source-Repo: https://github.com/servo/servo
Source-Revision: 25c6c29a27d2a176a967ee49d97a29ad1d3a140e
2016-03-09 21:15:35 +05:01
Wei Tang d25060c15d servo: Merge #9937 - Detect Cygwin environment on Windows (from sorpaas:fix/cygwin); r=Wafflespeanut
Currently if Servo is built using Cygwin, it is incorrectly classified as "unknown" host, which makes downloading Rust and Cargo fail. This pull request fixes that.

Source-Repo: https://github.com/servo/servo
Source-Revision: 31bdcbe7258cfa796b88505f5e29d75920e5c708
2016-03-09 17:24:01 +05:01
UK992 775aa09069 servo: Merge #9908 - Check tidy for "support/android/build-apk/" (from UK992:tidy-fix); r=ecoal95
Fixes  #9893
r? @ecoal95

Source-Repo: https://github.com/servo/servo
Source-Revision: e3bea4f88724c9fc7dfceab590dd0df90a0a7a3f
2016-03-08 11:58:08 +05:01
Rahul Sharma 90e2b2cb80 servo: Merge #9871 - tidy fix for longer single line imports (from creativcoder:fix-tidy-single-import); r=Wafflespeanut
Fixes #9864

Source-Repo: https://github.com/servo/servo
Source-Revision: 41864c4524d6303a6aa21e99bf67d4026c135900
2016-03-08 00:37:08 +05:01
Jack Moffitt e4b7eb2998 servo: Merge #9873 - Adds browserhtml dependency and mach run --browserhtml (from metajack:mach-run-bhtml); r=ecoal95
This makes the experience for testing browserhtml super easy.

Source-Repo: https://github.com/servo/servo
Source-Revision: 69f52d0f213aeec0d498798dfdaa15f8459a9a79
2016-03-05 04:04:18 +05:01
Paul Padier f717eaeb9b servo: Merge #9750 - Lint json files (from magni-:lint_json); r=Wafflespeanut
Fixes #9745

This is a very simple solution: try to load all json files, and catch any `ValueErrors` that pop up. Do we need something more complex?

Source-Repo: https://github.com/servo/servo
Source-Revision: dbceb60455282122d52a60c9ed6484eaa120e930
2016-02-27 05:45:05 +05:01
Daniel Robertson f20750fbd6 servo: Merge #9685 - Mach update-wpt should default to "--no-patch" (from danlrobertson:i9666); r=Wafflespeanut
Change mach default behavior for `update-wpt` to use the "--no-patch" option and provide an alternate option "--patch" for anyone who does in fact want `update-wpt` to automatically create a commit.

Fixes #9666

Source-Repo: https://github.com/servo/servo
Source-Revision: 455ed0ae6d4c82fd38762a92f0dd6697bd3b2b50
2016-02-25 23:44:27 +05:01
Ravi Shankar e3d087c722 servo: Merge #9649 - Refactoring tidy (from Wafflespeanut:tidy_progress); r=jdm
Improved tidy's code for efficiency (which now shows progress while checking through files)

Source-Repo: https://github.com/servo/servo
Source-Revision: 553cf3d8e8dfc5eb1222fc48b507d6578da6bc66
2016-02-25 22:07:21 +05:01
Anthony Ramine f98f618ac8 servo: Merge #9721 - Bump to Rust 2016-02-22 (from servo:rustup); r=larsbergstrom,nox
Source-Repo: https://github.com/servo/servo
Source-Revision: dd5f3382547069b9f5d7933959c0307c863c58ac
2016-02-23 06:46:04 +05:01
Jason Williams f8d007663c servo: Merge #9627 - Now we use python for os_type, we need to catch 'windows' as well as … (from Jayflux:addWindowsOptionInTriple); r=larsbergstrom
…'mingw65_nt- fixes #9597

Source-Repo: https://github.com/servo/servo
Source-Revision: 3f74c07e2025671d867e94acd28e706ce6fe236e
2016-02-14 05:18:05 +05:01
Jayflux faeb869af7 servo: Merge #9588 - add check for win32 or msys before running rustc-with-gold fixes #9499 (from Jayflux:hotfix/9499); r=Wafflespeanut
Source-Repo: https://github.com/servo/servo
Source-Revision: 2fd8cbccdd5dae1ec79404bdf0f582a2f0ff89a4
2016-02-13 23:03:49 +05:01
Jason Williams 12fadf10d5 servo: Merge #9624 - use python's built in platform module for detection, for more accurac… (from Jayflux:hotfix/9597); r=KiChjang
…y and cross platform support
Fixes #9597.

Source-Repo: https://github.com/servo/servo
Source-Revision: 80e55c7ce42fae08c6517facab686913c0c4eef8
2016-02-13 19:15:03 +05:01
Daniel Robertson 0886508321 servo: Merge #9611 - Download extra stdlib only when required: #9557 (from danlrobertson:i9557); r=larsbergstrom
Split [`ensure_bootstrap`](https://github.com/danlrobertson/servo/blob/i9557/python/servo/command_base.py#L397-L422) into two phases including a phase checking the compiler, and a phase checking for target libraries. E.g.

```
    # should download the stdlib for "i686-unknown-linux-gnu", "arm-linux-androideabi"
    # and the hosts target
    ./mach build -d --target i686-unknown-linux-gnu --android
    # should only download the stdlib for the hosts target
    ./mach build -d
```

Let me know if I missed anything! There are a few parts of this patch in its current state that I'm not a huge fan of, but I couldn't think of a better way in the moment.

Still new to working on servo, so any comments or critiques are welcome!

Fix #9557

Source-Repo: https://github.com/servo/servo
Source-Revision: 088963f774f5068ec8dc0f3bd88579bc1e84c18d
2016-02-13 02:40:51 +05:01
Suvish Varghese Thoovamalayil 18d115f777 servo: Merge #9601 - Exit mach with an error when building on a path with spaces. Fixes #9442 (from vishy1618:issue_9442); r=Wafflespeanut
Source-Repo: https://github.com/servo/servo
Source-Revision: 76381418bd04d94afac79a1fa5d4366d71c1a3de
2016-02-12 18:51:35 +05:01
Matt Brubeck 65c73bf899 servo: Merge #9607 - Add a "mach test-wpt --chaos" mode for reproducing intermittent failures using rr (from mbrubeck:chaos); r=jgraham
This adds a new `--chaos` flag to the `test-wpt` and `test-css` commands.  This will run a test repeatedly until it fails, recording it with the rr debugger in chaos mode. Requires a recent master build of rr.

```
./mach test-wpt --chaos test.html
```
is shorthand for:
```
./mach test-wpt --repeat-until-unexpected \
                --debugger rr \
                --debugger-args "record --chaos" \
                --include test.html
```
This PR currently includes changes to wptrunner which were also submitted upstream as w3c/wptrunner#170.  We should not merge this until that upstream PR is merged. CC @jgraham

Source-Repo: https://github.com/servo/servo
Source-Revision: faa349fb876c4b163ba14623899c9f4e6ab3d0eb
2016-02-12 03:05:47 +05:01
qpid 406ccafa8b servo: Merge #9549 - Removed references of android-rs-glue from comments and documentation (from saurvs:master); r=larsbergstrom
Fixes https://github.com/servo/servo/issues/9507.

Source-Repo: https://github.com/servo/servo
Source-Revision: b2a297c64f19ca975202e29151f7780ebccd0ec7
2016-02-06 08:14:46 +05:01
Simon Sapin 5857f11723 servo: Merge #9509 - Deduplicate the cocoa crate (from servo:cocoa); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 9e68285d35a2e7b72c9edfd9e5e37399e724c4e6
2016-02-05 01:27:50 +05:01
Florian Hahn 797ece8f28 servo: Merge #9469 - Integrate compiletest_rs (from fhahn:compiletest2); r=jdm
This PR integrates `compiletest_rs` as suggested in #5646. I created a new  `tests/compiletest` directory which contains separate crates for the tests.

Currently this PR includes `compile-fail` tests for some lints (acutally all except  inheritance_integrity, beacuse I'm not sure how to include the dom stuff in a way the `#[dom_struct]` works).

I gathered that there should be more crates for which compiletests make sense and would appreciate any pointers to relevant crates.

Source-Repo: https://github.com/servo/servo
Source-Revision: d574b78313be75f3388123d11354b897598877a3
2016-02-04 20:31:21 +05:01
Lars Bergstrom cfb7ea2139 servo: Merge #9449 - Revert "Remove gold hack, since it's in rustc automatically now" (from larsbergstrom:revert_gold_removal); r=mbrubeck
This reverts commit 2955d895a4d723bc616f37a55a973c677318a950.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 220ead14b16c8965335a6d54e037f2e30fc634ea
2016-02-01 14:28:02 +05:01
Anthony Ramine 2a04dbaf91 servo: Merge #9473 - Bump clipboard to remove libc 0.1.z dependency (from nox:adieu-libc-1); r=KiChjang
Source-Repo: https://github.com/servo/servo
Source-Revision: ec06c256d70937e91acb7309d7518b76962ea3a4
2016-02-01 04:09:15 +05:01
Shing Lyu e405dcb806 servo: Merge #9459 - Add mach test-webidl command (from shinglyu:testwebidl); r=Wafflespeanut
I updated the `WebIDL.py` from latest mozilla-central. And add a `./mach test-webidl` command. For #9397

Source-Repo: https://github.com/servo/servo
Source-Revision: 0ada7f9c8eda9879b5536cea3266c94214f9ce9b
2016-01-30 20:52:53 +05:01
Adam Casey b5091326a9 servo: Merge #9440 - Prepend PATH extras instead of append (Fix Issue #9437) (from adamncasey:fix-multirust); r=jdm
Should fix multirust issue https://github.com/servo/servo/issues/9437 which appeared after https://github.com/servo/servo/pull/9415 landed.

@jdm to confirm

Source-Repo: https://github.com/servo/servo
Source-Revision: 03b763c2c5b873ccc454278a55737bc37e940e97
2016-01-27 18:48:29 +05:01
Adam Casey 3d559cdc6e servo: Merge #9415 - Fix ./mach run on Windows (from adamncasey:mach-run-win32-fix); r=larsbergstrom
This branch also includes the commit being reviewed in https://github.com/servo/servo/pull/9408 . Is it OK to just wait for that one to merge, or should I separate them?

This patch adds the BIN_SUFFIX to the servo executable name when doing ./mach run.

However just doing this caused subprocess to error due to some unicode symbols in PATH.

To fix this, I pulled a peice of code from mozilla-central which fixes this problem there. Source: https://dxr.mozilla.org/mozilla-central/source/python/mach/mach/mixin/process.py#108

Revisiting this now (originally developed this a few weeks ago), perhaps we should be using https://github.com/servo/servo/blob/master/python/mach/mach/mixin/process.py instead of subprocess to give us all of this crossplatform process execution support. I think that should be a nice to have though - this patch at least gets a necessary development command working on windows.

Tested on Windows and Ubuntu.

Source-Repo: https://github.com/servo/servo
Source-Revision: 80c29113485c0b7d7da6be9c4f64a2b8f1cde826
2016-01-27 00:22:49 +05:01
Lars Bergstrom 5d2bc22040 servo: Merge #9385 - Win32 support (from larsbergstrom:win32); r=frewsxcv,pcwalton,jdm,ecoal95
r? @frewsxcv for python stuff
r? @pcwalton for the "remove usage of Gaol" stuff for Win32
r? anybody else for misc cargo.lock updates, etc.

This replaces #7878.

This works best with https://github.com/servo/mozjs/pull/71, too, to enable static linking, but can be run without (via some PATH hackery).

The instructions are here, and will be added to a .md file in the repo once the mozjs changes also land:
https://hackpad.com/Servo-on-Windows-C1LPcI2bP25

I'd like to get these changes landed because I've been rebasing them for months, they're otherwise quite stable, and don't affect our other platforms and targets.

Source-Repo: https://github.com/servo/servo
Source-Revision: 525e77f64fc65ea2397b4ff3849f5b1f39386698
2016-01-23 06:58:27 +05:01
Ms2ger d333e6a4f2 servo: Merge #9394 - Include the wpt lint in test-tidy --faster (from servo:wpt-lint); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 41892d4c93327b43dfe380a4e603789a86193069
2016-01-21 19:22:04 +05:01
Bobby Holley 2379681f6b servo: Merge #9284 - Add Partial Implementation of style DOM traits for Gecko, and some basic glue to let Gecko call into Servo (from bholley:bootstrap_stylo); r=SimonSapin
The wrapper stuff is partially-complete, modulo some unimplemented methods. The glue code is just a toy for now. Regardless, I think it's worth getting some of this stuff in-tree to minimize breakage.

Source-Repo: https://github.com/servo/servo
Source-Revision: 77d3fbcca3c6f7e8b4068f89e25b090977fe5672
2016-01-19 13:50:10 +05:01
Simon Sapin 9a7c1d808c servo: Merge #9333 - Add a script to list all CSS properties parsed by Servo (from servo:list-properties); r=larsbergstrom
I’ve been asked for that list by two different people this week :)

r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: dba1f27305c5e81eda6acd4c438a2adfb6ed053d
2016-01-16 00:37:03 +05:01
Lars Bergstrom 928d1d2132 servo: Merge #9093 - Update to rustc 1.7.0-nightly (b4707ebca 2015-12-27) (from servo:rustup); r=KiChjang
Source-Repo: https://github.com/servo/servo
Source-Revision: 4cb2c87982355bdf2a2dd409db71d0d4ed6f9a85
2016-01-15 19:08:07 +05:01
Ms2ger 30d558a9fb servo: Merge #9293 - Remove the legacy reftest framework (from Ms2ger:reftests); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: d28fb42201dd743c470fcc1f43bf2e13f1c8cddc
2016-01-14 14:31:14 +05:01
apopiak b3f216d5b0 servo: Merge #9273 - add `faster` flag to `./mach test` command (from apopiak:fix_mach_test_error_9253); r=Wafflespeanut
add `faster` flag to `./mach test` command

in order to call `test-tidy` properly

close #9253

Source-Repo: https://github.com/servo/servo
Source-Revision: a345608a945b3ba6656715671bf0d67a8bd4c151
2016-01-14 00:39:29 +05:01
PythonNut 2f994b2c2d servo: Merge #9277 - Call WPT lint directly in tidy, fixes #9189 (from PythonNut:master); r=Wafflespeanut
This should be fairly straightforward. :)

Source-Repo: https://github.com/servo/servo
Source-Revision: 9c8382cbde73a2d5f57c4a8a65d4ae55c03fd990
2016-01-13 12:10:24 +05:01
PythonNut 62b2074a70 servo: Merge #9243 - Fix literal braces in string formatting in tidy.py, fixes #9151 (from PythonNut:master); r=Wafflespeanut
This should be pretty self-explanatory, it's less than a dozen bytes, after all. :)

Fixes #9151.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4143caaa5796c4e6cfaa6b13d46b409819d822d7
2016-01-11 07:54:45 +05:01
Bobby Holley 561a84a40d servo: Merge #9209 - Implement a geckolib target (from bholley:geckolib); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: aa713c9fbb56fd3f1427779bb31ec48dee316187

--HG--
rename : servo/tests/unit/net_traits/lib.rs => servo/ports/geckolib/lib.rs
2016-01-10 06:45:17 +05:01
Daan Sprenkels a2573817de servo: Merge #9118 - Add 'test-tidy-faster' command to ./mach (from dsprenkels:test-tidy-faster); r=Wafflespeanut
For issue #9088, this adds a `--changes` option to `./mach test-tidy`. If this option is set, `tidy.py` will only check files that have been modified since `FETCH_HEAD`.

Mention: @Wafflespeanut
Source-Repo: https://github.com/servo/servo
Source-Revision: 74226836ba27afedebd88cd1269018ef2ba25959
2016-01-08 22:44:00 +05:01
Matt Brubeck c260a4c746 servo: Merge #9150 - Make "mach run" use --android by default when enabled in .servobuild (from mbrubeck:run-android); r=larsbergstrom
When `.servobuild` has `android = true`, the `mach run` command should default to running on Android.

r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: ea4206e36259cd464480fed3ca9ac6857568bd7c
2016-01-05 00:53:53 +05:01
Daan Sprenkels 65a401d6ea servo: Merge #9073 - tidy.py: remove duplicate code patterns in `check_rust(file_name, lines)` (from dsprenkels:issue-8733); r=Wafflespeanut
This is an attempt at a reasonable fix for #8733.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9fa56ccfdfb5e9d1c1a6967b28da89c8fab36900
2015-12-31 19:51:27 +05:01
Simon Sapin 0c5d0fff6a servo: Merge #9086 - Rename rust-snapshot-hash to rust-nightly-date (from servo:no-snapshot); r=nox
… and remove mentions of "snapshots".

We now use rust-lang.org nightly builds rather than our own snapshots.

Source-Repo: https://github.com/servo/servo
Source-Revision: f34a656b14f3992203354ffe71dc649d69b6b592

--HG--
rename : servo/rust-snapshot-hash => servo/rust-nightly-date
2015-12-30 18:51:38 +05:01
Olaf Buddenhagen d12793d02f servo: Merge #9062 - mach run --debug: Try using rust-gdb/rust-lldb if available (from antrik:rust-gdb); r=SimonSapin
If the selected debugger (requested explicitly or detected by mozdebug)
is gdb or lldb, use rust-gdb or rust-lldb instead, if it's available in
the path and appears to be working.

(This should usually be the case when using the default debugger on
GNU/Linux or MacOS, as rust-gdb or rust-lldb is provided by the Rust
snapshot in use.)

Note: I cobbled this together without *any* previous Python experience -- so if it violates three dozen rules, and only works by luck on my own system during a favourable moon phase, don't hesitate to suggest improvements :-)

Source-Repo: https://github.com/servo/servo
Source-Revision: 4e3a435450a8a5ee4293266296700bf1bc579f7d
2015-12-30 04:05:42 +05:01
Daan Sprenkels fae3c8f777 servo: Merge #9066 - tidy.py: pass list of lines to each testing function (from dsprenkels:issue-9060); r=Wafflespeanut
instead of whole content buffer

See #9060.

Source-Repo: https://github.com/servo/servo
Source-Revision: d2e7fd82213a6b2df6703dc6f9ace70e49762c5a
2015-12-26 18:15:12 +05:01
Simon Martin 6f8d33fe11 servo: Merge #9055 - Issue #9042: Report incorrect number of spaces around => in the style checker (from simartin:issue_9042); r=Wafflespeanut
Fixes https://github.com/servo/servo/issues/9042

Source-Repo: https://github.com/servo/servo
Source-Revision: f77c7928868469ef4f326a269147ae2aee6151ee
2015-12-24 10:26:48 +05:01
Matt Brubeck 84af7691e8 servo: Merge #9020 - Update `mach run` to use android_params file (from mbrubeck:mach-run); r=larsbergstrom
Currently it sets the SERVO_URL variable, which Servo no longer supports.

r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 2a3a7a73b54f89344b130e10811a2fc1f9a6c729
2015-12-19 02:39:28 +05:01
Corey Farwell ddc1fecbd7 servo: Merge #8977 - Print tidy errors as they happen instead of all-at-once (from frewsxcv:immediate-tidy-errors); r=jdm
Related to #8969

Source-Repo: https://github.com/servo/servo
Source-Revision: 8c09154d5969ae628aeb5e5c8bc6ee6174a2efd0
2015-12-17 08:40:59 +05:01
Matt Brubeck 7af235e026 servo: Merge #8891 - Android build system improvements (from mbrubeck:mach-install); r=larsbergstrom
This PR adds a `mach install` command (a convenient way to run `adb install`), and does some minor code cleanup.

It also fixes parallelism in the OpenSSL build.  For [complicated reasons][1], a sub-Make will not inherit `-j` options from its parent process unless it is invoked directly from another Makefile.  This means we should run make from openssl.makefile rather than openssl.sh.

r? @larsbergstrom

[1]: http://make.mad-scientist.net/papers/jobserver-implementation/

Source-Repo: https://github.com/servo/servo
Source-Revision: a1fb12616a29d2190baadd20d7763af1d9c02260
2015-12-12 18:02:53 +05:01
Ms2ger 8381ed70f7 servo: Merge #8893 - Update bincode (from Ms2ger:byteorder); r=frewsxcv
Source-Repo: https://github.com/servo/servo
Source-Revision: f4aa5b42ea3c0ece91018964df88a0b6e86649dd
2015-12-09 01:07:35 +05:01
Ms2ger af1ed7a591 servo: Merge #8824 - Rewrite the Cargo.lock tidy check (from Ms2ger:tidy-lock); r=Wafflespeanut
Fixes #8691.

Source-Repo: https://github.com/servo/servo
Source-Revision: cad77d5f1c8458e3b21f3546e8306ab7d5163726
2015-12-08 09:52:55 +05:01
Guillaume Gomez 0dc7d9c439 servo: Merge #8750 - Ensure that tidy follows the same procedure for sorting (from GuillaumeGomez:master); r=Wafflespeanut
Fixes #8734

cc @Wafflespeanut

Source-Repo: https://github.com/servo/servo
Source-Revision: 7d9a6a8397d413ab9e5d7c0fb8409093a45fcb2d
2015-12-06 16:54:43 +05:01
Maciej Skrzypkowski a4cbcd953e servo: Merge #8626 - Draft, Move OpenSSL Android build to the target directory #8568 (from mskrzypkows:build_commands_android); r=larsbergstrom
I've created a draft, please give me feedback. Is it good direction?

Fixes #8568

Source-Repo: https://github.com/servo/servo
Source-Revision: e774a694407a435c7fb3ecee68b5bb50fbf2dc43
2015-12-05 18:15:32 +05:01
Brandon Fairchild 99c853de09 servo: Merge #7734 - Allow `./mach build` to enable Servo's headless mode (from nerith:headless); r=metajack
As mentioned in #7512 and #7637, the environment variable SERVO_HEADLESS
enables building the OSMesa version of Servo when it is set to 1.

Instead, this should be a command line option to mach's build command.

Fixes #7637.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3c0cd5eb068945860fb357c975bfbe6070eebe49
2015-12-04 09:20:05 +05:01
Simon Sapin d4a1557a4b servo: Merge #8757 - Use skia and deps from crates.io (from servo:skia); r=mbrubeck
This makes the initial download for skia go from a 300 MB git repository to a 5 MB tarball. This should help with issues like #6132 and #7687.

Fix https://github.com/servo/skia/issues/70

This builds, but the at the moment causes a number of tidy errors for duplicated crates.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8b95d7b8d860ec4c0834192083361a9fb78ddbeb
2015-12-03 12:29:29 +05:01
Sam Gibson 257616da50 servo: Merge #8776 - Fix the parsing of the chromium HSTS preload list (from samfoo:hsts-preload-download-fix); r=jdm
Urg! The Chromium HSTS preload JSON file contains single line comments. Previously these were filtered out with a very simple regex that just looked for '//' and removed the line. Now the file has added a couple fields that have URLs in them that were erroneously removed and caused the JSON parsing to fail. This commit slightly complicates the regex to fix this specific problem.

If this happens again, it's likely worth it to figure out how to use a real parser to remove the comments.

servo/servo#8760

Source-Repo: https://github.com/servo/servo
Source-Revision: 2be60be062e14c937af601faed78a6aceccdb062
2015-12-02 09:56:05 +05:01
jmr0 16b8a0085a servo: Merge #8742 - adding wpt lint script to tidy checks (from jmr0:master); r=Ms2ger
Fixes #8285.

Tidy check will fail, however, until we merge the latest https://github.com/w3c/web-platform-tests/blob/master/lint.whitelist

Source-Repo: https://github.com/servo/servo
Source-Revision: a8cbc2864367da09fb31fb5f984a7b2d31b90b93
2015-12-01 21:52:37 +05:01
Guillaume Gomez 732bf0a03c servo: Merge #8692 - Ensure crate are alphabetically sorted (from GuillaumeGomez:patch-1); r=Wafflespeanut
cc @nox

Source-Repo: https://github.com/servo/servo
Source-Revision: dbff1ab33636bc7d60a4c97b63f39b59985726ce
2015-11-28 19:05:11 +05:01
Ms2ger 0a70341fd5 servo: Merge #8697 - Ensure the bootstrap-rust-docs and doc mach commands agree on the location of the Rust documentation (from Ms2ger:docs); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: d552674ba2d0bbe1c19097ba3899d856d1daa495
2015-11-27 14:20:01 +05:01
Manish Goregaokar 693578b06a servo: Merge #8446 - Rust upgrade to rustc 1.6.0-nightly (5b4986fa5 2015-11-08) (from servo:rustup_20151110); r=SimonSapin+Ms2ger+jdm+Manishearth
<s>DO NOT r+ or try+ this</s>

<s>It causes an OOM (https://github.com/rust-lang/rust/issues/29740) and can crash the OS. Probably will set our CI on fire. </s>

Source-Repo: https://github.com/servo/servo
Source-Revision: f13c72d68e1e7f49e241938bfd6e8a588c68e86b
2015-11-27 10:18:00 +05:01
Josh Matthews f5c0383b1b servo: Merge #8689 - Remove remaining version-conflict exceptions in tidy.py (from jdm:deps); r=frewsxcv
Source-Repo: https://github.com/servo/servo
Source-Revision: bc618b0d535e0e67a7ea845c026678113f000d64
2015-11-27 08:48:54 +05:01
jmr0 5ed073271e servo: Merge #8685 - tidy rule to warn against use of &String and refactoring (from jmr0:master); r=Ms2ger
Fixes #8681

Source-Repo: https://github.com/servo/servo
Source-Revision: f96e8ce9e8c0a2c9de9574f538718defdcd93c11
2015-11-27 04:19:38 +05:01
Yanir Seroussi d5d4fc96cd servo: Merge #8596 - Reduce duplication in binary path determinition for Android target (from yanirs:build-binary-path-reduce-duplication); r=larsbergstrom
Fixes issue #8349

Source-Repo: https://github.com/servo/servo
Source-Revision: 4f1feb3925c8705ada845687eaeef60ba599212b
2015-11-19 18:19:35 +05:01
nxnfufunezn 54709f6581 servo: Merge #8590 - Make test-wpt run with RUST_BACKTRACE=1 by default #8194 (from nxnfufunezn:_run_test-wpt_with_RUST_BACKTRACE); r=jdm
Fixes #8194

Source-Repo: https://github.com/servo/servo
Source-Revision: 1dd4c0821ff4314f15588d64926c91523846516d
2015-11-19 06:11:02 +05:01
Simon Sapin d453427bd5 servo: Merge #8520 - Very hackish support for `./mach run --android` (from servo:android-run); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 27e104aa1a62978bf2dd8b6a65963a2466af936a
2015-11-14 02:03:53 +05:01
Ms2ger 6af08b4e88 servo: Merge #8451 - Ignore sync directories in test-tidy (from Ms2ger:tidy-sync); r=frewsxcv
Source-Repo: https://github.com/servo/servo
Source-Revision: 6772461002637cf4ae174a1c49d4418487f48cb9
2015-11-10 18:15:20 +05:01
Martin Robinson d633311280 servo: Merge #8415 - Form relative reference URLs during create-wpt (from mrobinson:create-wpt-relative); r=frewsxcv
Instead of always using the absolute path to the reference file when
creating new reference tests, create-wpt now creates relative URLs if
the files are in the same directory. This is the most common case for
new Servo tests. Also fix some missing quotation marks in the
create-wpt template.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5fda719fa8cd513d888011d12262bb8ccd000dce
2015-11-09 22:14:25 +05:01
Simon Martin 1b7d40af67 servo: Merge #8410 - Avoid UnboundLocalError upon "bogus" usage of ./mach create-wpt (from simartin:issue_8407); r=nox
Fixes https://github.com/servo/servo/issues/8407

Source-Repo: https://github.com/servo/servo
Source-Revision: 43a5c62fdec0b8e25c7cd708d3dd5a17e1dad6be
2015-11-09 00:54:22 +05:01
Corey Farwell 0f3926347c servo: Merge #8394 - Make virtualenv more tolerant of spaces in directory names (from frewsxcv:virtualenv-spaces); r=Manishearth
Fixes #8390

Source-Repo: https://github.com/servo/servo
Source-Revision: abf2dfea05dfb304af5424a7c51440a14865a169
2015-11-08 03:26:54 +05:01
Lars Bergstrom 2eccac32a7 servo: Merge #8366 - Add CCACHE infra and turn it on in travis (from larsbergstrom:ccache); r=frewsxcv
r? @Manishearth

This lets devs configure their use of CCACHE with their .servobuild file, as usual. For build environments, they can either have a .servobuild file or set the CCACHE env var to point at the ccache binary to use.

It also adds support for ccache to our travis builds. Buildbot will come in a separate commit to the saltfs repo.

It is expected that the various cargo makefiles will look at this variable and do the "right thing" to tell their native build to instead use ccache. e.g., https://github.com/servo/mozjs/pull/62

Source-Repo: https://github.com/servo/servo
Source-Revision: d16ba51b4722a84f69976ca8679af672495248c8
2015-11-07 06:32:54 +05:01
Benjamin Herr 8fc8121668 servo: Merge #8364 - mach_bootstrap: Don't get confused by interrupts (from ben0x539:mach-nochmal); r=metajack
When mach_bootstrap got interrupted while it's setting up virtualenv or
calling out to pip, it wouldn't repeat that step on subsequent runs, and
mach fails because its environment isn't set up properly or dependencies
are missing.

So now we re-run virtualenv if activate_this.py doesn't exist, and only
create the marker file for required packages after pip has returned
successfully.

Source-Repo: https://github.com/servo/servo
Source-Revision: afc41ec4ac404a160edb8c8fb12434fe54d59821
2015-11-06 01:19:19 +05:01
Lars Bergstrom 0b806539c8 servo: Merge #8288 - New Android suppport (from larsbergstrom:new_android_build); r=mbrubeck
r/f? @mbrubeck

No need to r+ urgently; I want to do a little bit more testing of the release build, but I'm hoping to land this bit (moving to a more sane build process) next week.

The new version of building an APK:
1) Removes the glutin-based APK builder from the link step
2) Adds a build.rs step to the build of the final Servo library that adds the native code required by glutin's android_rs_glue (e.g., `ANativeActivity_onCreate` definition)
3) Replaces the link step with a `fake-ld.sh` script that instead creates a libservo.so
4) Adds a new mach `package` step to build the APK that has some Rust code that builds the library from a set of in-tree build files

This setup fixes a number of problems:
1) We can use gdb, because we use `ndk-build`, which adds the .gdbserver info, plus we keep around all of the build files (also required by the ndk gdb)
2) We can add more Java code & hooks to handle Android intents
3) We no longer have any git submodules or the awkward two-step build with android-rs-glue

Many other setups were tried (and failed). The most obvious ones is building a libservo.so from a `dylib` target from the servo build on Android. This doesn't work because you can't have a different default lib target on one platform than others in Cargo, and you also can't pass it in from the commandline (e.g., --lib does not have a dylib arg). Additionally, if you don't go through the intermediate libservo.rlib step (which removes unused symbols), then you end up with a TON of missing symbols because our -sys crates are super sloppy about that. I spent a few weeks beginning to clean them up, but since it's something we can't easily enforce (and new -sys packages will have this problem, too, since it's only an issue with the Android loader), it made more sense to me to just have the build set up to discard those unused bits of code before they ever get to the linker, much less the loader.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0699d38e80c029a384354da96596421f3a97ceef
2015-11-05 05:22:48 +05:01
Corey Farwell 4c18146242 servo: Merge #8320 - Expand tidy to lint parts of /tests/wpt (from frewsxcv:expand-tidy); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: b098339f92a6d8351786686fb80aaaa76532ccb6
2015-11-04 15:14:28 +05:01
nxnfufunezn 40fb652360 servo: Merge #8176 - Added support for using --features argument with --android (from nxnfufunezn:features-argument); r=mbrubeck
Fixes #8173
r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: d8cb2762af389309ff9684f04194e4773ce33c3e
2015-10-30 22:24:40 +05:01
Brandon Fairchild 43bbf4c046 servo: Merge #8144 - Add `clippy` as a command to mach (from nerith:clippy); r=Manishearth
This gives mach the ability to run clippy with `./mach clippy`.

Fixes #8134.

Source-Repo: https://github.com/servo/servo
Source-Revision: 79f300f0387ad8218d06511c429d071cdef0193c
2015-10-22 10:27:02 -06:00
Anthony Ramine bb8125a3da servo: Merge #8041 - Introduce trait Castable (from nox:castable); r=jdm
Removes all those messy FooCast structures in InheritTypes.rs.

Source-Repo: https://github.com/servo/servo
Source-Revision: 674589c370d978f543e71f995d58c5b28e6e9842
2015-10-21 07:57:32 -06:00
James Graham 93eff38911 servo: Merge #8083 - Add create-wpt mach target to help with creating web-platform-tests (from jgraham:create-wpt); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 36d5c0b2fbe94065b068c6aad72ad7797a157926
2015-10-20 03:46:17 -06:00
Till Schneidereit 35d5d9d31f servo: Merge #7415 - Improve implementation of DOMRect and implement DOMRectReadOnly (from tschneidereit:dom-rect); r=nox
Passes most tests from test-css. The remaining ones should pass once we have https://github.com/w3c/csswg-test/pull/834.

r? @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: 810d28a2574cd288ddfa5737ade417ea53a4b690
2015-10-17 15:17:27 -06:00
Gilles Leblanc b420fbc10c servo: Merge #8044 - Adds a tidy check for single-page HTML specification links (from gilles-leblanc:issue-7998); r=Manishearth
Flags links to the single-page WHATWG specification and suggests the URL
for the multi page one.

Fixes #7998

Source-Repo: https://github.com/servo/servo
Source-Revision: 36998cd5b1ab8da63b6ec82c7d45b5dc08b5d42a
2015-10-15 19:25:53 -06:00
Tareq A Khandaker d1b2d8eabb servo: Merge #8024 - Add clarity to warning message about OS X notifications (from tareqak:warning_message_about_os_x_notifications_is_unclear); r=frewsxcv
I made this change with respect to this issue: https://github.com/servo/servo/issues/7840

Source-Repo: https://github.com/servo/servo
Source-Revision: f8ada66919c8fda836b8e33375e82c1ef9059999
2015-10-14 19:29:54 -06:00
Matt Brubeck fd3bcc3b9b servo: Merge #7933 - Replace libpng and stb_image with PistonDevelopers/image (from mbrubeck:piston-image); r=glennw
Fixes #3368. r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 0f597d389052500d9b76b9f9f89e873e6f809ab1
2015-10-12 15:06:31 -06:00
Corey Farwell 795e875ef6 servo: Merge #7960 - Replace usage of old-style WHATWG spec links (from frewsxcv:update-spec-links); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 4052a22a1c6826cb18f03de9d2f6aed82d809e71
2015-10-10 10:17:52 -06:00