Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome extension manifest 2 and 1, compatibility

I have an extension that I recently upgraded to manifest version 2. To do this I removed the background_page property in the manifest file and replaced it with background: {page: "background.html"}. This works and everything is fine. Turns out, however, that there are browsers and people out there with old versions of Chrome, or versions of Rockmelt and other Chromium-based browsers that don't support the background-property, or the manifest_version: 2 yet.

A simple solution would be to just add the background_page: "background.html"-property to the manifest file, in addition to the background-property. This gives the warning in chrome://extension developer mode:

There were warnings when trying to install this extension:
     'background_page' requires manifest version of 1 or lower.

My question is: can having both have any negative impact? For example, what will happen when background_page is deprecated? Will my users see any warnings? Any ideas?

like image 463
Erik Rothoff Avatar asked Oct 02 '12 08:10

Erik Rothoff


People also ask

Is manifest V2 still supported?

After January 2023, Chrome browser will no longer run Manifest V2 extensions and developers may no longer be able to push updates to existing Manifest V2 extensions. With the use of enterprise policy, the MV2 extensions can function on Chrome deployments till June 2023.

Is manifest V2 deprecated?

"Manifest version 2 is deprecated, and support will be removed in 2023."

What is the manifest version of Chrome?

The manifest file. This is the ledger of a chrome extension. It's a JSON file that describes the behavior of a Chrome extension. You list things like: your extensions name; a description; which files or libraries you're including; and permissions your extension needs.

Are Firefox and Chrome extensions the same?

You can not install Google Chrome extensions into Firefox because they are not compatible. Firefox is a different product than Google Chrome. You can try to see if a similar addon is available by searching the addons.mozilla.org website.


1 Answers

You should replace "background_page" with "background".

Like:

"background": "background.html"

Rather than:

"background": {"page": "background.html"}
like image 188
Wu Zhou Avatar answered Oct 05 '22 11:10

Wu Zhou