문제

Suppose I have a .xul file in the contents folder of my bootstrapped extension that describes a simple window with some labels and edit boxes.

How should I register the window in chrome so that I can open it from inside the bootstrap.js whenever I need it?

And how should I open it from Javascript? window.open("chrome://myextension/content/my_window.xul");?

도움이 되었습니까?

해결책

Since Firefox 10 restartless add-ons can have limited chrome.manifests where you can at least register content/, skin/, locale.

After that it is just a call to openDialog, as you already said.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top