webpage.let에서 Firefox 확장 기능을 호출하고 싶습니다. explain.i는 내 main.js 스크립트에서이 함수를 사용합니다.웹 페이지에서 firefox extension main.js의 함수 호출
function extension_function(profname,uurl){
Cu.import('resource://gre/modules/FileUtils.jsm');
var exe = FileUtils.getFile('XREExeF', []); //this gives path to executable
var process = Cc['@mozilla.org/process/util;1'].createInstance(Ci.nsIProcess);
process.init(exe);
var args = ['-P',profname, '-no-remote', uurl];
process.run(false, args, args.length);
}
지금 나는 내 호출하는 방법 ... 내가 ("www.fb.com", "P1") extension_function 전화 .if 그것이 오류 extension_function이 정의되지 줘 웹 페이지에서이 함수를 호출 할 웹 페이지에서 추가 기능을 사용할 수 있습니다.