Commit graph

12279 commits

Author SHA1 Message Date
Corey Farwell
20c0af8b7d Update spec link pattern to reflect impl signature changes
Relevant to #7416
2015-08-31 17:38:23 -04:00
bors-servo
aee011a524 Auto merge of #7471 - aweinstock314:update-clipboard-20150831, r=Manishearth
Prevent ClipboardContext::new from panicing on OSX if NSPasteboard#ge…

…neralPasteboard fails (https://github.com/servo/servo/issues/7380).

8c4c31e73a

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7471)
<!-- Reviewable:end -->
2015-08-31 07:22:06 -06:00
Avi Weinstock
fd4147fe7c Prevent ClipboardContext::new from panicing on OSX if NSPasteboard#generalPasteboard fails (https://github.com/servo/servo/issues/7380). 2015-08-31 08:29:43 -04:00
bors-servo
fea36ceb9a Auto merge of #7466 - nox:rootedvec-from-iter, r=Ms2ger
Implement FromIterator<Root<A>> for RootedVec<JS<A>> (fixes #5117)



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7466)
<!-- Reviewable:end -->
2015-08-31 03:02:05 -06:00
bors-servo
1093f6bdcf Auto merge of #7463 - nox:css-ch, r=SimonSapin
Implement the ch unit as 0.5em



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7463)
<!-- Reviewable:end -->
2015-08-31 02:19:55 -06:00
Anthony Ramine
5cc36f0b91 Implement FromIterator<Root<A>> for RootedVec<JS<A>> (fixes #5117) 2015-08-31 10:11:29 +02:00
bors-servo
d46e4a6c4a Auto merge of #7454 - Ms2ger:worker-tests, r=nox
Disable workers tests in __dir__.ini rather than include.ini.

This ensures those tests are skipped when running ./mach test-wpt workers.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7454)
<!-- Reviewable:end -->
2015-08-31 01:34:02 -06:00
Ms2ger
14e55e3082 Disable workers tests in __dir__.ini rather than include.ini.
This ensures those tests are skipped when running ./mach test-wpt workers.
2015-08-31 09:12:52 +02:00
bors-servo
7dda183022 Auto merge of #7139 - samfoo:testable-net-load, r=jdm
Testable net load...

*The goal of this PR is to get early feedback on this before I go too far down the rabbit hole. This new code path is working, and there's several tests I've written as a proof of concept. There are still some regressions that I'll be fixing in the coming days.*

I've abstracted out the request/response cycle so that it's no longer dependent on the Hyper request/response structs. Since request/response @ hyper are structs, not traits, it made mocking them for tests impossible.

Current issues/concerns:

* This relies on boxing the `HttpResponse` that gets returned from the `HttpRequester` because `HttpResponse` is unsized. I don't know if there's a more idiomatic rust-y way of doing this?
* This relies on boxing the `Read` that is now returned from `load` for the same reason.
* The devtools and resource manager channels are still passed into `load`. It might be easier to inject these as trait dependencies instead of chans as well?
* Needs more tests.

🎩 

#6727

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7139)
<!-- Reviewable:end -->
2015-08-30 20:07:40 -06:00
Sam Gibson
43e0c4ac89 Prevents unwrapping invalid location url domains 2015-08-31 13:47:35 +12:00
bors-servo
9b2aa095f2 Auto merge of #7465 - jdm:revertcssprefs, r=jdm
Revert #7456

Experiment gone wrong; my apologies.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7465)
<!-- Reviewable:end -->
2015-08-30 15:53:31 -06:00
Josh Matthews
1461188349 Revert "Allow wptrunner to enable prefs for Servo."
This reverts commit 0d6f410a3f.
2015-08-30 17:04:09 -04:00
Josh Matthews
606bad91b0 Revert "Enable experimental layout prefs for CSSWG reftests."
This reverts commit 447b5b560c.
2015-08-30 17:03:57 -04:00
Sam Gibson
9d0f418ee0 Resolves merge conflict without wonky cloning 2015-08-31 08:54:12 +12:00
Anthony Ramine
8ab6bea0f3 Implement the ch unit as 0.5em 2015-08-30 22:39:12 +02:00
bors-servo
ccb8e46557 Auto merge of #7456 - jdm:cssprefs, r=jdm
Enable experimental layout prefs for CSSWG reftests.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7456)
<!-- Reviewable:end -->
2015-08-30 14:04:10 -06:00
bors-servo
86da67bb1e Auto merge of #7407 - nox:childnodes-replace, r=jdm
Optimise most basic case of .replaceChild() when updating childNodes



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7407)
<!-- Reviewable:end -->
2015-08-30 13:22:41 -06:00
bors-servo
347e9b6ef4 Auto merge of #7228 - nox:urlutils-setters, r=jdm
Implement setters in URLUtils

