Skip to content

Commit

Permalink
修复页面实例释放时未通知浏览器实例的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinlic committed Nov 28, 2023
1 parent 9cdbcb9 commit fded42e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,8 @@ export default class Page extends EventEmitter {
await this.#asyncLock.acquire("release", async () => {
// 重置页面
await this.reset();
// 通知浏览器释放页面
await this.parent.releasePage(this);
// 设置页面状态为ready
this.#setState(Page.STATE.READY);
});
Expand Down

0 comments on commit fded42e

Please sign in to comment.