bors-servo
e779e8905b
Auto merge of #5952 - Ms2ger:cleanup, r=saneyuki
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5952 )
<!-- Reviewable:end -->
2015-05-05 14:26:37 -05:00
Ms2ger
d62e1c9afb
Remove unused feature gates and an unused import.
2015-05-05 19:05:23 +02:00
Himaja
01eb31ae8a
1. Add an Option<Pipeline_id> field to the LoadData struct, and a corresponding parameter to LoadData::new()
...
2. Change addEvent in the NetworkEventActor to add_request and add_response
2015-05-05 12:31:40 -04:00
Himaja
6e91ebb1fe
1. Add an enum type NetworkEventMessage for handling both HttpRequest and HttpResponse messages
...
2. Change run_server to handle network events
3. Add a unique id to track request-actor associations
4. Update the network event actor
2015-05-05 11:50:00 -04:00
Himaja
9f4a88bc48
Initial changes for devtools support for logging HTTP requests.
...
Add a NetworkEventActor to devtools/actors/
Authors:
Ashritha Mohan Ram <amohanr@ncsu.edu>
Himaja Valavala <hsvalava@ncsu.edu>
Anand Chandrasekar <achandr9@ncsu.edu>
Yiyang Wang <ywang95@ncsu.edu>
2015-05-05 11:49:26 -04:00
Simon Sapin
ef8edd4e87
Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.
2015-05-05 10:07:34 -04:00
Nicholas Nethercote
092507d23c
Add a profile_traits
crate to reduce compile times.
...
A rebuild after touching components/profile/mem.rs now takes 48 seconds (and
only rebuilds `profile` and `servo`) which is much lower than it used to be.
In comparison, a rebuild after touching components/profile_traits/mem.rs takes
294 seconds and rebuilds many more crates.
This change also removes some unnecessary crate dependencies in `net` and
`net_traits`.
2015-04-30 17:58:47 -07:00
Glenn Watson
786e24bde0
Handle gzip decompression failure (encountered during jquery test suite work) without panic.
2015-04-30 10:10:21 +10:00
Ms2ger
903305416a
Implement Clone for Copy types.
2015-04-28 23:31:10 +02:00
bors-servo
21c38d0de8
Auto merge of #5424 - bdero:bdero/accept-header, r=jdm
...
The value of the header is: `text/html;q=0.9,*/*;q=0.8`
Closes #5399
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5424 )
<!-- Reviewable:end -->
2015-04-26 22:13:30 -05:00
Brandon DeRosier
0a7a853a01
Add Accept header to HTTP loader
...
The value of the header is the same as that of Firefox 35.0.1:
`text/html, application/xhtml+xml, application/xml; q=0.9, */*; q=0.8`
Closes #5399
2015-04-26 22:39:23 -04:00
Ms2ger
9185c3de79
Remove as_mut_slice() calls.
2015-04-26 11:09:03 +02:00
Ms2ger
6a55ae06d7
Remove some as_slice calls.
2015-04-24 17:44:47 +02:00
bors-servo
43d666f94b
Auto merge of #5802 - mmatyas:indentfix, r=jdm
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5802 )
<!-- Reviewable:end -->
2015-04-22 19:49:30 -05:00
Glenn Watson
d8aef7208e
Refactored image cache task - details below.
...
* Simpler image cache API for clients to use.
* Significantly fewer threads.
* One thread for image cache task (multiplexes commands, decoder threads and async resource requests).
* 4 threads for decoder worker tasks.
* Removed ReflowEvent hacks in script and layout tasks.
* Image elements pass a Trusted<T> to image cache, which is used to dirty nodes via script task. Previous use of Untrusted addresses was unsafe.
* Image requests such as background-image on layout / paint threads trigger repaint only rather than full reflow.
* Add reflow batching for when multiple images load quickly.
* Reduces the number of paints loading wikipedia from ~95 to ~35.
* Reasonably simple to add proper prefetch support in a follow up PR.
* Async loaded images always construct Image fragments now, instead of generic.
* Image fragments support the image not being present.
* Simpler implementation of synchronous image loading for reftests.
* Removed image holder.
* image.onload support.
* image NaturalWidth and NaturalHeight support.
* Updated WPT expectations.
2015-04-23 09:40:24 +10:00
Mátyás Mustoha
91b4246e1b
Fix some irregular indentation.
2015-04-22 21:57:58 +02:00
Adenilson Cavalcanti
0f5b5a5cd4
Using FF broken image icon.
...
Got it from:
https://mxr.mozilla.org/mozilla-central/source/layout/generic/broken-image.png
2015-04-21 16:04:28 -07:00
Marcus Klaas
c1f25bbfe4
Replace usage of ResponseSenders by LoadConsumer
2015-04-19 13:26:56 +02:00
Josh Matthews
7b3043a59b
Warning fixes.
2015-04-16 11:46:42 -04:00
Josh Matthews
1b9684634f
Document async networking interfaces.
2015-04-16 11:46:41 -04:00
Josh Matthews
7517aac9e9
Completely abstract sending responses over channels vs. listeners.
2015-04-16 11:46:39 -04:00
Josh Matthews
1644436557
Start switching net/ to use abstractions over channels to allow introducing non-channel communication in the future.
2015-04-16 11:46:39 -04:00
Bogdan Cuza
ce4b8a0af7
Reduce duplication
2015-04-14 22:03:22 +03:00
Bogdan Cuza
19ffab82f1
Make Metadata use ContentType
2015-04-14 22:03:21 +03:00
bors-servo
4997d3a112
Auto merge of #5677 - frewsxcv:https, r=Ms2ger
...
Extracted this out of #5649
This commit was created with the following commands:
```
find . -iname "*.webidl" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```
```
find . -iname "*.rs" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```
2015-04-14 02:57:41 -05:00
bors-servo
b7f59a3646
Auto merge of #5642 - aneeshusa:arc-box-image-to-arc-image, r=Ms2ger
...
Image used to be a trait, but no longer is, so boxing it is no longer
necessary. Fixes #5639 .
2015-04-14 01:57:07 -05:00
Corey Farwell
5eaa922045
Update WHATWG links to use HTTPS
...
Extracted this out of #5649
This commit was created with the following commands:
```
find . -iname "*.webidl" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```
```
find . -iname "*.rs" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```
2015-04-13 21:34:27 -07:00
Aneesh Agrawal
395e8a5981
Make minor syntax simplification to address review.
2015-04-13 17:23:03 -04:00
Edward Cho
d0469dfaf3
move mime classifier unit tests into unit test crate
2015-04-13 15:40:30 -05:00
bors-servo
9754c4c255
Auto merge of #5576 - jagtalon:jag/slashdot-storage, r=jdm
...
Use `and_then` and remove `unwrap` instead of using a `map` as described in https://github.com/servo/servo/issues/5548#issuecomment-90254644 .
Fixes #5548
2015-04-11 18:13:16 -05:00
Aneesh Agrawal
5b593a3d32
Switch Arc<Box<Image>> to Arc<Image> for perf boost.
...
Image used to be a trait, but no longer is, so boxing it is no longer
necessary.
2015-04-10 18:59:02 -04:00
bors-servo
9677eb292d
Auto merge of #5631 - Ms2ger:virtual-file, r=jdm
2015-04-10 08:14:16 -05:00
Aneesh Agrawal
a1d7456307
Remove compositor dependency on net crate.
...
Move the ImageCacheTaskClient trait and impl to net_traits. Fixes #5551 .
2015-04-10 06:11:31 -04:00
Ms2ger
6881776d81
Avoid virtual calls when loading files.
2015-04-10 11:54:44 +02:00
Mátyás Mustoha
c842e499b3
Fix int-related warnings in net/mime_classifier.
2015-04-08 12:14:36 +02:00
bors-servo
cad27a9d25
Auto merge of #5568 - jdm:net_uint, r=jdm
2015-04-08 01:47:56 -05:00
Simon Sapin
e27c967f81
Move net::resource_task unit tests into the unit_tests crate.
2015-04-08 01:07:51 +02:00
Simon Sapin
d88770e09f
Move net::{data_loader,image_cache_task} unit tests into the unit_tests crate.
2015-04-08 01:07:50 +02:00
Simon Sapin
691222696e
Move net::cookie unit tests into the unit_tests crate.
2015-04-07 16:37:12 -04:00
Josh Matthews
1757afef27
Remove int_uint from net.
2015-04-07 16:13:37 -04:00
Josh Matthews
9674feebba
Cleanup tabs.
2015-04-07 13:25:17 -04:00
Josh Matthews
4a78da1158
Fix unit tests.
2015-04-07 13:25:16 -04:00
Josh Matthews
23ae940abf
Enable MIME sniffing for HTTP loads.
2015-04-07 13:25:15 -04:00
Josh Matthews
a3201bc1ac
Enable optional mime sniffing, and integrate it with the file loader.
2015-04-06 20:19:30 -04:00
Jag Talon
f9817da0c4
net/storage_task.rs: Fix remove_item
...
Use `and_then` and remove `unwrap` instead of using a `map` as described in https://github.com/servo/servo/issues/5548#issuecomment-90254644 .
2015-04-06 19:47:20 -04:00
Josh Matthews
2d730f2ae9
Remove the sniffer task.
2015-04-06 19:31:53 -04:00
Nathan Climer
44930b0fb0
Implement MIME sniffing.
2015-04-06 19:01:59 -04:00
Gilles Leblanc
ba36a108c1
Split out shared networking code into net_traits crate
...
Fixes #4476
2015-04-03 13:38:10 -04:00
Matt McCoy
818f1c5748
Closes #2587 Adding HTTP compression capability
2015-04-01 21:18:47 -04:00
snf
1cc5bd4287
broadcasting storage changes events
2015-03-31 21:51:41 +01:00