Closed Bug 1630418 Opened 5 years ago Closed 5 years ago

make pkcs11 an optional permission

Categories

(WebExtensions :: General, enhancement, P1)

enhancement

Tracking

(firefox77 fixed)

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: mixedpuppy, Assigned: mixedpuppy)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

No description provided.

bug 1404632: There is no management at the extension api level that would undo what this api does

Given that, we'll just make the permission optional and that bug can deal with improvements.

See Also: → 1404632
Assignee: nobody → mixedpuppy
Status: NEW → ASSIGNED

I'm trying to understand what this code change would mean for me as a developer of an extension that uses the browser.pkcs11 API. I'm guessing that this is meant to just drop the permission, except that that would break current add-ons, so we make it optional instead.

Is my intuition correct? If not, can someone please point me to the FM to R that would explain what an "optional permission" is?

Thanks,

Priority: -- → P1

(In reply to Wouter Verhelst :wouter from comment #3)

I'm trying to understand what this code change would mean for me as a developer of an extension that uses the browser.pkcs11 API. I'm guessing that this is meant to just drop the permission, except that that would break current add-ons, so we make it optional instead.

Is my intuition correct? If not, can someone please point me to the FM to R that would explain what an "optional permission" is?

Thanks,

If you have an addon, and you want to add a new permission when you update the addon, placing it in "permissions" requires a user to accept the new permission prior to the update happening. For some permissions, a user may not understand why they need to grant the new permission. Using an optional permission allows the addon to fully upgrade, then message properly to the user why a new permission is being requested.

In the future the user will also be able to revoke those permissions. So an addon will still want to use "permissions" in the manifest for required functionality.

All permissions are being updated to supporting optional permissions.

Pushed by scaraveo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/87d571004699 support pkcs11 as an optional extension permission r=rpl
Pushed by scaraveo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/07e3f412f9ea support pkcs11 as an optional extension permission r=rpl
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
Keywords: dev-doc-needed

The following changes have been made:

  • note added to release notes
  • compatibility data updated, see PR6112
  • notes added to the Extension Workshop article on requesting permissions, see PR636

Please let me know if you think further changes are needed.

Flags: needinfo?(mixedpuppy)

Thanks

Flags: needinfo?(mixedpuppy)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: