How to ask user to grant permissions for 'Access your data for all websites' through a prompt during the installation process

This seems very similar to this question: Permissions not being asked upon add-on installation.