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)
Core
Machine Learning: General
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"],
| Reporter | ||
Updated•1 year ago
|
Summary: add → add a call to the permission API in the example extension
| Assignee | ||
Comment 1•1 year ago
|
||
Updated•1 year ago
|
Assignee: nobody → tomica
Status: NEW → ASSIGNED
| Assignee | ||
Updated•1 year ago
|
Whiteboard: [addons-jira]
Updated•1 year ago
|
Pushed by tjovanovic@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/434fe9274839
Update extension ML example to use OptionalOnly permission r=tarek DONTBUILD
Comment 3•1 year ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox135:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•