mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Introduce GlobalScope::new_script_pair
This commit is contained in:
parent
1f8bb3a89f
commit
cdf3ef05e7
3 changed files with 17 additions and 13 deletions
|
@ -1297,7 +1297,7 @@ impl XMLHttpRequest {
|
|||
|
||||
let global_scope = global.as_global_scope();
|
||||
let (script_chan, script_port) = if self.sync.get() {
|
||||
let (tx, rx) = global.new_script_pair();
|
||||
let (tx, rx) = global_scope.new_script_pair();
|
||||
(tx, Some(rx))
|
||||
} else {
|
||||
(global_scope.networking_task_source(), None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue