browser.permissions.onAdded support?

Does Safari 14 support onAdded and onRemoved? I'm having no luck getting these to trigger from background.js.

Code Block js
browser.permissions.onAdded.addListener(function(permissions){
    console.dir('permissions added');
});
browser.permissions.onRemoved.addListener(function(permissions){
    console.dir('permissions removed');
});

How do you recommend refreshing the page when permissions change? Constant polling?
Answered by Frameworks Engineer in 636496022
These events are supported, they are only fired when browser.permissions.request() is used. They are not fired for permissions granted outside of that flow by the user.
Accepted Answer
These events are supported, they are only fired when browser.permissions.request() is used. They are not fired for permissions granted outside of that flow by the user.
Please reconsider this and support the countless plugins that don't require user interaction at all! It's frustrating enough that permissions.request() requires a click, but it exclusively receiving both the promise and the subscribable event is heart-breaking.
Please send us feedback via Feedback Assistant if there is some workflow that is not possible or difficult to accomplish in Safari that you would like to see changed. Any examples or sample extensions would help. Thanks!
browser.permissions.onAdded support?
 
 
Q