Fixes #5215 Serializing the thread name for the page load task to make it a simple url

This commit is contained in:
Matt McCoy 2015-03-16 22:08:37 -04:00
parent b8e87ea020
commit f083583132

View file

@ -1201,7 +1201,7 @@ impl ScriptTask {
let script_chan = self.chan.clone();
let resource_task = self.resource_task.clone();
spawn_named(format!("fetch for {:?}", load_data.url), move || {
spawn_named(format!("fetch for {:?}", load_data.url.serialize()), move || {
if load_data.url.scheme.as_slice() == "javascript" {
load_data.url = Url::parse("about:blank").unwrap();
}