Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Opera Extensions Documentation Outdated: For Manifest v2 instead of v3 #646

Open
@SimonEData

Description

@SimonEData

I tried following the instructions for creating a sample Opera extension at https://dev.opera.com/extensions/basics/. This seems to correspond with the basics.md file in the _extensions src folder, https://github.com/operasoftware/devopera/blob/master/src/_extensions/basics.md. The instructions are for creating a v2-style manifest with a background script.

When I clicked the "Load Unpacked" button on the Opera Extensions page I got the following error:

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

Simply changing the manifest_version in the manifest file from 2 to 3 was not enough to resolve the issue. Apparently, the background.scripts array has been replaced by a background.service_worker object. And making that change wasn't sufficient to get it working either, I assume because there is a fundamental difference between a background script in v2 and a background service worker in v3.

Please update the Opera extension documentation to reflect the changes from manifest v2 to v3. This should apply not just to the basics.md file but also to any other references to the manifest and to anything else that has changed between v2 and v3 (eg the description of background processes in the architecture-overview.md and getting-started.md files).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions