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