كيف تأتي npruntime تتطلب ملف XPT؟
سؤال
أحاول فهم كل ما تعلمته npruntime. هنا هو مثال على 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 DES لا تتطلب النسخ xpt ملف، xpt الملف خاص بـ xpcom و npruntime لا تستخدم xpcom. إذن ماذا يعني البيان أعلاه؟
المحلول
يكمن هذا التعليق ، على حد سواء حول XPT و NSScriptablePeer ، كما ترون من الكود الفعلي. يرجى تقديم خطأ في Core: Plugins حول هذا وذكره في تعليق (نقاط مكافأة للتصحيح!)
لا تنتمي إلى StackOverflow