开发者

How come NPRuntime require xpt file?

开发者 https://www.devze.com 2022-12-20 21:51 出处:网络
I am trying to make sense of whatever I learned aboutNPRuntime. Here is a example of NPRuntime plugin from from mozilla-central of NPRuntime plugin, which mentions following lines

I am trying to make sense of whatever I learned about NPRuntime. Here is a example of NPRuntime plugin from from mozilla-central of NPRuntime plugin, which mentions following lines

// ==============================
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

Now AFAIK NPRuntime desn't require to copy xpt file, xpt file is specific to XPCOM and NPRuntime does not use 开发者_如何转开发XPCOM. So what does above statement mean ?


That comment lies, both about xpt and the nsScriptablePeer, as you can see from the actual code. Please file a bug in Core:Plugins about this and mention it in a comment (bonus points for the patch!)

0

精彩评论

暂无评论...
验证码 换一张
取 消