Pergunta

Estou tentando entender o que aprendi sobre NPrentime. Aqui é um exemplo de NPrentime plugin de Mozilla central do NPrentime plugin, que menciona as seguintes linhas

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

Agora Afaik NPrentime não é necessário copiar xpt Arquivo, xpt o arquivo é específico para Xpcom e NPrentime não usa Xpcom. Então, o que a declaração acima significa?

Foi útil?

Solução

Esse comentário está, sobre o XPT e o NSScriptablepeer, como você pode ver no código real. Por favor, arquive um bug no núcleo: plugins sobre isso e mencione -o em um comentário (pontos de bônus para o patch!)

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top