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

Manifest v3 #882

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft

Manifest v3 #882

wants to merge 7 commits into from

Conversation

frigus02
Copy link
Owner

@frigus02 frigus02 commented Mar 12, 2023

The following features are probably not possible with manifest v3:

  • Show original (unprocessed by browser) response headers, status code and status text.
  • Remove default request header content-type
    • TODO: can we remove content-type if the body is not formData?
  • TODO: test merging of browser cookie and custom cookie header
  • TODO: with v3 Firefox seems to upgrade all requests to http because of the changed Content Security Policy
  • TODO: background pages (or service workers) are not persistent anymore. This means the port in rester.js can and will disconnect after a while of inactivity. How do we deal with this? Ideally I'd want to reconnect only when needed. But at that time we may have missed a few events (settingsChanged or dataChanged), so the page is out of date. We need to bring it up to date again.

Today (2023-03-14) Chrome and Firefox differ in the APIs they support for Manifest v3:

  • Chrome requires background.serice_worker. Firefox requires background.scripts. Luckily RESTer doesn't need any serice worker specific API. The same script runs fine with either API.
  • Chrome dropped support for webRequest and requires declarativeNetRequest. Firefox does not support declarativeNetRequest, yet, but still supports webRequest.

Fixes #874

@frigus02 frigus02 force-pushed the manifest-v3 branch 5 times, most recently from c13de32 to 1edd07c Compare March 19, 2023 13:34
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.

Error in Chrome and Chromium based browsers: Manifest version 2 is deprecated
1 participant