Michal Ceresna wrote:
> A temporary workaround is to manually add the method into the 
> nsIDOMWindow.java, compile and replace the original version
> in MozillaInterfaces.jar

The language binding facility in Mozilla works on very specific rules. 
Following these rules allows us to create binding libraries for 
JavaScript, Java, Python, etc.  For the most part, Mozilla interface 
methods follow these rules.

The methods that do not are marked as [noscript], meaning that for 
whatever reason, the interface developer decided that that method should 
only be callable from C++ (usually because that method doesn't follow 
the aforementioned rules).

Circumventing the [noscript] qualification is a hack.  In this case, it 
happens to work.  The proper fix would be to create a method that did 
follow the rules (or remove the [noscript] qualification if it is in 
fact not necessary).

For this particular case, you should follow the example code specified 
by Christian Biesinger (rather than relying on this hack).


javier pedemonte
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to