2

我试图理解我对 NPRuntime所学到的一切。是来自NPRuntime插件的mozilla-centralNPRuntime插件示例,其中提到了以下几行

// ==============================
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不需要复制xpt文件,xpt文件特定于XPCOM并且NPRuntime不使用XPCOM。那么上面的语句是什么意思呢?

4

1 回答 1

4

正如您从实际代码中看到的那样,该评论是关于 xpt 和 nsScriptablePeer 的。请在 Core:Plugins 中提交有关此问题的错误并在评论中提及(补丁的奖励积分!)

于 2010-02-17T12:33:54.250 回答