Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Restructure internal code #76

Merged
merged 28 commits into from
Aug 1, 2021
Merged

chore: Restructure internal code #76

merged 28 commits into from
Aug 1, 2021

Conversation

ebebbington
Copy link
Member

  • Uses websockets instead of raw tcp for the firefox client
  • Due to this, both clients can use the CDP (chrome devtools protocol), so all logic has been abstracted into a single class
  • Reduced complexity due to this, and also reduced code size

@ebebbington ebebbington added the Type: Chore Merging this pull request results in a patch version increment label Jul 16, 2021
@ebebbington
Copy link
Member Author

I did something wrong since finish commit, find out the problem

src/client.ts Outdated
Comment on lines 307 to 315
// Because if using firefox and windows, the close on the browser subprocess doesn't actually close the processes
if (Object.getPrototypeOf(this.constructor).name === "FirefoxClient" && Deno.build.os === "windows") {
const p = Deno.run({
cmd: ["taskkill", "/F", "/IM", "firefox.exe"],
stdout: "null",
stderr: "null"
})
await p.status()
p.close()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try:

  • removing this
  • await browser.status() above
  • see if that fixes the issue
  • if not, keep in the above logic and open an issue with deno

@ebebbington
Copy link
Member Author

ready for review :)

@ebebbington ebebbington merged commit 1b42690 into master Aug 1, 2021
@ebebbington ebebbington deleted the restructure branch August 1, 2021 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Chore Merging this pull request results in a patch version increment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants