安全页面上的chrome.tabs.captureVisibleTab?

时间:2012-07-02 20:31:44

标签: google-chrome-extension

我正在开发一个通过'chrome.tabs.captureVisibleTab'利用屏幕捕获功能的chrome插件,但它在https页面上失败了。我请求了安全页面的许可:

 permissions:[
    "tabs", "http://*/*", "https://*/*"
 ],

这在安全页面上是否可行?

这是我看到的示例网址错误:

 Error during tabs.captureVisibleTab: Cannot access contents of url "https://www.host.com/test". Extension manifest must request permission to access this host. 

1 个答案:

答案 0 :(得分:0)

我想你想使用<all_urls>

请参阅:http://code.google.com/chrome/extensions/match_patterns.html

吨。

相关问题