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

MV3 scripting API doesn't seem to be available #382

Closed
Manvel opened this issue Jun 4, 2022 · 3 comments
Closed

MV3 scripting API doesn't seem to be available #382

Manvel opened this issue Jun 4, 2022 · 3 comments

Comments

@Manvel
Copy link
Contributor

Manvel commented Jun 4, 2022

It seems like MV3 scripting API is not available yet.

I am not sure what is the plan for webextension-polyfill to support MV3, but I am happy to try helping adding support for scripting API, if you say that you plan supporting MV3.

P.S. Also thanks to Mozilla team for helping devs to bring Web Extensions to more platforms with this amazing tool ❤️

@Rob--W
Copy link
Member

Rob--W commented Jun 9, 2022

The behavior of the polyfill with MV3 should be documented somewhere, but for now the answer can be found in my earlier comment at #329. The behavior of the polyfill is explained at #329 (comment).

The scripting API supports promises already, so the scripting API should be usable even without changes to the polyfill.

@Manvel
Copy link
Contributor Author

Manvel commented Jun 9, 2022

Thanks for the reply @Rob--W

The scripting API supports promises already, so the scripting API should be usable even without changes to the polyfill.

Interesting, the last time I checked it wasn't available through browser namespace, but only after scripting were added to api-metadata.json .

I will do tests again and provide minimized test case over the weekend. Probably I am missing smth. 🤔

@Manvel
Copy link
Contributor Author

Manvel commented Jun 12, 2022

Yeah, I can confirm that scripting still works, not sure why previously I couldn't make it work, might be missing permission. Sorry for the noise, should have tested more attentively.

@Manvel Manvel closed this as completed Jun 12, 2022
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

2 participants