Anthony Ramine
697b9e2b87
Merge net and net_tests
2018-01-20 15:36:09 +01:00
Simon Sapin
2a5c4133f9
Make tests/units/* compile without warnings in non-test mode
...
(if not usefully)
2017-12-07 13:50:10 +01:00
Simon Sapin
0739b5d57a
Remove 5 second pause in ./mach test-unit
...
The pause is likely due to a Servo bug that I’m about to file, this does not fix the underlying bug.
2017-11-30 17:25:49 +01:00
Manish Goregaokar
6dd7af2bda
Fetch cancellation: Add CancellationListener
2017-11-20 16:54:24 -08:00
Manish Goregaokar
1dfb125cc9
Fetch cancellation: Add cancel_chan to FetchContext
2017-11-17 15:59:59 -08:00
Simon Sapin
008e733df6
Fix some "unused" warnings
2017-06-06 16:58:35 +02:00
Anthony Ramine
16863017a9
Move the HTTP connector in HttpState
2017-04-06 19:35:11 +02:00
Anthony Ramine
949a0827e0
Move the SSL client in HttpState
2017-04-06 18:11:20 +02:00
Josh Matthews
dc99104f55
Add command-line argument to use a custom SSL certificate database.
2017-04-06 19:25:34 +09:00
Anthony Ramine
64ba597a3a
Move Arc out of HttpState
2017-04-03 14:00:36 +02:00
Anthony Ramine
016fee016b
Move the HTTP connector to FetchContext
2017-04-03 12:47:33 +02:00
Anthony Ramine
cb2eb81208
Remove all internal mutability from Request
2017-04-03 12:39:07 +02:00
Anthony Ramine
f42a63baea
Make fetch take a &Request
2017-04-03 12:33:43 +02:00
ddh
e527c9a991
Update Hyper and OpenSSL
2017-03-31 16:32:21 +02:00
Ms2ger
c1e8beacdc
Remove unused content-blocker dependency from unit tests.
2017-03-09 10:29:34 +01:00
Anthony Ramine
63c4490e73
Kill the plugins crate and its clippy support
...
Sometimes clippy gets outdated by months, and its current support setup
means that each Servo component need to opt into it by depending on
the plugins crate manually, and not all components do that.
2017-02-21 11:50:36 +01:00
mrnayak
a3026499f4
Implement Subresource Integrity
...
Implemented response validation part of
https://w3c.github.io/webappsec-subresource-integrity/ .
Implemented step eighteen of the main fetch. If a request has integrity
metadata, then following steps are performed
*Wait for response body
*If the response does not have a termination reason and response does not
match request’s integrity metadata, set response to a
network error.# Please enter the commit message for your changes. Lines starting
2017-01-08 08:52:18 +05:30
Raghav
6020b4c15c
Implement HSTS fetch step
...
Implemented step nine of the main fetch. If current URL scheme is 'HTTP'
and current URL's host is domain and if current URL's host matched with
Known
HSTS Host Domain Name Matching results in either a superdomain match with
an asserted includeSubDomains directive or a congruent match then we
change request scheme to 'https'. This change has been made in method.rs
A test case to validate this has been added in fetch.rs. For asserting
https scheme, a https localhost was required. For this purpose I have
created a self-signed certificate and refactored fetch-context and
connector.rs to programmatically trust this certificate for running this
test case.
2016-12-29 12:55:31 +05:30
Ms2ger
217f44b67a
Make the fetch target non-optional.
2016-12-15 10:49:04 +01:00
Ms2ger
6f2606cdee
Introduce fetch_with_cors_cache() API for tests.
2016-12-15 10:46:04 +01:00
Ms2ger
306905a631
Use the asynchronous fetching code for fetch_with_context().
2016-12-15 10:45:40 +01:00
Ms2ger
a5efc01b5f
Use the asynchronous fetching code in unit tests.
...
This is the only code that is used in Servo proper, so it's a more useful
thing to test.
2016-12-15 10:45:15 +01:00
Ms2ger
c03cd45258
Replace fetch_async() by a new fetch() function.
...
fetch() returns immediately after processing EOF, at the latest, so not
spinning up a thread should not cause noticeable delays. OTOH, it might
reduce the contention for cores, and reduce the overall time needed.
2016-12-15 10:44:00 +01:00
Ms2ger
9d9f048b3b
Introduce fetch_with_context() to reduce repetition.
2016-12-15 10:25:58 +01:00
Ms2ger
8d34ef109d
Qualify the fetch() calls in unit tests.
2016-12-15 10:25:27 +01:00
Alan Jeffrey
9be4fd56ce
Removed util.
2016-12-14 18:04:37 -06:00
Ms2ger
ae1340bf50
Pass the UIProvider to FileManager::handle() as needed.
2016-11-21 10:37:26 +01:00
Emilio Cobos Álvarez
913c874cb5
Urlmageddon: Use refcounted urls more often.
2016-11-17 18:34:23 +01:00
Ms2ger
234b47e33e
Pass a borrowed fetch context to fetch().
...
This will allow inspecting its state after fetching in unit tests.
2016-11-08 18:01:23 +01:00
Ms2ger
184adb7495
Simplify string handling in make_server.
2016-11-07 15:10:48 +01:00
Ms2ger
b64ca44953
Move make_server to the root of the net unit tests crate.
2016-11-07 15:10:47 +01:00
Ms2ger
a888f075a1
Privatize the http_loader module.
2016-11-06 12:18:39 +01:00
Ms2ger
a8f655caf3
Move some helper functions to the root of the net tests crate.
2016-11-03 11:24:15 +01:00
Alan Jeffrey
a74fe58563
Moved pub_domains to net_traits and did a spring clean.
2016-09-29 17:28:47 -05:00
Anthony Ramine
7ad51dcd7a
Update serde to 0.8 ( fixes #12659 )
2016-08-12 18:37:27 +02:00
Florian Duraffourg
dbef65129f
Add mach command to update public domain list and use a HashSet instead of a Vec to lookup public domains
2016-06-09 09:14:01 +02:00
Josh Matthews
074fc4a5e1
Process content blocker rules in the HTTP loader.
2016-05-30 13:17:42 +02:00
Zhen Zhang
96b2093121
Fix FileManager thread panic and other misc improvements
...
- Add shut down logic for FileManager thread
- Add an unit test for filemanager_thread
2016-05-24 22:32:36 +08:00
Josh Matthews
9e8cf19e51
Add timeline markers for HTTP requests, JS evaluation, and HTML parsing.
2016-05-18 08:02:42 -05:00
Florian Duraffourg
8b9b36454c
Add unit tests for cookies base on abarth/http-state github repo
...
- Add unit tests
- Add a mach command to update cookie's unit tests
2016-05-17 10:13:26 +02:00
Josh Matthews
d888ed368d
Make new test use local resources only.
2016-04-20 12:38:38 -04:00
Yoav Alon
36eb25161d
added test for https://github.com/servo/servo/issues/10548
2016-04-18 03:34:25 +03:00
Nikki
e8665d47ea
working on implementing Cors Check and Origin to Ascii serialisation
2016-02-09 13:51:35 -07:00
Nikki
5a8c533755
Implement a basic test for Fetch and fix errors it finds
2016-01-13 16:45:57 -07:00
rohan.prinja
1f02c4ebbb
task -> thread
2016-01-10 17:58:13 +09:00
Corey Farwell
f34da4120d
Implement 'url!(..)' macro
...
https://github.com/servo/rust-url/issues/136
https://github.com/servo/rust-url/pull/137
2015-11-21 08:15:56 -05: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
Prabhjyot Singh Sodhi
920bb5e4b8
tests for devtools integration with network requests/responses
2015-09-25 22:07:01 +05:30
Manish Goregaokar
3c969b346a
Upgrade rust to f93ab64d4a1a7ee91759a1594ab2a426b6cc657e/rustc-1.5.0-dev.
2015-09-23 14:44:59 +02:00
Sam Gibson
6f573d5d44
Move HSTS/CookieStorage to Arc<RwLock> from Ipc
...
servo/servo#7421
2015-09-19 18:30:37 +12:00