mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Introduce GlobalScope::core_resource_thread
This commit is contained in:
parent
de846f25a6
commit
71236e168a
5 changed files with 12 additions and 14 deletions
|
@ -67,10 +67,10 @@ fn request_init_from_request(request: NetTraitsRequest) -> NetTraitsRequestInit
|
|||
// https://fetch.spec.whatwg.org/#fetch-method
|
||||
#[allow(unrooted_must_root)]
|
||||
pub fn Fetch(global: GlobalRef, input: RequestOrUSVString, init: &RequestInit) -> Rc<Promise> {
|
||||
let core_resource_thread = global.core_resource_thread();
|
||||
let global_scope = global.as_global_scope();
|
||||
let core_resource_thread = global_scope.core_resource_thread();
|
||||
|
||||
// Step 1
|
||||
let global_scope = global.as_global_scope();
|
||||
let promise = Promise::new(global_scope);
|
||||
let response = Response::new(global_scope);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue