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

Chrome CLI Runner to facilitate an async exit. #2439

Merged
merged 1 commit into from Oct 5, 2022

Conversation

hmdne
Copy link
Member

@hmdne hmdne commented Sep 29, 2022

  • We now load a headless chrome platform ONLY if Chrome CLIRunner is being used
  • We inhibit a default exit from CDP interface if Kernel#exit hasn't been called (and opal-platform has been loaded)
  • We modify Kernel#exit to run a special alert message to communicate with Chrome CDP interface (we would have sent an exception, but it doesn't bubble in the async mess - perhaps it will once we migrate to PromiseV2)

Thanks to Brandon Gastelo for spotting this bug.

Ref: opal-rspec#89

* We now load a headless chrome platform ONLY if Chrome CLIRunner is being used
* We inhibit a default exit from CDP interface if Kernel#exit hasn't been called
  (and opal-platform has been loaded)
* We modify Kernel#exit to run a special alert message to communicate with
  Chrome CDP interface (we would have sent an exception, but it doesn't
  bubble in the async mess - perhaps it will once we migrate to PromiseV2)

Thanks to Brandon Gastelo for spotting this bug.

Ref: opal-rspec#89
@elia elia force-pushed the hmdne/chrome-clirunner-async-exit branch from 9a5fe11 to a9f3f4a Compare October 5, 2022 07:44
Copy link
Member

@elia elia left a comment

Choose a reason for hiding this comment

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

Thanks! Exiting from chrome is a great addition 👍

@elia elia merged commit 39a6220 into master Oct 5, 2022
@elia elia deleted the hmdne/chrome-clirunner-async-exit branch October 5, 2022 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants