jmr0
7d0bede8ba
adding initial support for websocket subprotocol negotation
2015-12-17 09:17:15 -05:00
Tetsuharu OHZEKI
e8c12c1c6d
Fix warnings: Use Vec.extend_from_slice instead of Vec.push_all
2015-12-10 16:49:29 -05:00
Nova Fallen
e8c8277f34
move websocket creation to resource task
2015-12-08 02:04:40 -05:00
Jigesh Mehta
ce3c9ff57c
implement support for withCredentials
2015-12-04 16:34:30 -05:00
bors-servo
8b95d7b8d8
Auto merge of #8757 - servo:skia, r=mbrubeck
...
Use skia and deps from crates.io.
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.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8757 )
<!-- Reviewable:end -->
2015-12-03 12:58:29 +05:30
Simon Sapin
aa1eba4f5a
Use skia and deps from crates.io.
...
Fix https://github.com/servo/skia/issues/70
2015-12-02 19:07:59 +01:00
bors-servo
595bda478e
Auto merge of #8752 - Manishearth:om-nom, r=metajack
...
Make `path_matches` match the spec (fixes cookies)
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8752 )
<!-- Reviewable:end -->
2015-11-30 23:18:39 +05:30
Manish Goregaokar
f8d906be10
Make path_matches
match the spec (fixes cookies)
2015-11-30 22:01:33 +05:30
bors-servo
d48d8b3ea1
Auto merge of #8713 - GuillaumeGomez:features, r=Manishearth
...
Remove stabilized features
Fixes #8706 .
cc @KiChjang
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8713 )
<!-- Reviewable:end -->
2015-11-28 21:58:43 +05:30
bors-servo
dbff1ab336
Auto merge of #8692 - GuillaumeGomez:patch-1, r=Wafflespeanut
...
Ensure crate are alphabetically sorted
cc @nox
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8692 )
<!-- Reviewable:end -->
2015-11-28 19:34:11 +05:30
Guillaume Gomez
e1e2b61049
Remove stabilized features
2015-11-28 05:48:03 +01:00
Guillaume Gomez
6e7de62b38
Add check up on extern crate order and sort extern crates alphabetically
2015-11-28 03:11:08 +01:00
bors-servo
a515fe320b
Auto merge of #8516 - KiChjang:http-fetch-refactor, r=jdm
...
Refactor http_fetch to reflect the new standard
Partial #4576 . The spec is really getting funky now - it's depending more and more on the DOM objects (e.g. prompting the user for authentication using a `Window` object). I think we can just pass in username and password as properties of the `Request` struct though.
I've also added in the async version for http_request.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8516 )
<!-- Reviewable:end -->
2015-11-27 11:39:32 +05:30
Manish Goregaokar
dc0e467945
Upgrade to rustc 1.6.0-nightly (d5fde83ae 2015-11-12)
...
… and libc 0.2 and many other dependencies
2015-11-27 00:15:29 -05:00
Keith Yeung
7d3eb72a26
Refactor http_fetch to reflect the new standard
2015-11-26 17:12:19 -08:00
bors-servo
f96e8ce9e8
Auto merge of #8685 - jmr0:master, r=Ms2ger
...
tidy rule to warn against use of &String and refactoring
Fixes #8681
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8685 )
<!-- Reviewable:end -->
2015-11-27 04:48:38 +05:30
bors-servo
831979d6a7
Auto merge of #8650 - Wafflespeanut:about-404, r=Wafflespeanut
...
Redirect to an error page on 404!
fixes #7658
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8650 )
<!-- Reviewable:end -->
2015-11-26 22:47:03 +05:30
Ravi Shankar
b17ca9bdc1
Redirect to an error page when file's not found
2015-11-26 11:20:42 +05:30
jmr0
df49cf2b13
adding tidy rule to warn against use of &String and refactoring instances of &String in codebase
2015-11-25 21:49:12 -05:00
bors-servo
13a96fcaf7
Auto merge of #8660 - pcwalton:ipc-channel-errors, r=larsbergstrom
...
Update `ipc-channel` to pick up the improved error reporting.
Intended to help diagnose intermittent failures.
r? @jdm or @larsbergstrom (or whoever)
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8660 )
<!-- Reviewable:end -->
2015-11-25 07:31:15 +05:30
Simon Sapin
45ec900745
Remove dependency on regex_macros
...
This reduces the amount of code using unstable features that we depend on.
The hand-written IP address parser is probably just as fast.
2015-11-24 22:07:14 +01:00
bors-servo
ed6a3f5022
Auto merge of #8609 - KiChjang:file-loader-headers, r=KiChjang
...
Add content_type to metadata in file_loader
Fixes #4212 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8609 )
<!-- Reviewable:end -->
2015-11-25 01:49:26 +05:30
Keith Yeung
af705a6faf
Add content_type to metadata in file_loader
2015-11-24 11:52:35 -08:00
Patrick Walton
2843000810
Update ipc-channel
to pick up the improved error reporting.
...
Intended to help diagnose intermittent failures.
2015-11-23 16:38:39 -08:00
Alex Gaynor
2d662aa4e7
Always disable SSLv2 and SSLv3.
...
These protocols have serious known weakness and our turned off in other browsers.
2015-11-21 12:11:48 -05:00
Alex Gaynor
008d99663f
Fixed #8594 -- use a more modern default cipher suite list by default
2015-11-20 11:40:07 -05:00
bors-servo
bda46179b6
Auto merge of #8523 - Wafflespeanut:redirects, r=jdm
...
Listen for cancellation message during loads and redirects...
fixes #8495
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8523 )
<!-- Reviewable:end -->
2015-11-14 19:25:33 +05:30
Ravi Shankar
afb9b0707b
Testing cancellation during redirects
2015-11-14 10:04:32 +05:30
Ralph Giles
135bcacee4
Use the correct .png extension for the image placeholder.
...
This was changed to the mozilla broken image resource
without changing the filename, even though the file
type changed.
2015-11-13 11:45:09 -08:00
Josh Matthews
5e123df7a7
Make SSL cert verification errors work again. Add a horrible, no-good, very bad regression test.
2015-11-13 11:30:38 -05:00
Alan Jeffrey
cf340be758
Replaced DOMString by String in storage APIs.
2015-11-12 17:52:59 -06:00
bors-servo
4848e37e2e
Auto merge of #7844 - Wafflespeanut:requests, r=jdm
...
Cancelable network requests!
fixes #4974
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7844 )
<!-- Reviewable:end -->
2015-11-12 18:59:58 +05:30
Ravi Shankar
c4cf72db6e
Added support for synchronization along with an unit test for cancellation listener
2015-11-12 14:04:38 +05:30
Ravi Shankar
10f5584f78
Implement cancellation listener for cancelling network requests
2015-11-12 14:02:59 +05:30
rohan.prinja
51012d17c1
replace use of load_whole_resource in net/image_cache_task.rs with File::open
...
don't ignore read_to_end's return value
2015-11-10 00:09:17 +09:00
Abhishek Kumar
b7de946205
Check in for task 1,4 and 5
...
Adding pipelineID to httpresponse message, clearner code for task1
Commit for Refactored task
Unit tests
Removing extra whitespaces.
Removing extra whitespaces.
Removing tabs whitespaces
Making Code tidier.
Style issues Fix
Test-tidy Fixes
2015-11-05 00:17:24 -05:00
Ms2ger
6b75078503
Make DOMString a newtype around String, rather than a typedef.
...
This should make it somewhat easier to experiment with alternative
representations in the future. To reduce churn, this commit leaves the String
field public, though.
Also, this will allow us to use the default String type to represent the IDL
USVString type, which explicitly forbids unpaired surrogates, ans as such is
a better match to the Rust String type.
2015-11-04 12:09:11 +01:00
Nova Fallen
00528f1f1f
Refactor code dealing with headers of requests and responses into separate functions to enable use by websocket code
2015-11-03 11:17:53 -05:00
nxnfufunezn
468eaac096
Accept Brotli-compressed HTTP responses #8156
2015-11-01 08:59:18 +05:30
Eli Friedman
aef06f2f20
Consistently use content-type sniffing with all protocols.
2015-10-31 11:26:17 -07:00
Manish Goregaokar
ce5586f74a
Update euclid to 0.3
2015-10-28 21:34:23 +05:30
bors-servo
4f767430a4
Auto merge of #7894 - Yoric:image-url, r=glennw
...
Rework image_cache_task to avoid using `url` as key during the loadin…
…g of an image.
A `url` can be very large, in particular if it is a data: url, so using it as a key for lookups whenever we load a few bytes is not a very good idea. This patch introduces an intermediate `LoadKey` (internally, an u64) that makes hashmap lookups faster. Somewhere along the way, we also get rid of a few calls to `url.clone()`.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7894 )
<!-- Reviewable:end -->
2015-10-14 17:26:48 -06:00
bors-servo
f35f809938
Auto merge of #7984 - eefriedman:net-send-error, r=jdm
...
Refactor resource loaders to use send_error utility.
No substantial functional change.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7984 )
<!-- Reviewable:end -->
2015-10-14 13:28:14 -06:00
bors-servo
7308d0dd0d
Auto merge of #7967 - eefriedman:mime-handling, r=jdm
...
MIMEClassifier::classify always succeeds; fix the type to reflect this.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7967 )
<!-- Reviewable:end -->
2015-10-14 08:46:32 -06:00
David Rajchenbach-Teller
b7f59691ec
Rework image_cache_task to avoid using url
as key during the loading of an image.
...
A `url` can be very large, in particular if it is a data: url, so using it as a key for lookups whenever we load a few bytes is not a very good idea. This patch introduces an intermediate `LoadKey` (internally, an u64) that makes hashmap lookups faster. Somewhere along the way, we also get rid of a few calls to `url.clone()`.
2015-10-14 08:08:31 +02:00
Eli Friedman
1c4962288c
MIMEClassifier::classify always succeeds; fix the type to reflect this.
2015-10-13 18:03:40 -07:00
Eli Friedman
10664cf3f4
Refactor resource loaders to use send_error utility.
...
No substantial functional change.
2015-10-13 16:37:12 -07:00
David Raifaizen
43a0651761
Removed user agent parameter from being unnecessarily passed
2015-10-13 18:17:26 -04:00
bors-servo
eb7039d04d
Auto merge of #7987 - frewsxcv:clippy, r=Manishearth
...
Fix issues found by rust-clippy
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7987 )
<!-- Reviewable:end -->
2015-10-12 18:33:30 -06:00
Corey Farwell
20beaf5af3
Fix issues found by rust-clippy
2015-10-12 20:21:49 -04:00