Anthony Ramine
7ad51dcd7a
Update serde to 0.8 ( fixes #12659 )
2016-08-12 18:37:27 +02:00
Zhen Zhang
17ae38a318
Add cancellability to file manager load and related refactoring
2016-08-02 23:51:51 +02:00
ddh
db808ca75d
Added devtools support to fetch for XHR + Manish's XHR ident fix
...
added unit test for request fetch with devtools
added devtools/fetch test
2016-07-29 11:20:38 +01:00
Anthony Ramine
8d919c5c1f
Remove use of util::opts from storage_thread
2016-07-27 10:25:48 +02:00
Anthony Ramine
1662e292d8
Remove use of util::opts from resource_thread
2016-07-27 10:22:06 +02:00
Rahul Sharma
eff3e01df0
make resource_thread talk to sw-manager
2016-07-18 19:06:48 +05:30
Rahul Sharma
1e6293ea1d
Integrate service worker manager thread
2016-07-16 23:29:44 +05:30
Aneesh Agrawal
cc2b2a85bd
Remove fn start_sending_sniffed
...
This function was not used, but more importantly encodes the bad
practice of a raw `.unwrap()` and therefore should not be used.
2016-07-15 11:03:49 -04:00
Zhen Zhang
fdc3a8e3ac
Put Blob URL online
2016-07-15 20:33:51 +08:00
bors-servo
194fb3e199
Auto merge of #12190 - frewsxcv:mime-renaming, r=jdm
...
Minor MIME renaming and aliasing cleanup.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12190 )
<!-- Reviewable:end -->
2016-07-03 11:07:12 -07:00
Corey Farwell
6c02a576cf
Rename MIMEClassifier
to match Rust acronym naming conventions.
...
e.g. `std::net::TcpStream`
2016-07-02 17:12:46 -04:00
Corey Farwell
22928f50ac
Refactor util::prefs
operations to be methods on static struct.
2016-07-02 16:43:39 -04:00
Josh Matthews
94df389031
Print out useful SSL-related information on SSL error page.
2016-06-29 14:21:12 -04:00
Dan Robertson
246723114f
Use common cookie struct add cookie webdriver cmds
...
One cookie struct to rule them all. One struct to represent them.
One cookie struct to bind them all, and through the IPC carry them.
2016-06-25 22:24:35 +00:00
Sagar Muchhal
7e2b4d163b
Propagate privacy information of iframes to corresponding pipelines. Make iframes of differing privacy values be considered cross-origin.
...
Make the constellation hand out separate private and public channels for the pipeline content to communicate with the resource thread as necessary.
2016-06-20 14:55:01 -04:00
Zhen Zhang
256c7e894e
filepicker
2016-06-14 20:22:51 +08:00
Manish Goregaokar
fd6f9bd411
Test fixes; update for changes in spec
2016-06-10 20:55:25 +05:30
Manish Goregaokar
bf99e73cb0
Re-add support for fetching chunks (and thus xhr download progress)
2016-06-10 20:53:40 +05:30
Manish Goregaokar
6e29b872d7
Test fixes:
...
- Hack to stop hitting unreachable on referer
- add fetch_done to make sync work
- Make datauris work by setting the response URI, spec bug
- Allow for empty bodies
- Make request bodies work (pass to http, fix fencepost in iter count)
2016-06-10 20:53:36 +05:30
Manish Goregaokar
8bcf54deb5
Use RequestInit instead of LoadData. Make code look like the spec.
2016-06-10 20:53:28 +05:30
Manish Goregaokar
2cbc8dee25
Net side of XHR fetch integration
2016-06-10 20:53:15 +05:30
bors-servo
351b851e21
Auto merge of #11497 - ab22:11467-resource-threads-race-with-shutdown-to-write-out-data, r=Ms2ger
...
send a reply when thread is done exiting
<!-- Please describe your changes on the following line: -->
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #11467
<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because: in this case if code compiles then it's good enough.
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11497 )
<!-- Reviewable:end -->
2016-06-01 06:46:58 -05:00
Abelardo E. Mendoza
88980dc7a5
send a reply when thread is done exiting
...
fixed failing tests
fix tests
handle error instead of just unwrappng it
create a channel per thread and update tests with a call to rx.recv().unwrap()
2016-05-30 09:21:09 -06:00
Josh Matthews
50fea8554e
Read the content blocking rules and make them available to the HTTP loader.
2016-05-30 10:54:52 +02:00
Josh Matthews
3cb8af20c2
Remove empty lines following braces.
2016-05-27 13:32:05 -04:00
Cullen Rhodes
40acd24e8f
Report use statements that use {} with only one entry
2016-05-27 10:18:44 +01:00
Rahul Sharma
b4885fef9a
adding default config dirs
2016-05-25 10:55:07 +05:30
Zhen Zhang
dd590d088b
Implement file-type functionalities in htmlinputelement and related
...
Changes include:
- Implement file selection and other DOM behaviours in htmlinputelement
- Integrate IpcSender<FileManagerThreadMsg> into ResourceThreads
- Improve filemanager_thread, including adding type_string field to SelectedFile
- Improve interfaces in FileList/File/Blob to accommodate the above changes
2016-05-23 15:35:46 +08:00
Zhen Zhang
a51db4cfa8
Implement trait-based ResourceThreads and clean up related naming issues
...
Changes include:
- Introduce an IpcSend trait to abstract over a collection of IpcSenders
- Implement ResourceThreads collection to abstract the resource-related
sub threads across the component
- Rename original ResourceThread and ControlMsg into an unifed CoreResource__
to accommodate above changes and avoid confusions
2016-05-20 08:00:16 +08:00
Josh Matthews
9e8cf19e51
Add timeline markers for HTTP requests, JS evaluation, and HTML parsing.
2016-05-18 08:02:42 -05:00
Matt Brubeck
c344461017
Move http_loader::Connector to a separate module
2016-05-10 11:20:32 -07:00
Daniel
d9c32b273a
read cookie_jar, hsts_list, auth_cache, and local_data from file if profile_dir option is present
2016-04-25 19:39:40 -04:00
Simon Sapin
7932ab6ac2
Upgrade to rust-url 1.0 and hyper 0.9
2016-04-23 20:27:58 +02:00
Daniel
d4f63cda5f
write cookie_jar, hsts_list, auth_cache, and local_data to file if profile_dir option is present
2016-04-20 18:12:00 -04:00
Josh Matthews
d888ed368d
Make new test use local resources only.
2016-04-20 12:38:38 -04:00
Ravi Shankar
5e6f32a59b
Propagating the load errors from network loader
2016-04-20 12:38:35 -04:00
Corey Farwell
f0a6403211
Fix incorrect indentation for line continuation.
2016-04-19 19:36:17 -04:00
Corey Farwell
a10b574d44
Flatten and cleanup ConstellationListener::is_cancelled
.
2016-04-19 19:36:16 -04:00
bors-servo
80662f1e4e
Auto merge of #10672 - frewsxcv:net-network, r=KiChjang
...
Improvements to network preferences, HTTP redirection limiting.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10672 )
<!-- Reviewable:end -->
2016-04-19 04:06:25 +05:30
bors-servo
6edcad206d
Auto merge of #10640 - frewsxcv:apache-flag, r=KiChjang
...
Cleanup code regarding mimesniff 'apache bug'.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10640 )
<!-- Reviewable:end -->
2016-04-19 00:16:12 +05:30
Corey Farwell
07209c75db
Rename net.mime.sniff
pref to network.mime.sniff
.
...
Gecko uses the `network` prefix for network related items. Might be good
to mirror that here.
2016-04-17 16:15:24 -04:00
Corey Farwell
08fc002f41
Rename 'HSTS*' structures to 'Hsts*'.
...
"In CamelCase, acronyms count as one word: use Uuid rather than UUID."
-- https://doc.rust-lang.org/style/style/naming/README.html
2016-04-17 14:12:28 -04:00
Corey Farwell
faa3d8724b
Refactor Servo HSTS file loading, hard-fail if can't load.
...
Use constructor pattern instead of separate utility function.
Instead of allowing the Servo HSTS file loading to silently fail, we
should expect that file to always exist and be formatted correctly.
2016-04-17 14:12:07 -04:00
Corey Farwell
da34d469cf
Cleanup retrieval of last slice item.
2016-04-15 18:14:16 -04:00
Corey Farwell
540e5ce6ad
Use constructor pattern for ApacheFlag
enum.
2016-04-15 18:10:33 -04:00
Corey Farwell
6c0927c289
Add relevant sepc link for 'apache bug' mimesniff.
2016-04-15 18:07:55 -04:00
Connor Brewster
b09570b2b6
Added global state struct
...
Replace hsts_list, auth_cache, and cookie_jar with http_state
Reverted a few changes
Moved http_state back to factory
Removed unnecessary Arc
Removed Arc for http_state
2016-03-25 12:35:40 -06:00
Daniel
d49d3b01f2
add auth cache to resources + set auth header if url does not have creds
2016-03-24 12:24:08 -04:00
Rebecca
cf6fd6dafe
Add support for websocket request and response cookies
...
Also change expected behavior to pass for all in tests/wpt/web-platform-tests/websockets/cookies
2016-02-17 14:50:52 -05:00
rohan.prinja
1f02c4ebbb
task -> thread
2016-01-10 17:58:13 +09:00