Chrome extension: optional permissions without background page?

痞子三分冷 提交于 2019-12-11 15:16:42

问题


Is it possible to use optional_permissions in a chrome extension without a background page?

I have an extension that doesn't currently have a background page, but I would like to add one, which requires a change to the ext's permissions. However, if I update the permissions, the ext will be disabled for my users until they accept the new permissions.

I would like to add background as an optional permission so I can programatically ask the user to approve the permissions and not deactivate the ext altogether, but I can't find a way to use optional_permissions without a background page.

This seems like a catch-22 to me. Or am I overlooking something?

来源:https://stackoverflow.com/questions/45471757/chrome-extension-optional-permissions-without-background-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!