Commit graph

6275 commits

Author SHA1 Message Date
Jason Williams
13d98f153a adding check for windows then using Scripts instead of bin 2016-01-22 19:27:29 -06:00
Lars Bergstrom
095658e098 Cargo updates and small workqueue change 2016-01-20 08:38:27 -06:00
Vladimir Vukicevic
77aea599c7 win32: look for python.exe and variants on win32 in style/build.rs 2016-01-20 08:38:23 -06:00
Vladimir Vukicevic
5e136d6dd5 win32: make sleep_microseconds for backoff just do a win32 Sleep(0) 2016-01-20 08:38:22 -06:00
Vladimir Vukicevic
025ed57c04 win32: use fontconfig/freetype on windows as well (for now) 2016-01-20 08:38:20 -06:00
bors-servo
6663f28f0d Auto merge of #9358 - jsanders:refactor-websocket-closing, r=jdm
Clean up websocket closing code

Fixes #7860.

This also changes quite a bit about how close codes are implemented, I believe bringing them closer in line with the spec. Instead of saving off the close code sent by the client, it uses the code from the server's closing handshake. It also handles `NO_STATUS` in what I believe is the correct manner. Making this work required a change to the test harness to make the `/echo` websocket handler echo the code sent by the client and handle `NO_STATUS` properly, rather than always replying with `NORMAL`.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9358)
<!-- Reviewable:end -->
2016-01-19 21:08:09 +05:30
bors-servo
77d3fbcca3 Auto merge of #9284 - bholley:bootstrap_stylo, r=SimonSapin
Add Partial Implementation of style DOM traits for Gecko, and some basic glue to let Gecko call into Servo

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.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9284)
<!-- Reviewable:end -->
2016-01-19 14:19:10 +05:30
James Sanders
482d23bb19 Fix test-tidy errors 2016-01-18 17:50:25 -07:00
James Sanders
d121958a17 Make closing related code more clear and more correct 2016-01-18 17:37:16 -07:00
Nikki
4165786767 Test setting response.body by fetching on a server 2016-01-18 15:12:31 -07:00
bors-servo
03a0b73538 Auto merge of #9360 - jsanders:accept-protocols-sequence, r=KiChjang
Accept WebSocket protocols as string or sequence

Fixes #9053

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9360)
<!-- Reviewable:end -->
2016-01-19 02:18:28 +05:30
Emilio Cobos Álvarez
41af23bdec Bump rust-mozjs 2016-01-18 20:49:27 +01:00
bors-servo
8f7f7e11b7 Auto merge of #9341 - askalski:issue9338, r=KiChjang
Fix to issue 9338

Fixes #9338.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9341)
<!-- Reviewable:end -->
2016-01-18 20:30:41 +05:30
askalski
cf107bca4f replacing custom fmin function with standard f32.min in components/layout/display_list_builder.rs 2016-01-18 12:17:19 +01:00
bors-servo
ce0b89d310 Auto merge of #9362 - KiChjang:move-fetch-request, r=Ms2ger
Rename net/fetch/request.rs to net/fetch/methods.rs and move Request …

…to net_traits.

Also updated unit tests to correctly reference and use Request and Fetch methods.

This is in preparation for XHR and EventSource (possibly WebSocket as well), which rely on using Request, but we cannot make the script crate depend upon the net crate.

cc @nikkisquared @jdm

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9362)
<!-- Reviewable:end -->
2016-01-18 16:05:56 +05:30
Ms2ger
ff0992401e Remove remaining reference to the long-disappeared JSRef type. 2016-01-18 09:52:23 +01:00
bors-servo
754120684b Auto merge of #9364 - servo:rm-libc, r=KiChjang
Bump indirect 'libc' dependency through 'malloc_buf'

https://github.com/servo/servo/issues/8608

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9364)
<!-- Reviewable:end -->
2016-01-18 11:54:19 +05:30
Keith Yeung
a53661f6c8 Rename net/fetch/request.rs to net/fetch/methods.rs and move Request to net_traits 2016-01-18 00:57:19 -05:00
bors-servo
6a38d55cea Auto merge of #9363 - mattkuo:clean-imports, r=KiChjang
Remove remaining unused imports

Closes #9361

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9363)
<!-- Reviewable:end -->
2016-01-18 11:04:06 +05:30
Corey Farwell
74d75c40f9 Bump indirect 'libc' dependency through 'malloc_buf'
https://github.com/servo/servo/issues/8608
2016-01-18 00:17:14 -05:00
Matthew Kuo
9d2eacf039 Remove remaining unused imports 2016-01-17 20:55:53 -08:00
James Sanders
0bffffd8f5 Make WebSocket constructor take (DOMString or sequence<DOMString>) 2016-01-17 21:33:04 -07:00
bors-servo
6b81a72228 Auto merge of #9339 - frewsxcv:bump-glutin, r=SimonSapin
Upgrade servo-glutin to latest published version (0.4.7)

servo/glutin@servo-v0.4.5...servo-v0.4.7

The primary reason I'm updating servo-glutin is to indirectly pick up
these changes:

vberger/wayland-kbd#9

Daggerbot/x11-rs#32

...which results in two fewer libc 0.1.x dependency

servo#8608

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9339)
<!-- Reviewable:end -->
2016-01-18 09:03:12 +05:30
bors-servo
eb7b9309dd Auto merge of #9351 - fstr:9343-unused-imports, r=nox
Removed unused imports from devtools crate

