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

Upgrade devtools extension manifest to version 3 #25057

Closed

Conversation

AnmolBansalDEV
Copy link

resolves #24522

Summary

since google is pulling the plug on manifestV2, I upgraded the manifest.json files for chrome, edge, and firefox to V3

How did you test this change?

I checked against the google guide for all changes being made.

@facebook-github-bot
Copy link

Hi @AnmolBansalDEV!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@eps1lon eps1lon changed the title bug fix, resolves #24522, maked necessary changes to manifest.json Upgrade devtools extension manifest to version 3 Aug 6, 2022
@AnmolBansalDEV AnmolBansalDEV reopened this Aug 6, 2022
@mondaychen mondaychen self-requested a review August 6, 2022 21:15
@mondaychen
Copy link
Contributor

Thanks for the contribution!
I'll look into this on Monday. Just FYI it might take some time before we can merge this, because we need to make sure all the features still work fine with V3, on all 3 browsers we support.

I'm actually surprised no JS file needed to be changed. For example, according to this section, chrome.browserAction needs to be changed to chrome.action.

@mondaychen mondaychen self-assigned this Aug 6, 2022
@chapmanm3
Copy link

To add to @mondaychen 's comment I took a look into this issue and I think because of the switch from background pages to service workers with V3 link There is no longer access to XMLHttpRequest which happens here, that logic may also need to be updated.

@mondaychen
Copy link
Contributor

How did you test the extension? I'm getting this error when loading the local build
image

@AnmolBansalDEV
Copy link
Author

hey, I've included your recommendation in the code, but I'm facing trouble with how to test the extension. Is there any react community where I can ask doubts?

also, I tried to solve the issue @chapmanm3 highlighted but, it says in the code that the request has to be synchronous, If I replace XHR with fetch API, It will be asynchronous, not synchronous.
image

@mondaychen
Copy link
Contributor

mondaychen commented Aug 9, 2022

@AnmolBansalDEV You can just ask in the original issue. In fact, I'd recommend you to figure out how to test the extension before you create a PR about it. I'll close this PR for now since it looks like you need to get a lot done before it's ready for review. You can re-open it after you fixed the issues.

@mondaychen mondaychen closed this Aug 9, 2022
@mondaychen
Copy link
Contributor

To answer your question regarding XHR, you can wrap the logic into the then of the Promise

@SijaanX
Copy link

SijaanX commented Aug 10, 2022

Replied here by mistake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DevTools] Manifest version 2 is deprecated
6 participants