aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
diff options
context:
space:
mode:
authorDavid Rajchenbach-Teller <D.O.Teller@gmail.com>2015-09-30 12:22:00 +0200
committerJosh Matthews <josh@joshmatthews.net>2015-12-31 07:45:03 -0500
commit1e81b8c13322deed21bdfea83b8a4f8c78b50e04 (patch)
treec994a88564692926b3e2dd07affd37b360b37738 /components/script/script_task.rs
parent66c8aa8cdac24ad956be5e99be3b7bc07c5f798c (diff)
downloadservo-1e81b8c13322deed21bdfea83b8a4f8c78b50e04.tar.gz
servo-1e81b8c13322deed21bdfea83b8a4f8c78b50e04.zip
Resolves #4183 - Implemementing context-based MIME type sniffing
The version of the standard is not finalized at the time of this writing. Specifications may be found here: https://mimesniff.spec.whatwg.org/#context-specific-sniffing .
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r--components/script/script_task.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs
index b07b5086f45..0a3bc1355c1 100644
--- a/components/script/script_task.rs
+++ b/components/script/script_task.rs
@@ -70,7 +70,7 @@ use msg::webdriver_msg::WebDriverScriptCommand;
use net_traits::LoadData as NetLoadData;
use net_traits::image_cache_task::{ImageCacheChan, ImageCacheResult, ImageCacheTask};
use net_traits::storage_task::StorageTask;
-use net_traits::{AsyncResponseTarget, ControlMsg, LoadConsumer, Metadata, ResourceTask};
+use net_traits::{AsyncResponseTarget, ControlMsg, LoadConsumer, LoadContext, Metadata, ResourceTask};
use network_listener::NetworkListener;
use page::{Frame, IterablePage, Page};
use parse::html::{ParseContext, parse_html};
@@ -2003,6 +2003,7 @@ impl ScriptTask {
}
resource_task.send(ControlMsg::Load(NetLoadData {
+ context: LoadContext::Browsing,
url: load_data.url,
method: load_data.method,
headers: Headers::new(),