Commit graph

15532 commits

Author SHA1 Message Date
Daniel Robertson
0df4118db9 Download extra std lib when cross-compiling #9557
Split ensure_bootstrap into two phases including a phase checking the
compiler, and a phase checking for target libraries.
2016-02-12 14:58:08 -05:00
bors-servo
0b27807ad4 Auto merge of #9596 - Jayflux:hotfix/5643, r=jdm
removing warning about 3D acceleration, fixes #5643

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9596)
<!-- Reviewable:end -->
2016-02-11 01:15:45 +05:30
Jason Williams
01a80b3172 removing warning about 3D acceleration, fixes #5643 2016-02-10 19:33:53 +00:00
bors-servo
a31f31e819 Auto merge of #6677 - jdm:iframeblockonload, r=Ms2ger
Make iframes block the enclosing document's load event

It occurs to me as I write this that this doesn't handle the case of removing the iframe from the document before it's finished loading. Consider this an early feedback release!

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6677)
<!-- Reviewable:end -->
2016-02-10 19:50:29 +05:30
Josh Matthews
c5fe8f7401 Add a test for panicking when reloading an iframe twice. 2016-02-10 09:20:07 -05:00
Josh Matthews
047bb060c1 Improve documentation for new methods. 2016-02-10 09:20:06 -05:00
Josh Matthews
d6ea4b60a4 Make location_reload.html not trigger resource exhaustion. 2016-02-10 09:20:05 -05:00
Ms2ger
6ce5b7527a Ensure that base_multiple.html fails rather than times out in the typical failure case. 2016-02-10 09:20:04 -05:00
Ms2ger
0f383a50a1 Rewrite and clarify base_multiple.html. 2016-02-10 09:20:03 -05:00
Josh Matthews
b7bff424da Reorder marking of pending parser-blocking scripts to avoid reentrancy.
In cases where a pending parser-blocking script is executing, if the script
caused another load to complete (eg. by removing a pending iframe from the
DOM, thus terminating the load) then the currently-executing script would
attempt to execute itself again.
2016-02-10 09:20:02 -05:00
Josh Matthews
fbae86281d Add test for unblocking onload when removing an iframe from the tree. 2016-02-10 09:20:01 -05:00
Josh Matthews
e9b98ad5fa Make iframes block the enclosing document's load event. Fixes #6663. 2016-02-10 09:20:00 -05:00
bors-servo
fc3f93235e Auto merge of #9590 - Ms2ger:dlib, r=KiChjang
Update dlib.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9590)
<!-- Reviewable:end -->
2016-02-10 14:39:31 +05:30
Ms2ger
d04d8fcae4 Update dlib. 2016-02-10 09:22:13 +01:00
bors-servo
f1018b84a8 Auto merge of #9525 - nikkisquared:test_filtered_responses, r=asajeffrey
Test filtered responses and implement Cors Check Fetch step

I've been writing tests for creating filtered responses. So far I have three of the four types being made (namely, Basic, CORS, and Opaque), and just need to figure out how to make an OpaqueRedirect filtered response, since it's handled separately from the others. I will also add more tests to ensure the content of the filtered responses matches the limitations placed by the specification.

Along the way I implemented Cors Check, since it's required for the CORS filtered response. @jdm suggested I handle it in here, since it's such a small step, compared to other parts of Fetch.

Since all the tests currently pass, and I've spent a while adding the Cors Check and other pieces, I figured now would be a good time to start having it reviewed.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9525)
<!-- Reviewable:end -->
2016-02-10 03:11:22 +05:30
Nikki
e8665d47ea working on implementing Cors Check and Origin to Ascii serialisation 2016-02-09 13:51:35 -07:00
bors-servo
cb8be1434f Auto merge of #9565 - timvandermeij:dead-function, r=jdm
Remove dead function Overflow::union_rect

Fixes #9556.

This makes Servo compile with one warning less.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9565)
<!-- Reviewable:end -->
2016-02-10 02:20:54 +05:30
bors-servo
8ce3d0f8b7 Auto merge of #9572 - Manishearth:retry-n, r=larsbergstrom
Add CI script to retry builds

We can then run test-ref as `retry.sh 2 ./mach test-ref ....`

We could also have this curl to some server with information on the
intermittent; so that we can keep track of these separately. It would also be
nice to have crowbot report them in chat (@jdm, is this possible?) and have
something comment on GH with a cross-reference.

