在chomal.manifest里如下设定,注意黄色部分,很关键
content sample chrome/content/
xpcnativewrappers=no
overlay chrome://browser/content/browser.xul chrome://sample/content/sample.xul
调用方式:
window.content.document.getElementById('sssddd').onclick();
参考如下连接
http://developer.mozilla.org/En/Safely_accessing_content_DOM_from_chrome
xpcnativewrappers
http://developer.mozilla.org/en/Chrome_Registration