怎么会NPRuntime需要XPT文件?
题
我想是有道理的一切我了解的 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,你可以从实际的代码中看到。请提交在核心中的错误:插件这件事,在注释中提到它
(加分的补丁!)不隶属于 StackOverflow