Search code examples
javascriptxbl

Why this script is not running?


I'm trying to add a script to the beggin of my XBL file, but even the following test is not running, any idea why?

<bindings xmlns="http://www.mozilla.org/xbl"
       xmlns:xbl="http://www.mozilla.org/xbl"
       xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

 <script language="javascript" type="text/javascript"><![CDATA[
     while(true) {
      dump("OK");
     }
 ]]></script>

</bindings>

--update

This infinite loop is becouse I want a piece of code to keep running. It's a communication with an embedded system.


Solution

  • There is no script element in XBL, the documentation is false:

    https://bugzilla.mozilla.org/show_bug.cgi?id=58757