This isn't too different from what we do already, we mostly just file or link to
an intermittent hit retry, and move on.

r? @larsbergstrom

cc @jack @edunham

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9572)
<!-- Reviewable:end -->
2016-02-10 01:00:24 +05:30
bors-servo
2d1293d54d Auto merge of #9584 - Ms2ger:WindowProxy, r=jdm
Give WindowProxy objects an innerObject hook.

This ensures that UncheckedUnwrap(obj, /* stopAtOuter = */ true) will indeed
stop at the WindowProxy ("outer window", in older SpiderMonkey jargon), which
is necessary to prevent raw Window ("inner window") objects becoming visible
to JavaScript code, or tripping assertions that we don't do that.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9584)
<!-- Reviewable:end -->
2016-02-09 21:42:23 +05:30
Ms2ger
d79660e989 Give WindowProxy objects an innerObject hook.
This ensures that UncheckedUnwrap(obj, /* stopAtOuter = */ true) will indeed
stop at the WindowProxy ("outer window", in older SpiderMonkey jargon), which
is necessary to prevent raw Window ("inner window") objects becoming visible
to JavaScript code, or tripping assertions that we don't do that.
2016-02-09 16:46:48 +01:00
bors-servo
70423154b9 Auto merge of #9583 - Ms2ger:update-product, r=jgraham
Pass the product to the test updating code (fixes #9563).

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9583)
<!-- Reviewable:end -->
2016-02-09 16:09:34 +05:30
Ms2ger
68ad3920de Pass the product to the test updating code (fixes #9563). 2016-02-09 11:22:39 +01:00
bors-servo
b9ec889c44 Auto merge of #9581 - Ms2ger:xhr-enum, r=Manishearth
Stop importing XMLHttpRequestResponseType variants.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9581)
<!-- Reviewable:end -->
2016-02-09 14:48:58 +05:30
Ms2ger
bc6548fa80 Stop importing XMLHttpRequestResponseType variants. 2016-02-09 10:10:01 +01:00
bors-servo
3d63f09361 Auto merge of #9244 - paulrouget:securitychange, r=jdm
mozbrowsersecuritychange event

Fixes #8544

No test yet. Is there a way to mock a https connection?

Also, I wish I could use the `HTTPSState` enum instead of a `String` when calling `trigger_mozbrowser_event` (https://github.com/servo/servo/compare/master...paulrouget:securitychange?expand=1#diff-30a18e04d7e0b66aafdf192e416cad44R306) but that would require `constellation_msg.rs` to know about `HTTPSState`, which is defined in `document.rs`, which would add a dependency to `components/msg`. I could define `HTTPSState` somewhere else maybe? Or maybe it's fine to use a `String`. But then, should I use the HTTPSState strings (`"modern/deprecated/none"`) or the mozbrowser strings (`"secure/insecure/broken"`) (as it is now)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9244)
<!-- Reviewable:end -->
2016-02-09 13:00:29 +05:30
Paul Rouget
63519c3574 mozbrowsersercuritychange event 2016-02-09 08:05:17 +01:00
bors-servo
93cad4afd3 Auto merge of #9577 - michaelwu:h5e-update, r=Manishearth
Update html5ever to 0.5.0

r? @Manishearth

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9577)
<!-- Reviewable:end -->
2016-02-09 11:08:27 +05:30
bors-servo
0124d90a6d Auto merge of #9571 - Ms2ger:fire, r=asajeffrey
Remove the global argument to EventTarget::{fire_event, fire_simple_event}.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9571)
<!-- Reviewable:end -->
2016-02-09 05:08:00 +05:30
Michael Wu
fc7f05a751 Update html5ever to 0.5.0 2016-02-08 16:58:18 -05:00
Manish Goregaokar
26a6ed5873 Add CI script to retry builds 2016-02-09 01:40:44 +05:30
Ms2ger
5317af1e19 Remove the global argument to EventTarget::{fire_event, fire_simple_event}. 2016-02-08 19:21:56 +01:00
bors-servo
4c4df37a12 Auto merge of #9028 - iszak:issue-8842, r=SimonSapin
The interface in #8210 allows us to create custom instances of CSS parse error reporters. We should write a test in tests/unit/style/stylesheets.rs that tries to parse invalid CSS and have a custom reporter that asserts the errors that are reported.

