|
|
1
1
怎样?我打赌您在xul名称空间中使用了<embed>,它没有任何特殊含义。 你应该 define the HTML namespace and use the embed tag in the html namespace 。
这是错误的。如果删除函数调用,就不会有代码失败了——getElementByID永远不会抛出(至少在这种简单的情况下不会)。这并不意味着你的xul代码是好的。
那是 definitely supposed to work . 你能把一个演示这个问题的xpi放在什么地方吗? |
|
|
2
0
从firefox扩展调用npapi插件是很棘手的。一个看起来有点像黑客的选项是将插件实际注入表示浏览器ui的dom中。 一个更好的选择是在页面加载到浏览器时修改它们的dom: Scriptable NPAPI plugin doesn't work with Firefox 或者可以完全跳过npapi插件,使用js cTypes: Using a plugin generated with Firebreath in a Firefox Extension? |