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
bors-servo
0f597d3890
Auto merge of #7933 - mbrubeck:piston-image, r=glennw
...
Replace libpng and stb_image with PistonDevelopers/image
Fixes #3368 . r? @glennw
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7933 )
<!-- Reviewable:end -->
2015-10-12 15:06:31 -06:00
bors-servo
ac1b595609
Auto merge of #7976 - frewsxcv:clippy, r=jdm
...
Cleanup code that was warned by rust-clippy
[whitespace agnostic diff](https://github.com/servo/servo/pull/7976/files?w=1 )
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7976 )
<!-- Reviewable:end -->
2015-10-12 04:37:42 -06:00
Rahul Sharma
4b363d2a0e
convert match to if let for location header check #7969
2015-10-12 10:27:20 +05:30
Corey Farwell
e3aabd0bc5
DRY out conditional logic in CORS header matching
2015-10-11 20:55:01 -04:00
Corey Farwell
81e034885b
Cleanup code that was warned by rust-clippy
2015-10-11 20:47:45 -04:00
bors-servo
7b904ef6fb
Auto merge of #7971 - gkbrk:fix_7970, r=nox
...
Use typed header API instead of set_raw in set_default_accept_encoding
Fixes #7970
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7971 )
<!-- Reviewable:end -->
2015-10-11 03:20:14 -06:00
Gökberk Yaltıraklı
5eeca1f037
Use typed header API instead of set_raw in set_default_accept_encoding
2015-10-11 11:00:03 +03:00
Matt Brubeck
e2e142aae8
Replace libpng with image everywhere.
2015-10-10 07:43:11 -07:00
David Raifaizen
de2060e6a1
Making map+clone more succinct with cloned
2015-10-10 09:31:21 -04:00
Louis Chan
fb45b0e691
Implement a quota of 5MB per origin for localstorage and sessionstorage
2015-10-09 03:55:27 +08:00
Mathieu Rheaume
e7a3220bc1
Implement Storage::SupportedPropertyNames
2015-10-04 10:22:13 -04:00
minimus
d4ebec6496
make mediatype default to text/plain in data URIs
...
change `data:charset=` to `data:;charset=` and set US-ASCII as default encoding
style change
2015-10-03 12:02:04 -04:00