我正在努力理解我对NPRuntime所了解的一切。mozilla-central of NPRuntime插件中的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不需要复制xpt文件,xpt文件是特定于XPCOM的,NPRuntimeE 219不使用E 120XPCOME 221。那么,上述声明意味着什么呢?
发布于 2010-02-17 12:33:54
正如您从实际代码中看到的那样,关于xpt和nsScriptablePeer的注释都是正确的。请在Core:Plugins中提交一个bug,并在评论中提到它(补丁的额外积分!)
https://stackoverflow.com/questions/2280061
复制相似问题