mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
isDone must be run after script's deinit
This commit is contained in:
@@ -602,8 +602,9 @@ pub const PendingScript = struct {
|
||||
return;
|
||||
}
|
||||
// async script can be evaluated immediately
|
||||
defer self.deinit();
|
||||
self.script.eval(manager.page);
|
||||
self.deinit();
|
||||
// asyncScriptIsDone must be run after the pending script is deinit.
|
||||
manager.asyncScriptIsDone();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user