Traduzir-paginas-web icon indicating copy to clipboard operation
Traduzir-paginas-web copied to clipboard

Manifest version 2 is deprecated

Open yuceltoluyag opened this issue 2 years ago • 2 comments

brave --version
Brave Browser 100.1.37.116

also when i restart brave i have to reload translate plugin These are the errors seen in the plugin section

Manifest version 2 is deprecated, and support will be removed in 2023. See https://developer.chrome.com/blog/mv2-transition/ for more details.

No webNavigation permission
Context
_generated_background_page.html
Stack Trace
background/background.js:711 (disableTranslationOnClickingALink)
background/background.js:720 (anonymous function)
lib/config.js:82 (anonymous function)
lib/config.js:82 (twpConfig.set)
background/background.js:737 (anonymous function)
 function disableTranslationOnClickingALink() {
        activeTabTranslationInfo = {}
        sitesToAutoTranslate = {}
        chrome.tabs.onActivated.removeListener(tabsOnActivated)
        chrome.tabs.onRemoved.removeListener(tabsOnRemoved)
        chrome.runtime.onMessage.removeListener(runtimeOnMessage)

        if (chrome.webNavigation) {
            chrome.webNavigation.onCommitted.removeListener(webNavigationOnCommitted)
            chrome.webNavigation.onDOMContentLoaded.removeListener(webNavigationOnDOMContentLoaded)
        } else {
            console.warn("No webNavigation permission")
        }
    }

yuceltoluyag avatar Apr 27 '22 10:04 yuceltoluyag

brave --version
Brave Browser 100.1.37.116

also when i restart brave i have to reload translate plugin These are the errors seen in the plugin section

Manifest version 2 is deprecated, and support will be removed in 2023. See https://developer.chrome.com/blog/mv2-transition/ for more details.

No webNavigation permission
Context
_generated_background_page.html
Stack Trace
background/background.js:711 (disableTranslationOnClickingALink)
background/background.js:720 (anonymous function)
lib/config.js:82 (anonymous function)
lib/config.js:82 (twpConfig.set)
background/background.js:737 (anonymous function)
 function disableTranslationOnClickingALink() {
        activeTabTranslationInfo = {}
        sitesToAutoTranslate = {}
        chrome.tabs.onActivated.removeListener(tabsOnActivated)
        chrome.tabs.onRemoved.removeListener(tabsOnRemoved)
        chrome.runtime.onMessage.removeListener(runtimeOnMessage)

        if (chrome.webNavigation) {
            chrome.webNavigation.onCommitted.removeListener(webNavigationOnCommitted)
            chrome.webNavigation.onDOMContentLoaded.removeListener(webNavigationOnDOMContentLoaded)
        } else {
            console.warn("No webNavigation permission")
        }
    }

Manifest v2 is not obsolete, the problem is that Google wants to do away with extensions that bring so much customization to the browser, such as ad blockers and it is through ads that they make it walk well on its "legs" and beyond of course braking Chromium-based forks. There is something related to a version of the SingleFile extension (developer @gildas-lormeau), which talks about Manifest v3 in their repository > with the extension (SingleFile Lite). Take a look 👍.

Bardock88 avatar May 16 '22 17:05 Bardock88

Manifest v3 just made it difficult to do some things that were easier in v2, as well as making other things simply unfeasible or impossible.

I really hope that from 2023 onwards only chrome stops supporting manifest v2. I hope edge, brave and opera continue to support v2.

I don't see any reason, other than a commercial one, for Google to make v3 the way they did and remove v2.

I've already made some extensions in manifest v3, my extension should be able to be ported without too many problems, but I'll postpone it as long as I can. Also because Firefox doesn't even support v3 yet.

FilipePS avatar Jun 20 '22 18:06 FilipePS