Code: tests/unit/style/stylesheets.rs, http://doc.servo.org/style_traits/trait.ParseErrorReporter.html

Fixes #8842

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9028)
<!-- Reviewable:end -->
2016-02-08 06:57:48 +05:30
Iszak Bryan
68d512c1ea Added test to verify parse error reporter is functioning 2016-02-07 18:46:41 +00:00
Tim van der Meij
9e01332bed Remove dead function Overflow::union_rect 2016-02-07 15:29:15 +01:00
bors-servo
28ecb0bba3 Auto merge of #9543 - alopatindev:enums_constructors_codingstyle_fix, r=KiChjang
Fix #9508: Beautify our union enums constructors

Solves #9508
@jdm Please review. Thanks!

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9543)
<!-- Reviewable:end -->
2016-02-07 05:59:57 +05:30
Alexander Lopatin
2be49404be Fix #9508: Beautify our union enums constructors 2016-02-07 02:55:21 +03:00
bors-servo
2f52a168ca Auto merge of #9562 - timvandermeij:setresponsetype-spec, r=KiChjang
Make step 3 of XHR's SetResponseType method match the specification

Fixes #9552.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9562)
<!-- Reviewable:end -->
2016-02-07 03:15:31 +05:30
Tim van der Meij
816c65aab0 Make step 3 of XHR's SetResponseType method match the specification 2016-02-06 22:33:42 +01:00
bors-servo
7c249b1d53 Auto merge of #9545 - n-liam:issue6483, r=Wafflespeanut
Added dependency for Fedora, mesa-libEGL-devel.

mesa-libEGL-devel was necessary on Centos 7 and likely on Fedora distos as well.

Fixes #6483

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9545)
<!-- Reviewable:end -->
2016-02-06 11:51:48 +05:30
bors-servo
b2a297c64f Auto merge of #9549 - saurvs:master, r=larsbergstrom
Removed references of android-rs-glue from comments and documentation

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

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9549)
<!-- Reviewable:end -->
2016-02-06 08:43:46 +05:30
bors-servo
3498deca39 Auto merge of #9542 - timvandermeij:immeta, r=jdm
Update immeta dependency to resolve ImageCacheThread panic

Fixes #9501.

Before this patch, a website such as http://www.universiteitleiden.nl would consistently crash Servo. After this patch, the website loads just fine.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9542)
<!-- Reviewable:end -->
2016-02-06 04:02:47 +05:30
bors-servo
5505bf1de5 Auto merge of #9471 - peterkort:patch-1, r=jdm
fix #8461

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9471)
<!-- Reviewable:end -->
2016-02-06 02:51:21 +05:30
bors-servo
289232ef61 Auto merge of #9554 - Ms2ger:util-deps, r=nox
Remove some unused dependencies from the util crate.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9554)
<!-- Reviewable:end -->
2016-02-06 00:57:35 +05:30
bors-servo
b468a6c31c Auto merge of #9483 - Hywan:cs, r=KiChjang
Quality: Fix CS

Just remove trailing spaces.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9483)
<!-- Reviewable:end -->
2016-02-05 22:57:59 +05:30
qpid
9801552535 Removed documentation referencing 'android-rs-glue', and updated a similar comment to mention 'build-apk' 2016-02-05 21:03:13 +05:30
bors-servo
3701edbf2b Auto merge of #9537 - nox:rm-casing-plugin, r=Ms2ger
Remove the casing plugin

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9537)
<!-- Reviewable:end -->
2016-02-05 18:28:57 +05:30
Ms2ger
7e7683740a Remove some unused dependencies from the util crate. 2016-02-05 13:06:14 +01:00
bors-servo
8327ab86e0 Auto merge of #9538 - nox:android-glue-version, r=Ms2ger
Specify android_glue version in android_glue/Cargo.toml

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9538)
<!-- Reviewable:end -->
2016-02-05 12:42:03 +05:30
n-liam
13e22dfcbc Added dependency for Fedora mesa-libEGL-devel. This dependency was necessary on Centos 7 and likely on Fedora distos as well. 2016-02-04 23:51:11 -07:00
bors-servo
fb3fe3d784 Auto merge of #9522 - pcwalton:two-overflows, r=mbrubeck
layout: Separate out overflow-for-scrolling from overflow-for-paint.

Closes #9484.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9522)
<!-- Reviewable:end -->
2016-02-05 10:58:50 +05:30