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

Allow Automa JavaScript Blocks To Access Chrome APIs #1715

Open
scottwmaxwell opened this issue May 8, 2024 · 0 comments
Open

Allow Automa JavaScript Blocks To Access Chrome APIs #1715

scottwmaxwell opened this issue May 8, 2024 · 0 comments

Comments

@scottwmaxwell
Copy link

Is your feature request related to a problem? Please describe.

More of a limitation. I'm not able to run JavaScript in the blocks if it includes calls on the Chrome APIs.
For my use case, I need to call chrome.runtime.sendMessage(extendionId: string, {action: "message"});

When I attempt to do this using the JavaScript block, It produces the following message:
Cannot read properties of undefined (reading 'sendMessage')

I believe this is because the JS is running in a sandbox context, even when "background" is selected.

Describe the solution you'd like

I would like there to either be:

  • A way to run the chrome APIs
  • A block to send chrome runtime messages to other chrome extensions

Describe alternatives you've considered

I would like to automate user clicks on chrome-extension:// urls, but I cannot do so because of security restrictions of Chrome extensions. Because of this, I need to create my own automations, but would like to integrate it with Automa to do some of the work. Having messaging between the Automa extension and my own extension is necessary for this.

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

No branches or pull requests

1 participant