mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
script task only exits when the root pipeline exits
This commit is contained in:
parent
c56b015623
commit
99f125bb64
3 changed files with 49 additions and 12 deletions
|
@ -212,7 +212,7 @@ impl Window {
|
|||
match timer_port.recv() {
|
||||
TimerMessage_Close => break,
|
||||
TimerMessage_Fire(td) => script_chan.send(FireTimerMsg(id, td)),
|
||||
TimerMessage_TriggerExit => script_chan.send(ExitMsg),
|
||||
TimerMessage_TriggerExit => script_chan.send(ExitMsg(id)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -225,7 +225,6 @@ impl Window {
|
|||
};
|
||||
|
||||
unsafe {
|
||||
// TODO(tkuehn): This just grabs the top-level page. Need to handle subframes.
|
||||
let cache = ptr::to_unsafe_ptr(win.get_wrappercache());
|
||||
win.wrap_object_shared(cx, ptr::null()); //XXXjdm proper scope
|
||||
let global = (*cache).wrapper;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue