Execute a program from a Chrome Extension

大城市里の小女人 提交于 2019-12-17 18:55:24

问题


The Google Chrome NPAPI is being phased out.

Without using NPAPI, is there any way to allow an extension to execute a command on the local system?


回答1:


There is chrome.runtime.sendNativeMessage which can be used to send a message to a native application and chrome.runtime.connectNative which allows for a more persistent connection.

So, you can't directly execute a command, but you can have a native app do it for you.

You can find more info on Native Messaging in the docs.



来源:https://stackoverflow.com/questions/19917543/execute-a-program-from-a-chrome-extension

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