api/window: also send cdp close event for firefox

This commit is contained in:
CanadaHonk 2023-01-28 12:11:45 +00:00
parent 870b6e5b40
commit de8aab951a

View File

@ -131,6 +131,7 @@ export default async (CDP, proc, injectionType = 'browser', { dataPath, browserN
close: () => {
for (const handler of closeHandlers) handler(); // extra api handlers which need to be closed
CDP.sendMessage('Browser.close');
CDP.close();
proc.kill();
},