mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-11 09:35:59 -04:00
On window.close, reset the frame's scheduler
Saw that worker.close() does this and it makes sense to do for window.close() too.
This commit is contained in:
@@ -568,6 +568,8 @@ pub fn close(self: *Window) void {
|
||||
}
|
||||
}
|
||||
|
||||
frame.js.scheduler.reset();
|
||||
|
||||
// We can't tear the Frame down here — close() is invoked from JS still
|
||||
// running on top of this Frame's V8 context, often deep inside a script
|
||||
// eval whose parser is still holding the Frame. Destroying the context
|
||||
|
||||
Reference in New Issue
Block a user