Introduce GlobalScope::core_resource_thread

This commit is contained in:
Anthony Ramine 2016-10-03 23:16:55 +02:00
parent de846f25a6
commit 71236e168a
5 changed files with 12 additions and 14 deletions

View file

@ -1303,7 +1303,7 @@ impl XMLHttpRequest {
(global.networking_task_source(), None)
};
let core_resource_thread = global.core_resource_thread();
let core_resource_thread = global.as_global_scope().core_resource_thread();
XMLHttpRequest::initiate_async_xhr(context.clone(), script_chan,
core_resource_thread, init);