Ms2ger
761524c01b
Remove some unused arguments.
...
The change to the unit test is necessary because the resource thread is not
resilient against either of these Senders being dropped while the resource
thread is running. Before this change, it held clones of those senders itself
(public_setup_chan_clone, private_setup_chan_clone).
2016-11-24 11:46:33 +01:00
Ms2ger
7913f3adaf
Remove the unused CancellationListener arguments in filemanager_thread.
2016-11-24 11:46:30 +01:00
Ms2ger
ce24edc2b3
Remove a test for the CoreResourceMsg::Cancel message.
2016-11-24 11:46:23 +01:00
Ms2ger
2dc73d8789
Rewrite test_redirect_from_x_to_x_provides_x_with_cookie_from_first_response.
2016-11-23 22:35:33 +01:00
Ms2ger
f4f125852a
Remove references to https from http_loader unit tests.
2016-11-23 22:34:39 +01:00
Ms2ger
adc78c7cbe
Remove a test for view-source.
...
This scheme is not currently supported in fetch (#14308 ).
2016-11-23 22:34:38 +01:00
Ms2ger
621ca6190a
Translate a test for ftp URLs to fetch.
2016-11-23 22:34:36 +01:00
Ms2ger
fc26aaf807
Translate a unit test for bogus schemes to fetch.
2016-11-23 22:34:34 +01:00
Ms2ger
ce89fcf335
Rewrite test_cookies_blocked.
2016-11-23 22:34:33 +01:00
Ms2ger
2fa032109f
Rewrite test_content_blocked.
2016-11-23 22:34:32 +01:00
Ms2ger
b4178c7eaf
Split test_content_blocked for readability.
2016-11-23 22:34:31 +01:00
Ms2ger
3da075ca73
Remove test for CustomResponseMediator.
...
The fetch stack does not yet support this at all (#14306 ).
2016-11-23 22:34:30 +01:00
Ms2ger
64d176d851
Remove referrer policy unit tests.
...
This code should be covered sufficiently by wpt tests.
2016-11-23 22:34:28 +01:00
Ms2ger
a8f7f3c1db
Rewrite test_auth_ui_needs_www_auth.
2016-11-23 22:34:27 +01:00
Ms2ger
4c34e9aa89
Remove test_auth_ui_sets_header_on_401.
...
The fetch stack does not yet support asking the user for credentials (#14305 ).
2016-11-23 22:34:26 +01:00
Ms2ger
9f23949628
Rewrite test_if_auth_creds_not_in_url_but_in_cache_it_sets_it.
2016-11-23 22:34:25 +01:00
Ms2ger
27d90fb6a8
Rewrite test_load_follows_a_redirect.
2016-11-23 22:34:20 +01:00
Ms2ger
04ffeea3c5
Rewrite test_redirect_from_x_to_y_provides_y_cookies_from_y.
2016-11-23 17:51:04 +01:00
Ms2ger
ae1340bf50
Pass the UIProvider to FileManager::handle() as needed.
2016-11-21 10:37:26 +01:00
Ms2ger
f672bf9eab
Factor out FileManager::promote_memory().
2016-11-21 10:37:25 +01:00
Emilio Cobos Álvarez
913c874cb5
Urlmageddon: Use refcounted urls more often.
2016-11-17 18:34:23 +01:00
Ms2ger
56dd6417e6
Remove the network.http.redirection-limit preference.
...
The Fetch standard defines this value as twenty; there is no good reason to
allow changing that at runtime.
2016-11-14 14:44:08 +01:00
bors-servo
a2689f2a0e
Auto merge of #14163 - servo:fetch-unit-http, r=metajack
...
Rewrite some http unit tests with fetch.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14163 )
<!-- Reviewable:end -->
2016-11-12 00:01:10 -06:00
bors-servo
e3f07dfa16
Auto merge of #14156 - frewsxcv:cors-capitalization, r=KiChjang
...
Update CORS naming from 'CORS' to 'Cors'.
As per:
https://aturon.github.io/style/naming/README.html#general-conventions-[rfc-#430]
Acronyms should be considered one word and not all caps.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14156 )
<!-- Reviewable:end -->
2016-11-10 14:43:36 -06:00
Ms2ger
15b55c3231
Make Response::url private.
2016-11-10 13:18:43 +01:00
Ms2ger
65602de403
Add a successful test for a redirect loop.
2016-11-10 13:13:31 +01:00
Ms2ger
581c6dfe1b
Rewrite test_load_errors_when_there_a_redirect_loop.
2016-11-10 12:57:19 +01:00
Ms2ger
bced313c47
Rewrite test_load_sets_default_accept_encoding_to_gzip_and_deflate.
2016-11-10 11:34:48 +01:00
Ms2ger
195774436b
Rewrite test_load_uses_explicit_accept_encoding_from_load_data_headers.
2016-11-10 11:32:31 +01:00
Ms2ger
e12a6d7f4e
Rewrite test_load_sets_default_accept_to_html_xhtml_xml_and_then_anything_else.
2016-11-10 11:26:54 +01:00
Ms2ger
6319d7cb99
Rewrite test_load_uses_explicit_accept_from_headers_in_load_data.
2016-11-10 11:22:23 +01:00
Ms2ger
5a02586341
Rewrite test_load_sets_content_length_to_length_of_request_body.
2016-11-10 11:18:22 +01:00
Ms2ger
c229a0116e
Rewrite test_when_cookie_received_marked_secure_is_ignored_for_http.
2016-11-10 11:06:23 +01:00
Ms2ger
982c59662c
Rewrite test_cookie_set_with_httponly_should_not_be_available_using_getcookiesforurl.
2016-11-10 11:06:22 +01:00
Ms2ger
52258e2282
Rewrite test_load_sends_cookie_if_nonhttp.
2016-11-10 11:01:08 +01:00
Ms2ger
f1f090ca81
Rewrite test_load_sets_requests_cookies_header_for_url_by_getting_cookies_from_the_resource_manager.
2016-11-10 11:01:07 +01:00
Ms2ger
5bf90c563c
Rewrite test_load_sets_cookies_in_the_resource_manager_when_it_get_set_cookie_header_in_response.
2016-11-10 11:01:05 +01:00
bors-servo
89c46369a2
Auto merge of #14151 - servo:assert_cookie_for_domain, r=jdm
...
Clarify assert_cookie_for_domain.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14151 )
<!-- Reviewable:end -->
2016-11-10 02:29:44 -06:00
Corey Farwell
bf8752ac9e
Update CORS naming from 'CORS' to 'Cors'.
...
As per:
https://aturon.github.io/style/naming/README.html#general-conventions-[rfc-#430]
Acronyms should be considered one word and not all caps.
2016-11-09 18:30:30 -05:00
Ms2ger
2744227e13
Rewrite test_load_doesnt_add_host_to_sts_list_when_url_is_http_even_if_sts_headers_are_present.
2016-11-09 17:51:17 +01:00
Ms2ger
f03a6001de
Rewrite test_load_doesnt_send_request_body_on_any_redirect.
...
Note that it is necessary to use POST here; using GET will cause an error in
hyper, which enforces the rule that GET requests don't have a body.
2016-11-09 17:51:15 +01:00
Ms2ger
ba86d8576d
Rewrite test_load_should_decode_the_response_as_gzip_when_response_headers_have_content_encoding_gzip.
2016-11-09 17:51:13 +01:00
Ms2ger
4fe105b8e1
Rewrite test_load_should_decode_the_response_as_deflate_when_response_headers_have_content_encoding_deflate.
2016-11-09 17:51:12 +01:00
Ms2ger
90dd7c922a
Rewrite test_load_when_redirecting_from_a_post_should_rewrite_next_request_as_get.
2016-11-09 17:51:11 +01:00
Ms2ger
d31188f5a9
Clarify assert_cookie_for_domain.
2016-11-09 15:36:53 +01:00
bors-servo
9d1c1f434d
Auto merge of #14138 - servo:fetch-context, r=KiChjang
...
Pass a borrowed fetch context to fetch().
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14138 )
<!-- Reviewable:end -->
2016-11-08 23:40:38 -06: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
00e23a4c57
Rewrite test_redirected_request_to_devtools.
2016-11-08 16:15:22 +01:00
Ms2ger
9b1e153b31
Rewrite test_request_and_response_message_from_devtool_without_pipeline_id.
2016-11-08 11:44:39 +01:00
Ms2ger
42f6e9a8e6
Rewrite test_request_and_response_data_with_network_messages.
2016-11-08 11:37:42 +01:00