3
我正在尝试制作自己的Firefox工具栏,并遇到覆盖问题。 所以我已经设置了我的环境(我可以在FF扩展管理器中看到我的扩展),现在我试图添加新的覆盖。Firefox 4工具栏覆盖
chrome.manifest用于
content sandbox chrome/content/
overlay chrome://browser/content/browser.xul chrome://sandbox/content/overlay.xul
overlay.xul
<?xml version="1.0"?>
<overlay
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<toolbox id="browser-toolbox">
<toolbar id="findfile_toolbar">
<label control="findfile_filename" value="Search for files named:"/>
<textbox id="findfile_filename"/>
<label control="findfile_dir" value="Directory:"/>
<textbox id="findfile_dir"/>
<button label="Browse..."/>
</toolbar>
</toolbox>
</overlay>
当我重新启动我的FF我没有看到结果,问题出在哪里?
覆盖看起来很好。我建议你打开错误控制台并寻找警告 - 也许你的chrome命名空间没有正确注册。 – 2011-06-07 07:41:18