2010-02-17 42 views
2

我試圖做出力所能及的意義上,我學到了NPRuntimeHere是從Mozilla的中央的NPRuntime插件,其中提到NPRuntime插件的示例以下行NPRuntime如何要求xpt文件?

// ============================== 
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文件特定於XPCOMNPRuntime不使用XPCOM。那麼上面的說法是什麼意思?

回答

4

該評論在於xpt和nsScriptablePeer,正如您從實際代碼中看到的一樣。請在Core:Plugins中提供一個錯誤,並在評論中提及它(該補丁的獎勵積分!)

+1

謝謝..報告錯誤:https://bugzilla.mozilla.org/show_bug.cgi?id = 546629 ...無法創建補丁:) – Xinus 2010-02-17 14:14:02