我想是有道理的一切我了解的 NPRuntime 这里是从的的 NPRuntime 插件,其中提到以下行的 Mozilla的中央 NPRuntime 插件的一个例子

// ==============================
145 // ! Scriptability related code !
146 // ==============================
147 //
148 // here the plugin is asked by Mozilla to tell if it is scriptable
149 // we should return a valid interface id and a pointer to 
150 // nsScriptablePeer interface which we should have implemented
151 // and which should be defined in the corressponding *.xpt file
152 // in the bin/components folder

现在AFAIK的 NPRuntime desn't需要复制的 XPT 文件,的 XPT 文件是特定为 XPCOM 并的 NPRuntime 不使用 XPCOM 即可。那么,是什么上述声明意味着什么呢?

有帮助吗?

解决方案

这评论谎言,既有关XPT和nsScriptablePeer,你可以从实际的代码中看到。请提交在核心中的错误:插件这件事,在注释中提到它

(加分的补丁!)
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top