Introduce GlobalScope::process_event

This commit is contained in:
Anthony Ramine 2016-10-05 09:44:11 +02:00
parent cdf3ef05e7
commit ca15dd5eea
3 changed files with 14 additions and 13 deletions

View file

@ -1309,7 +1309,7 @@ impl XMLHttpRequest {
if let Some(script_port) = script_port {
loop {
global.process_event(script_port.recv().unwrap());
global_scope.process_event(script_port.recv().unwrap());
let context = context.lock().unwrap();
let sync_status = context.sync_status.borrow();
if let Some(ref status) = *sync_status {