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

Fix (migrate-mv3): Send message #1729

Open
wants to merge 2 commits into
base: migrate-mv3
Choose a base branch
from

Conversation

ARajgor
Copy link

@ARajgor ARajgor commented May 17, 2024

Changelog :

  • I add sendMessage into the browser API wrapper to fix the Send Message error.
  • Add scripting permission for adding element selector script injection.
  • Switch to the execution tab after the block is executed.
  • Tested on Windows and Chrome systems.

Let me know if any other things should be added.

clearTimeout(timeout);
const activeTabStatus = async () => {
const tab = await BrowserAPIService.tabs.get(tabId);
// then((tab) => {
Copy link

Choose a reason for hiding this comment

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

better remove comments

@scottwmaxwell
Copy link

scottwmaxwell commented May 19, 2024

Would this change allow for something like the below to work in a code block?
chrome.runtime.sendMessage(extensionId:"extension-id", {message: "example"});

I'm hoping to communicate to other chrome extensions when it's their turn to automate things on their own pages since Automa can't access webpages owned by chrome extensions.

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.

3 participants