Patch for #9343

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9351)
<!-- Reviewable:end -->
2016-01-18 07:48:03 +05:30
bors-servo
55d8228ed6 Auto merge of #9354 - stspyder:master, r=KiChjang
Update XMLHTTPRequest FetchBodyInit and related Impl (#9291)

Fixes #9291.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9354)
<!-- Reviewable:end -->
2016-01-18 04:19:59 +05:30
St.Spyder
763b99258f Update XHR BodyInit, update extract method impl 2016-01-18 02:26:13 +05:30
bors-servo
380541bd48 Auto merge of #9352 - mattkuo:cleanup-private-types, r=nox
Convert private types to public

fixes #9347

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9352)
<!-- Reviewable:end -->
2016-01-18 01:58:01 +05:30
bors-servo
7f16b4e47b Auto merge of #9348 - therealkbhat:script-cleanup, r=Wafflespeanut
Remove unused imports in script

Fixes #9345.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9348)
<!-- Reviewable:end -->
2016-01-18 00:36:34 +05:30
bors-servo
2ad562042b Auto merge of #9349 - therealkbhat:layout-cleanup, r=SimonSapin
Remove unused imports in layout

Fixes #9346.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9349)
<!-- Reviewable:end -->
2016-01-17 23:14:37 +05:30
bors-servo
41a3961ba5 Auto merge of #9344 - nerith:gfx, r=Wafflespeanut
Remove multiple unused imports in gfx

Fixes #9342.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9344)
<!-- Reviewable:end -->
2016-01-17 20:26:45 +05:30
bors-servo
7ae16c7ea3 Auto merge of #9294 - KiChjang:xhr-usvstring, r=nox
Change all DOMStrings to USV strings for XHR

This is in compliance with the new spec [here](https://xhr.spec.whatwg.org/#xmlhttprequest).

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9294)
<!-- Reviewable:end -->
2016-01-17 19:40:46 +05:30
bors-servo
557d79bb87 Auto merge of #9194 - nerith:info, r=nox
Remove the w3c link for the Event interface

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9194)
<!-- Reviewable:end -->
2016-01-17 18:58:42 +05:30
Matthew Kuo
8ecc120211 changed gfx private types to public 2016-01-17 04:48:32 -08:00
bors-servo
a4e805d909 Auto merge of #9337 - fmmartins:urlsearchparams-getall, r=nox
Implement URLSearchParams::getAll

Fixes #5439.

Please tell me if anything is wrong or needs some change!

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9337)
<!-- Reviewable:end -->
2016-01-17 18:13:17 +05:30
Florian Strübe
6502820ab3 Removed unused imports from devtools crate 2016-01-17 13:18:15 +01:00
Matthew Kuo
64f5818428 changed devtools private types to public 2016-01-17 04:13:33 -08:00
Matthew Kuo
58174448de changed compositor private types to public 2016-01-17 04:11:58 -08:00
bors-servo
2f0daa1d47 Auto merge of #9304 - ecoal95:sequence-in-unions, r=nox
webidl: Implement sequences in unions

Unblocks #9053

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9304)
<!-- Reviewable:end -->
2016-01-17 17:19:49 +05:30
Kishor Bhat
4c5eeb1f58 Remove unused imports in layout 2016-01-17 13:17:23 +05:30
Kishor Bhat
1ca2073979 Remove unused imports in script 2016-01-17 12:41:28 +05:30
Corey Farwell
f5c6c607c2 Upgrade servo-glutin to latest published version (0.4.7)
https://github.com/servo/glutin/compare/servo-v0.4.5...servo-v0.4.7

The primary reason I'm updating servo-glutin is to indirectly pick up
these changes:

https://github.com/vberger/wayland-kbd/pull/9

https://github.com/Daggerbot/x11-rs/pull/32

...which results in two fewer libc 0.1.x dependency

https://github.com/servo/servo/issues/8608
2016-01-16 16:04:54 -05:00
Brandon Fairchild
dce7c7bb69 Remove multiple unused imports in gfx
Fixes #9342.
2016-01-16 14:16:03 -05:00
bors-servo
5a954d2492 Auto merge of #9334 - MonsieurLanza:DomContentLoadedBubbles, r=KiChjang
DOMContentLoaded event should be trusted

Hopefully resolves #9332.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9334)
<!-- Reviewable:end -->
2016-01-16 22:14:38 +05:30
bors-servo
9118b64b4b Auto merge of #9263 - DarinM223:move_mousebutton, r=KiChjang
Moved MouseButton from msg to script_traits

Fixes #9250

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9263)
<!-- Reviewable:end -->
2016-01-16 19:34:51 +05:30
Keith Yeung
a64f832e57 Change all DOMStrings to USV strings for XHR 2016-01-16 08:51:34 -05:00
Lanza
27b78f3b84 Use fire_event instead of DispatchEvent to make DOMContentLoaded trusted
Removed unused import.

Update expectations for EventTarget#dispatchEvent()
2016-01-16 14:12:38 +01:00
Fernando Martins
29b14d4b3d Implement URLSearchParams::getAll 2016-01-15 22:40:55 +00:00
bors-servo
dba1f27305 Auto merge of #9333 - servo:list-properties, r=larsbergstrom
Add a script to list all CSS properties parsed by Servo.

I’ve been asked for that list by two different people this week :)

r? @larsbergstrom

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9333)
<!-- Reviewable:end -->
2016-01-16 01:06:03 +05:30
Simon Sapin
2222f345c8 Make the properties list JSON and add some more info. 2016-01-15 18:13:12 +01:00
Simon Sapin
9d29c3d2f5 Add a script to list all CSS properties parsed by Servo. 2016-01-15 15:50:32 +01:00