Closed Bug 1932837 Opened 1 year ago Closed 1 year ago

add a call to the permission API in the example extension

Categories

(Core :: Machine Learning: General, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: tarek, Assigned: zombie)

References

Details

(Whiteboard: [addons-jira])

Attachments

(1 file)

To allow the extension to work, we need to go in about:addons and grant the permission.

Programatically, the recommended approach is to use permissions API to request the permission
Example: https://github.com/Rob--W/fosdem-2024-ext/blob/main/code-samples/content_scripts.mv3%2Boptions_ui/options.js

and then instead of origins: ["://.example.com/"], at line 11, permissions: ["trialML"],

Summary: add → add a call to the permission API in the example extension
Assignee: nobody → tomica
Status: NEW → ASSIGNED
Whiteboard: [addons-jira]
Pushed by tjovanovic@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/434fe9274839 Update extension ML example to use OptionalOnly permission r=tarek DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: