Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道 Gecko SDK/NPAPI 中是否有任何功能可以让我将插件的使用限制在受限域中。就像 IE 的 SiteLock 对 ActiveX 组件所做的一样。
例如,NPAPI 中是否有类似的实现?
看起来我必须手动使用 NPAPI 的 GetIdentifier 方法从 DOM 树中读取 url 并对其进行操作。Ergo 只需使用您想要使用的任何 NPAPI 方法(NewStream 或 GetIdentifier)获取页面 URL,然后将其与允许或不允许的域列表进行比较。