This fixes #6145 and takes care of most of #4250.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7228)
<!-- Reviewable:end -->
2015-08-30 12:40:53 -06:00
Anthony Ramine
9c4766bb0d Implement setters in URLUtils 2015-08-30 19:47:33 +02:00
bors-servo
a855669d4f Auto merge of #7455 - nox:rm-unused-warnings, r=jdm
Do not allow some warnings in codegen anymore

This fixes #395.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7455)
<!-- Reviewable:end -->
2015-08-30 11:37:04 -06:00
Josh Matthews
0d6f410a3f Allow wptrunner to enable prefs for Servo. 2015-08-30 12:37:34 -04:00
Josh Matthews
447b5b560c Enable experimental layout prefs for CSSWG reftests. 2015-08-30 12:37:13 -04:00
bors-servo
3062e0c7b1 Auto merge of #7445 - JoshTheGoldfish:Issue6934, r=Manishearth
Issue #6934 - Implement onerror event handler for AbstractWorker

Please review.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7445)
<!-- Reviewable:end -->
2015-08-30 10:19:15 -06:00
erneyja
8d4ed7292d Implemented onerror event handler for AbstractWorker 2015-08-30 11:37:16 -04:00
bors-servo
79328c11e3 Auto merge of #7442 - ecoal95:shader-validation, r=jdm
Add WebGL shader validation and translation

r? @jdm

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7442)
<!-- Reviewable:end -->
2015-08-30 09:29:42 -06:00
Anthony Ramine
cf6975f2a3 Do not allow unreachable_code in codegen anymore 2015-08-30 17:25:05 +02:00
Anthony Ramine
3c1c315838 Do not allow dead_code in codegen anymore 2015-08-30 17:19:42 +02:00
Anthony Ramine
2c8638ea9e Do not allow unused_parens in codegen anymore 2015-08-30 17:16:15 +02:00
Anthony Ramine
1064e7decc Do not allow unused_mut in codegen anymore 2015-08-30 16:53:35 +02:00
Anthony Ramine
aaa7a86381 Do not allow unused_unsafe in codegen anymore 2015-08-30 16:53:20 +02:00
bors-servo
940bcadc13 Auto merge of #7432 - jdm:dashedprops, r=nox
Add dashed CSS properties in CSSStyleDeclaration



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7432)
<!-- Reviewable:end -->
2015-08-30 08:20:57 -06:00
bors-servo
89a5e2b3d0 Auto merge of #7433 - frewsxcv:formdata-get, r=nox
Cleanup, refactor FormDataMethods::Get



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7433)
<!-- Reviewable:end -->
2015-08-30 07:00:33 -06:00
ecoal95
167885707d webgl: Add shader validation and translation
This commit adds angle-based validation and translation to WebGL
shaders.

The changes to the tex_image_2d test is neccessary (it was not valid
GLES 2.0 shader language).
2015-08-30 14:23:14 +02:00
Sam Gibson
4b6f07cbe6 Resolves strange borrow/type checking issues from new thread naming 2015-08-30 12:23:50 +10:00
Sam Gibson
f257b5fcef Adds content-length to empty-bodied non-GET/HEAD requests 2015-08-30 12:14:15 +10:00
Sam Gibson
976dbc5155 Adds a test for non-default accept-encoding headers 2015-08-30 12:14:15 +10:00
Sam Gibson
9b1f2231cb Adds a test for non-default accept headers 2015-08-30 12:14:15 +10:00
Sam Gibson
287dc7371f Extracts some dense code to a let binding 2015-08-30 12:14:14 +10:00
Sam Gibson
86df1d3d6a Renames AssertMustHaveHeadersRequest 2015-08-30 12:14:14 +10:00
Sam Gibson
ac0e4b4337 Renames RequestType 2015-08-30 12:14:13 +10:00
Sam Gibson
667b563f2e Renames LoadResponse 2015-08-30 12:14:13 +10:00
Sam Gibson
a1fd235347 Moves devtools request msg logic to where the request is sent 2015-08-30 12:14:12 +10:00
Sam Gibson
3b8bada5a1 Fixes code review nits 2015-08-30 12:14:12 +10:00
Sam Gibson
04c012dfbf Binds name instead of inlining value for readability 2015-08-30 12:14:11 +10:00
Sam Gibson
918f8a7760 Removes unnecessary clone 2015-08-30 12:14:11 +10:00
Sam Gibson
d8acb893de Inverts conditional and returns 2015-08-30 12:14:11 +10:00
Sam Gibson
1811ffa178 Uses and_then instead of more complicated matching 2015-08-30 12:14:10 +10:00
Sam Gibson
84ae53e011 Indents arguments to be more readable 2015-08-30 12:14:10 +10:00
Sam Gibson
6de61301f4 Removes inline'ing 2015-08-30 12:14:09 +10:00
Sam Gibson
94284fc47f Fixes new tidy problems 2015-08-30 12:14:09 +10:00