Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Revoke mandatory extension permission

  • No replies
  • 1 has this problem
  • 8 views
more options

Is it possible to revoke 'tabs' permission from an addon that grants it by default?

I modified the script provided here (https://support.mozilla.org/en-US/questions/1257097), I got a successful message but permission is still there.

browser.permissions.getAll().then(resp => {

 if (resp.permissions.length == 0){
   console.log('There are no permissions for this extension');
 } else {
   if (resp.permissions.includes('tabs')){
     console.log('Attempting to remove "tabs" permission --');
     browser.permissions.remove({permissions: ["tabs"]}).then(msg => {
       console.log('Removal successful (' + msg + ')');}).catch(err => {
       console.log('Problem: ' + err)});
   } else {
     console.log('Did not find the "tabs" permission, but found these: [' + resp.permissions.join(',') + ']');
   }
 }

});

thanks

Is it possible to revoke 'tabs' permission from an addon that grants it by default? I modified the script provided here (https://support.mozilla.org/en-US/questions/1257097), I got a successful message but permission is still there. browser.permissions.getAll().then(resp => { if (resp.permissions.length == 0){ console.log('There are no permissions for this extension'); } else { if (resp.permissions.includes('tabs')){ console.log('Attempting to remove "tabs" permission --'); browser.permissions.remove({permissions: ["tabs"]}).then(msg => { console.log('Removal successful (' + msg + ')');}).catch(err => { console.log('Problem: ' + err)}); } else { console.log('Did not find the "tabs" permission, but found these: [' + resp.permissions.join(',') + ']'); } } }); thanks