mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Fixes #5215 Serializing the thread name for the page load task to make it a simple url
This commit is contained in:
parent
b8e87ea020
commit
f083583132
1 changed files with 1 additions and 1 deletions
|
@ -1201,7 +1201,7 @@ impl ScriptTask {
|
||||||
let script_chan = self.chan.clone();
|
let script_chan = self.chan.clone();
|
||||||
let resource_task = self.resource_task.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" {
|
if load_data.url.scheme.as_slice() == "javascript" {
|
||||||
load_data.url = Url::parse("about:blank").unwrap();
|
load_data.url = Url::parse("about:blank").unwrap();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue