servo/components/net
Josh Matthews c890c9143c Make script thread initiate requests for images needed by layout.
In support of this goal, the layout thread collects information about
CSS images that are missing image data and hands it off to the script
thread after layout completes. The script thread stores a list of
nodes that will need to be reflowed after the associated network
request is complete. The script thread ensures that the nodes are
not GCed while a request is ongoing, which the layout thread is
incapable of guaranteeing.

The image cache's API has also been redesigned in support of this
work. No network requests are made by the new image cache, since it
does not possess the document-specific information necessary to
initiate them. Instead, there is now a single, synchronous
query operation that optionally reserves a slot when a cache
entry for a URL cannot be found. This reserved slot is then
the responsibility of the queryer to populate with the contents
of the network response for the URL once it is complete. Any
subsequent queries for the same URL will be informed that the
response is pending until that occurs.

The changes to layout also remove the synchronous image loading
code path, which means that reftests now test the same code
that non-test binaries execute. The decision to take a screenshot
now considers whether there are any outstanding image
requests for layout in order to avoid intermittent failures in
reftests that use CSS images.
2017-02-22 14:19:35 -05:00
..
fetch Implement Subresource Integrity 2017-01-08 08:52:18 +05:30
blob_loader.rs Remove unused part of the return value of parse_blob_url(). 2017-01-30 15:16:27 +01:00
Cargo.toml Use serde_json to persist cookies in the net crate 2017-02-22 12:33:10 +01:00
chrome_loader.rs Removed util. 2016-12-14 18:04:37 -06:00
connector.rs Implement HSTS fetch step 2016-12-29 12:55:31 +05:30
content_blocker.rs Removed util. 2016-12-14 18:04:37 -06:00
cookie.rs Use serde_json to persist cookies in the net crate 2017-02-22 12:33:10 +01:00
cookie_storage.rs Use serde_json to persist cookies in the net crate 2017-02-22 12:33:10 +01:00
data_loader.rs Remove CoreResourceMsg::Load. 2016-11-24 11:46:24 +01:00
filemanager_thread.rs Removed util. 2016-12-14 18:04:37 -06:00
hsts.rs Use serde_json to persist cookies in the net crate 2017-02-22 12:33:10 +01:00
http_loader.rs Add ImmutableOrigin to allow for serializing origins 2017-02-22 11:11:59 -06:00
image_cache_thread.rs Make script thread initiate requests for images needed by layout. 2017-02-22 14:19:35 -05:00
lib.rs Use serde_json to persist cookies in the net crate 2017-02-22 12:33:10 +01:00
mime_classifier.rs Auto merge of #13411 - frewsxcv:mime, r=jdm 2016-10-08 15:40:47 -05:00
resource_thread.rs Use serde_json to persist cookies in the net crate 2017-02-22 12:33:10 +01:00
storage_thread.rs Removed util. 2016-12-14 18:04:37 -06:00
subresource_integrity.rs Implement Subresource Integrity 2017-01-08 08:52:18 +05:30
websocket_loader.rs Removed util. 2016-12-14 18:04:37 -06:00