在Chrome扩展更新上使用权限语言进行对话 [英] Dialog with permissions language on Chrome extension update

查看:242
本文介绍了在Chrome扩展更新上使用权限语言进行对话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道,在某些扩展程序更新并需要额外权限的情况下,与以前安装的版本相比,将显示包含权限警告的对话框。



我的问题是:如果一些权限删除与前一个扩展版本相比,是否会显示任何对话框?

解决方案


是否会显示任何对话框,如果与前一个扩展版本相比某些权限被切断?

如果您的权限减少,则不会显示任何对话框。






有趣的事实:Chrome仍然会考虑以前具有广泛权限版本的安装所授予的权限。



因此,如果您的下一个版本重新引入了相同的权限,那么只有具有受限权限版本的用户他们的第一个安装版本将被通知。使得从意外删除权限中恢复过程变得更容易(但仍不完全无关紧要)。



源代码(感谢 Sungguk Lim 链接):

  //扩展也可以以静默方式升级到较少的权限,然后
//以静默方式升级到将这些权限添加回的版本。

//该扩展可以发布一个新版本,
//删除多功能框权限。当用户升级时,Chrome会
//仍记得omnibox已被授予,所以如果
//扩展在升级中再次包含omnibox,则扩展
//可以升级而不需要此用户的批准。


I know that in the case when some extension is updated and requires additional permissions compared to a previously installed version, a dialog with the permission warnings will be shown.

My question is: is any dialog is going to be shown if some permissions are removed compared to the previous extension version?

解决方案

is any dialog is going to be shown if some permissions is cutted off comparing with the previous extension version?

If your permissions decrease, no dialog will be shown.


Interesting fact: Chrome will still consider those permissions granted on installs that had the broad-permissions version before.

So if your next version reintroduces the same permission, only users that had the restricted-permission version as their first installed version will be notified. Makes it easier (but still not completely trivial) to recover from accidental permission deletion.

From the source code (thanks to Sungguk Lim for the link):

// Extensions can also silently upgrade to less permissions, and then
// silently upgrade to a version that adds these permissions back.

//  The extension could then release a new version that
// removes the "omnibox" permission. When the user upgrades, Chrome will
// still remember that "omnibox" had been granted, so that if the
// extension once again includes "omnibox" in an upgrade, the extension
// can upgrade without requiring this user's approval.

这篇关于在Chrome扩展更新上使用权限语言进行对话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