Chrome设置菜单的扩展程序权限(chrome://settings) [英] Extension permission for Chrome settings menu (chrome://settings)

查看:1284
本文介绍了Chrome设置菜单的扩展程序权限(chrome://settings)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个Chrome扩展程序,它会监听chrome.windows.onRemoved.addListener并在关闭chrome窗口时断开与用户的连接.

I'm writing a Chrome extension, it listens the chrome.windows.onRemoved.addListener and disconnects the user when chrome window is closed.

我想在"chrome://settings-frame"页面中执行脚本(chrome.tabs.executeScript).

I want to execute script (chrome.tabs.executeScript) in the "chrome://settings-frame" page.

在此页面中,我将手动断开用户与Chrome的连接.

In this page i am going to manually disconnect user from Chrome.

(通过运行以下代码:chrome.send('SyncSetupStopSyncing',[deleteProfile]);)

(by running this code: chrome.send('SyncSetupStopSyncing', [deleteProfile]);)

此许可可能吗?

感谢任何提示.

推荐答案

否,没有允许您访问chrome:// URL方案的权限.这是一种明确的安全机制,可防止对Chrome设置进行潜在的恶意更改.

No, there is no permission that would allow you to access chrome:// URL scheme. This is an explicit safety mechanism against potentially malicious changes to Chrome settings.

如果启用extensions-on-chrome-urls标志,则可以获取访问权限,但是显然,在您未完全控制的计算机上,您不能这样做.

You can get the access if you enable extensions-on-chrome-urls flag, but obviously you can't do that on machines you don't fully control.

此外,在Chrome中没有用于操作用户的API.

Additionally, there is no API to manipulate users in Chrome.

这篇关于Chrome设置菜单的扩展程序权限(chrome://settings)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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